mediastreamer2.spec.in 2.12 KB
Newer Older
aymeric's avatar
aymeric committed
1 2
# -*- rpm-spec -*-
# 
Simon Morlat's avatar
Simon Morlat committed
3
# mediastreamer2 -- A media streaming library for telephony applications
aymeric's avatar
aymeric committed
4 5 6 7 8 9 10
# 

%ifarch %ix86
%define		mediastreamer2_cpu	pentium4
%endif

Summary:	Audio/Video real-time streaming
11 12
Name:		mediastreamer
Version:	@MEDIASTREAMER_VERSION@
13
Release:	%(git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p' || echo '1')%{?dist}
14
License:	GPL
aymeric's avatar
aymeric committed
15
Group:		Applications/Communications
16
URL:		http://www.mediastreamer2.com
17
Source0:	%{name}-@MEDIASTREAMER_VERSION@.tar.gz
aymeric's avatar
aymeric committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
%ifarch %ix86
BuildArch:	i686
%endif

%description
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.

%package        devel
Summary:        Headers, libraries and docs for the mediastreamer2 library
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
Mediastreamer2 is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the ortp library.

This package contains header files and development libraries needed to
develop programs using the mediastreamer2 library.

Yann Diorcet's avatar
Yann Diorcet committed
41
%define		video		%{?_without_video:0}%{!?_without_video:1}
Simon Morlat's avatar
Simon Morlat committed
42

aymeric's avatar
aymeric committed
43 44 45 46
%prep
%setup -q

%build
47
options="--enable-shared --enable-static --disable-glx --docdir=%{_docdir} "
Yann Diorcet's avatar
Yann Diorcet committed
48
%if !%{video}
Simon Morlat's avatar
Simon Morlat committed
49 50 51 52 53
options="$options --disable-video"
%endif

%configure $options
	
jehan's avatar
jehan committed
54
make -j$RPM_BUILD_NCPUS 
aymeric's avatar
aymeric committed
55 56 57

%install
rm -rf $RPM_BUILD_ROOT
58
make install DESTDIR=$RPM_BUILD_ROOT
aymeric's avatar
aymeric committed
59 60 61 62 63 64

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
Simon Morlat's avatar
Simon Morlat committed
65
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
66
%{_bindir}/mediastream
Simon Morlat's avatar
Simon Morlat committed
67
%{_bindir}/msaudiocmp
aymeric's avatar
aymeric committed
68
%{_libdir}/*.so.*
jehan's avatar
jehan committed
69 70 71
%{_datadir}/images/nowebcamCIF.jpg
%{_datadir}/locale/??/LC_MESSAGES/mediastreamer.mo
%{_datadir}/locale/??_??/LC_MESSAGES/mediastreamer.mo
aymeric's avatar
aymeric committed
72 73 74 75 76 77 78 79

%files devel
%defattr(-,root,root,-)
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}
Simon Morlat's avatar
Simon Morlat committed
80
%{_docdir}
aymeric's avatar
aymeric committed
81 82 83 84

%changelog
* Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
- Add to mediastreamer2 distribution with "make rpm" target