add -mediastreamer and -mediastreamer-devel subpackages

This commit is contained in:
nucleo 2012-12-31 19:08:19 +02:00
parent aaae5deb6f
commit 2b991479fc

View File

@ -2,10 +2,9 @@
Name: linphone Name: linphone
Version: 3.5.2 Version: 3.5.2
Release: 4%{?dist} Release: 5%{?dist}
Summary: Phone anywhere in the whole world by using the Internet Summary: Phone anywhere in the whole world by using the Internet
Group: Applications/Communications
License: GPLv2+ License: GPLv2+
URL: http://www.linphone.org/ URL: http://www.linphone.org/
@ -16,8 +15,6 @@ Patch0: linphone-3.5.1-unusedvar.patch
# Allow building against glib 2.31 and later # Allow building against glib 2.31 and later
Patch1: linphone-3.5.2-glib-2.31.patch Patch1: linphone-3.5.2-glib-2.31.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if ! 0%{?novideo} %if ! 0%{?novideo}
BuildRequires: libtheora-devel BuildRequires: libtheora-devel
BuildRequires: libv4l-devel BuildRequires: libv4l-devel
@ -71,12 +68,29 @@ Linphone may work also with other sip phones, but this has not been tested yet.
%package devel %package devel
Summary: Development libraries for linphone Summary: Development libraries for linphone
Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name} = %{version}-%{release} glib2-devel Requires: linphone-mediastreamer-devel%{?_isa} = %{version}-%{release}
Requires: glib2-devel%{?_isa}
%description devel %description devel
Libraries and headers required to develop software with linphone. Libraries and headers required to develop software with linphone.
%package mediastreamer
Summary: A media streaming library for telephony applications
%description mediastreamer
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 mediastreamer-devel
Summary: Development libraries for mediastreamer2
Requires: linphone-mediastreamer%{?_isa} = %{version}-%{release}
Requires: ortp-devel%{?_isa}
%description mediastreamer-devel
Libraries and headers required to develop software with mediastreamer2.
%prep %prep
%setup0 -q %setup0 -q
%patch0 -p1 -b .unusedvar %patch0 -p1 -b .unusedvar
@ -118,12 +132,10 @@ done
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name} %find_lang %{name}
%find_lang mediastreamer %find_lang mediastreamer
cat mediastreamer.lang >> %{name}.lang
desktop-file-install --vendor=fedora \ desktop-file-install --vendor=fedora \
--delete-original \ --delete-original \
@ -140,42 +152,51 @@ mkdir -p doc/linphone doc/mediastreamer
mv $RPM_BUILD_ROOT%{_datadir}/doc/linphone/linphone*/html doc/linphone mv $RPM_BUILD_ROOT%{_datadir}/doc/linphone/linphone*/html doc/linphone
mv $RPM_BUILD_ROOT%{_datadir}/doc/mediastreamer/mediastreamer*/html doc/mediastreamer mv $RPM_BUILD_ROOT%{_datadir}/doc/mediastreamer/mediastreamer*/html doc/mediastreamer
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%post mediastreamer -p /sbin/ldconfig
%postun mediastreamer -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO %doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/linphone %{_bindir}/linphone
%{_bindir}/linphonec %{_bindir}/linphonec
%{_bindir}/linphonecsh %{_bindir}/linphonecsh
%{_bindir}/mediastream
%{_libdir}/liblinphone.so.4* %{_libdir}/liblinphone.so.4*
%{_libdir}/libmediastreamer.so.1*
%{_mandir}/man1/* %{_mandir}/man1/*
%lang(cs) %{_mandir}/cs/man1/* %lang(cs) %{_mandir}/cs/man1/*
%{_datadir}/applications/*%{name}.desktop %{_datadir}/applications/*%{name}.desktop
%{_datadir}/gnome/help/linphone %{_datadir}/gnome/help/linphone
%{_datadir}/pixmaps/linphone %{_datadir}/pixmaps/linphone
%{_datadir}/sounds/linphone %{_datadir}/sounds/linphone
%{_datadir}/images
%{_datadir}/linphone %{_datadir}/linphone
%files devel %files devel
%defattr(-,root,root) %doc doc/linphone/html
%doc doc/linphone doc/mediastreamer
%{_includedir}/linphone %{_includedir}/linphone
%{_includedir}/mediastreamer2
%{_libdir}/liblinphone.so %{_libdir}/liblinphone.so
%{_libdir}/libmediastreamer.so
%{_libdir}/pkgconfig/linphone.pc %{_libdir}/pkgconfig/linphone.pc
%files mediastreamer -f mediastreamer.lang
%doc mediastreamer2/AUTHORS mediastreamer2/ChangeLog mediastreamer2/COPYING
%doc mediastreamer2/NEWS mediastreamer2/README
%{_bindir}/mediastream
%{_libdir}/libmediastreamer.so.1*
%{_datadir}/images
%files mediastreamer-devel
%doc doc/mediastreamer/html
%{_includedir}/mediastreamer2
%{_libdir}/libmediastreamer.so
%{_libdir}/pkgconfig/mediastreamer.pc %{_libdir}/pkgconfig/mediastreamer.pc
%changelog %changelog
* Mon Dec 31 2012 Alexey Kurov <nucleo@fedoraproject.org> - 3.5.2-5
- add -mediastreamer and -mediastreamer-devel subpackages
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-4 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild