--- linphone.spec 2012-03-05 21:51:30.000000000 +0200 +++ linphone.spec.new 2012-12-31 16:32:33.914876551 +0200 @@ -5,7 +5,6 @@ Release: 3%{?dist} Summary: Phone anywhere in the whole world by using the Internet -Group: Applications/Communications License: GPLv2+ URL: http://www.linphone.org/ @@ -16,8 +15,6 @@ # Allow building against glib 2.31 and later Patch1: linphone-3.5.2-glib-2.31.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - %if ! 0%{?novideo} BuildRequires: libtheora-devel BuildRequires: libv4l-devel @@ -71,12 +68,29 @@ %package devel Summary: Development libraries for linphone -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} glib2-devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libmediastreamer-devel%{?_isa} = %{version}-%{release} +Requires: glib2-devel%{?_isa} %description devel Libraries and headers required to develop software with linphone. +%package -n libmediastreamer +Summary: A media streaming library for telephony applications + +%description -n libmediastreamer +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 -n libmediastreamer-devel +Summary: Development libraries for mediastreamer2 +Requires: libmediastreamer%{?_isa} = %{version}-%{release} +Requires: ortp-devel%{?_isa} + +%description -n libmediastreamer-devel +Libraries and headers required to develop software with mediastreamer2. + %prep %setup0 -q %patch0 -p1 -b .unusedvar @@ -118,12 +132,10 @@ make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} %find_lang mediastreamer -cat mediastreamer.lang >> %{name}.lang desktop-file-install --vendor=fedora \ --delete-original \ @@ -140,39 +152,45 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/linphone/linphone*/html doc/linphone mv $RPM_BUILD_ROOT%{_datadir}/doc/mediastreamer/mediastreamer*/html doc/mediastreamer -%clean -rm -rf $RPM_BUILD_ROOT - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post -n libmediastreamer -p /sbin/ldconfig + +%postun -n libmediastreamer -p /sbin/ldconfig + %files -f %{name}.lang -%defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README TODO %{_bindir}/linphone %{_bindir}/linphonec %{_bindir}/linphonecsh -%{_bindir}/mediastream %{_libdir}/liblinphone.so.4* -%{_libdir}/libmediastreamer.so.1* %{_mandir}/man1/* %lang(cs) %{_mandir}/cs/man1/* %{_datadir}/applications/*%{name}.desktop %{_datadir}/gnome/help/linphone %{_datadir}/pixmaps/linphone %{_datadir}/sounds/linphone -%{_datadir}/images %{_datadir}/linphone %files devel -%defattr(-,root,root) -%doc doc/linphone doc/mediastreamer +%doc doc/linphone %{_includedir}/linphone -%{_includedir}/mediastreamer2 %{_libdir}/liblinphone.so -%{_libdir}/libmediastreamer.so %{_libdir}/pkgconfig/linphone.pc + +%files -n libmediastreamer -f mediastreamer.lang +%doc mediastreamer2/AUTHORS mediastreamer2/ChangeLog mediastreamer2/COPYING +%doc mediastreamer2/NEWS mediastreamer2/README +%{_bindir}/mediastream +%{_libdir}/libmediastreamer.so.1* +%{_datadir}/images + +%files -n libmediastreamer-devel +%doc doc/mediastreamer +%{_includedir}/mediastreamer2 +%{_libdir}/libmediastreamer.so %{_libdir}/pkgconfig/mediastreamer.pc %changelog