X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fmediastreamer.git;a=blobdiff_plain;f=mediastreamer.spec;h=bfc82240dd21355736f067336128f75d5d8b8196;hp=62bc9d31d92c9c42e3207197f41ada1e30a4dea1;hb=7f8ebe7ef6c500295a5700e58a3cd2ac9f6d7f1d;hpb=45fa5f1449bb62c9d92d62da1142fd557db51680 diff --git a/mediastreamer.spec b/mediastreamer.spec index 62bc9d3..bfc8224 100644 --- a/mediastreamer.spec +++ b/mediastreamer.spec @@ -1,32 +1,80 @@ +# +# Conditional build: +%bcond_without bcg729 # support for G279AnnexB in RTC3389 implementation of Comfort Noise Payload +%bcond_without srtp # SRTP (secure RTP) support +%bcond_without zrtp # support for RFC 6189: Media Path Key Agreement for Unicast Secure RTP +%bcond_without matroska # Matroska support via libebml2/libmatroska2 +%bcond_without opengl # X11+OpenGL rendering support +%bcond_with pcap # audio playing from PCAP files +# audio I/O +%bcond_without alsa # ALSA sound I/O support +%bcond_with arts # aRts sound I/O support +%bcond_with portaudio # PortAudio sound I/O support +%bcond_without pulseaudio # PulseAudio sound I/O support +%bcond_without static_libs # static library +# Summary: Audio/Video real-time streaming +Summary(pl.UTF-8): Przesyłanie strumieni audio/video w czasie rzeczywistym Name: mediastreamer -Version: 2.9.0 -Release: 1 -License: LGPL +Version: 2.16.1 +Release: 6 +License: GPL v2+ Group: Libraries -Source0: http://mirror.lihnidos.org/GNU/savannah/linphone/mediastreamer/%{name}-%{version}.tar.gz -# Source0-md5: f2ea0fe731a363749a81b6eaac22a62c -Patch0: %{name}-imagedir.patch -URL: http://www.linphone.org/eng/documentation/dev/mediastreamer2.html -BuildRequires: SDL-devel -BuildRequires: alsa-lib-devel +Source0: https://linphone.org/releases/sources/mediastreamer/%{name}-%{version}.tar.gz +# Source0-md5: 15b8b129a922180855d04d58cdd08d43 +Patch0: build.patch +Patch1: libsrtp2.patch +URL: http://www.linphone.org/technical-corner/mediastreamer2/overview +%{?with_opengl:BuildRequires: OpenGL-GLX-devel} +BuildRequires: SDL-devel >= 1.2.0 +%{?with_alsa:BuildRequires: alsa-lib-devel} +%{?with_arts:BuildRequires: artsc-devel} BuildRequires: autoconf >= 2.53 -BuildRequires: automake +BuildRequires: automake >= 1:1.9 +%{?with_bcg729:BuildRequires: bcg729-devel >= 1.0} +BuildRequires: bctoolbox-devel >= 0.4.0 +%{?with_zrtp:BuildRequires: bzrtp-devel >= 1.0.6} BuildRequires: doxygen +# libavcodec >= 51.0.0, libswscale >= 0.7.0 BuildRequires: ffmpeg-devel -BuildRequires: jack-audio-connection-kit-devel +BuildRequires: gettext-tools +%{?with_opengl:BuildRequires: glew-devel >= 1.5} +BuildRequires: intltool >= 0.40 BuildRequires: libgsm-devel -BuildRequires: libsamplerate-devel -BuildRequires: libtheora-devel +%{?with_pcap:BuildRequires: libpcap-devel} +BuildRequires: libtheora-devel >= 1.0-0.alpha7 +BuildRequires: libtool >= 2:2 +BuildRequires: libupnp-devel >= 1.6 +BuildRequires: libupnp-devel < 1.7 BuildRequires: libv4l-devel -BuildRequires: ortp-devel >= 0.21.0 +BuildRequires: libvpx-devel >= 0.9.6 +%{?with_matroska:BuildRequires: matroska-foundation-devel} +BuildRequires: opus-devel >= 0.9.0 +BuildRequires: ortp-devel >= 1.0.0 BuildRequires: pkgconfig +%{?with_portaudio:BuildRequires: portaudio-devel} +%{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.21} BuildRequires: sed >= 4.0 -BuildRequires: spandsp-devel -BuildRequires: speex-devel +BuildRequires: spandsp-devel >= 0.0.6 +BuildRequires: speex-devel >= 1:1.2-beta3 +BuildRequires: speexdsp-devel >= 1.2-beta3 +%{?with_srtp:BuildRequires: libsrtp2-devel} BuildRequires: xorg-lib-libX11-devel BuildRequires: xorg-lib-libXv-devel BuildRequires: xxd +%{?with_bcg729:Requires: bcg729 >= 1.0} +Requires: bctoolbox >= 0.4.0 +%{?with_zrtp:Requires: bzrtp >= 1.0.6} +%{?with_opengl:Requires: glew >= 1.5} +Requires: libtheora >= 1.0-0.alpha7 +Requires: libupnp >= 1.6 +Requires: libvpx >= 0.9.6 +Requires: opus >= 0.9.0 +Requires: ortp >= 1.0.0 +%{?with_pulseaudio:Requires: pulseaudio-libs >= 0.9.21} +Requires: spandsp >= 0.0.6 +Requires: speex >= 1:1.2-beta3 +Requires: speexdsp >= 1.2-beta3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -34,34 +82,89 @@ 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. +%description -l pl.UTF-8 +Mediastreamer2 to udostępniona na licencji GPL biblioteka do +przesyłania i przetwarzania strumieni audio/video w czasie +rzeczywistym. Jest napisana w czystym C, oparta na bibliotece oRTP. + %package devel -Summary: Header files and develpment documentation for mediastreamer +Summary: Header files and development documentation for mediastreamer libraries +Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do bibliotek mediastreamer Group: Development/Libraries -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name} = %{version}-%{release} +%{?with_opengl:Requires: OpenGL-devel} +%{?with_alsa:Requires: alsa-lib-devel} +%{?with_bcg729:Requires: bcg729-devel >= 1.0} +Requires: bctoolbox-devel >= 0.4.0 +%{?with_zrtp:Requires: bzrtp-devel >= 1.0.6} +Requires: ffmpeg-devel +%{?with_opengl:Requires: glew-devel >= 1.5} +Requires: libtheora-devel >= 1.0-0.alpha7 +Requires: libupnp-devel >= 1.6 +Requires: libupnp-devel < 1.7 +Requires: libv4l-devel +Requires: libvpx-devel >= 0.9.6 +%{?with_matroska:Requires: matroska-foundation-devel} +Requires: opus-devel >= 0.9.0 +Requires: ortp-devel >= 1.0.0 +%{?with_portaudio:Requires: portaudio-devel} +%{?with_pulseaudio:Requires: pulseaudio-devel >= 0.9.21} +Requires: spandsp-devel >= 0.0.6 +Requires: speex-devel >= 1:1.2-beta3 +Requires: speexdsp-devel >= 1.2-beta3 +%{?with_srtp:Requires: libsrtp2-devel} +Requires: xorg-lib-libX11-devel +Requires: xorg-lib-libXv-devel %description devel -Header files and develpment documentation for mediastreamer. +Header files and development documentation for mediastreamer +libraries. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe i dokumentacja do bibliotek mediastreamer. %package static -Summary: Static mediastreamer library +Summary: Static mediastreamer libraries +Summary(pl.UTF-8): Statyczne biblioteki mediastreamer Group: Development/Libraries -Requires: %{name}-devel = %{epoch}:%{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} %description static -Static mediastreamer library. +Static mediastreamer libraries. + +%description static -l pl.UTF-8 +Statyczne biblioteki mediastreamer. %prep %setup -q %patch0 -p1 +%patch1 -p1 + +[ ! -e gitversion.h ] && echo '#define MS2_GIT_VERSION "%{version}"' > src/gitversion.h %build %{__libtoolize} +%{__gettextize} +%{__intltoolize} %{__aclocal} %{__autoconf} +%{__autoheader} %{__automake} %configure \ - --enable-static \ - --disable-tests + --disable-strict \ + --enable-alsa%{!?with_alsa:=no} \ + %{?with_arts:--enable-artsc} \ + %{?with_bcg729:--enable-bcg729} \ + --enable-external-ortp \ + %{!?with_opengl:--disable-glx} \ + %{!?with_matroska:--disable-matroska} \ + %{!?with_pcap:--disable-pcap} \ + %{?with_portaudio:--enable-portaudio} \ + --enable-pulseaudio%{!?with_pulseaudio:=no} \ + --disable-silent-rules \ + %{?with_static_libs:--enable-static} \ + %{!?with_zrtp:--disable-zrtp} \ + %{!?with_srtp:--with-srtp=none} %{__make} @@ -69,10 +172,14 @@ Static mediastreamer library. rm -rf $RPM_BUILD_ROOT %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT + DESTDIR=$RPM_BUILD_ROOT \ + install_sh=/usr/bin/install + +# for external plugins +install -d $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins # Remove duplicated documentation -rm -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html/ +%{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}/html %find_lang %{name} @@ -84,12 +191,17 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS ChangeLog NEWS README help/doc/html +%doc AUTHORS ChangeLog NEWS README.md +%attr(755,root,root) %{_bindir}/mediastream +%attr(755,root,root) %{_bindir}/msaudiocmp +%{?with_pcap:%attr(755,root,root) %{_bindir}/pcap_playback} %attr(755,root,root) %{_libdir}/libmediastreamer_base.so.*.* -%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.3 +%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.10 %attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.* -%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.3 -%{_pixmapsdir}/%{name} +%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.10 +%dir %{_libdir}/mediastreamer +%dir %{_libdir}/mediastreamer/plugins +%{_pixmapsdir}/nowebcamCIF.jpg %files devel %defattr(644,root,root,755) @@ -101,7 +213,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/mediastreamer2 %{_pkgconfigdir}/mediastreamer.pc +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libmediastreamer_base.a %{_libdir}/libmediastreamer_voip.a +%endif