[packages/mediastreamer] - updated to 2.12.0 (note: new sonames) - added ffmpeg patch (allow use of deprecated ffmpeg API)
qboosh
qboosh at pld-linux.org
Tue Nov 10 22:00:47 CET 2015
commit 210be78d70b9cdd55fdbbebed53a7f536d5e2f93
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Nov 10 22:01:00 2015 +0100
- updated to 2.12.0 (note: new sonames)
- added ffmpeg patch (allow use of deprecated ffmpeg API)
mediastreamer-ffmpeg.patch | 11 +++++++++++
mediastreamer.spec | 35 +++++++++++++++++++++--------------
2 files changed, 32 insertions(+), 14 deletions(-)
---
diff --git a/mediastreamer.spec b/mediastreamer.spec
index 30c6d2d..df8acf5 100644
--- a/mediastreamer.spec
+++ b/mediastreamer.spec
@@ -1,4 +1,5 @@
# TODO:
+# - switch to mbledtls when 2.x is supported (mbed_ssl_init instead of ssl_init)
# - dtls (polarssl/mbedtls >= 1.4 with DTLS-SRTP support, not released yet)
#
# Conditional build:
@@ -13,17 +14,19 @@
%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.11.2
-Release: 4
+Version: 2.12.0
+Release: 1
License: GPL v2+
Group: Libraries
Source0: http://download-mirror.savannah.gnu.org/releases/linphone/mediastreamer/%{name}-%{version}.tar.gz
-# Source0-md5: 8b654c3e8938d50df9e83d2e353888a6
+# Source0-md5: f4570034ce3875cf238e0e1249b5ec2e
Patch0: %{name}-imagedir.patch
+Patch1: %{name}-ffmpeg.patch
URL: http://www.linphone.org/technical-corner/mediastreamer2/overview
%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
BuildRequires: SDL-devel >= 1.2.0
@@ -88,8 +91,8 @@ 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 development documentation for mediastreamer library
-Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do biblioteki 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} = %{version}-%{release}
%{?with_opengl:Requires: OpenGL-devel}
@@ -117,26 +120,28 @@ Requires: xorg-lib-libX11-devel
Requires: xorg-lib-libXv-devel
%description devel
-Header files and development documentation for mediastreamer library.
+Header files and development documentation for mediastreamer
+libraries.
%description devel -l pl.UTF-8
-Pliki nagłówkowe i dokumentacja do biblioteki mediastreamer.
+Pliki nagłówkowe i dokumentacja do bibliotek mediastreamer.
%package static
-Summary: Static mediastreamer library
-Summary(pl.UTF-8): Statyczna biblioteka mediastreamer
+Summary: Static mediastreamer libraries
+Summary(pl.UTF-8): Statyczne biblioteki mediastreamer
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static mediastreamer library.
+Static mediastreamer libraries.
%description static -l pl.UTF-8
-Statyczna biblioteka mediastreamer.
+Statyczne biblioteki mediastreamer.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
@@ -155,7 +160,7 @@ Statyczna biblioteka mediastreamer.
%{?with_portaudio:--enable-portaudio} \
--enable-pulseaudio%{!?with_pulseaudio:=no} \
--disable-silent-rules \
- --enable-static \
+ %{?with_static_libs:--enable-static} \
%{!?with_zrtp:--disable-zrtp} \
%{!?with_srtp:--with-srtp=none}
@@ -188,9 +193,9 @@ rm -rf $RPM_BUILD_ROOT
%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.4
+%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_base.so.6
%attr(755,root,root) %{_libdir}/libmediastreamer_voip.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.4
+%attr(755,root,root) %ghost %{_libdir}/libmediastreamer_voip.so.6
%dir %{_libdir}/mediastreamer
%dir %{_libdir}/mediastreamer/plugins
%{_pixmapsdir}/%{name}
@@ -205,7 +210,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
diff --git a/mediastreamer-ffmpeg.patch b/mediastreamer-ffmpeg.patch
new file mode 100644
index 0000000..2f3359d
--- /dev/null
+++ b/mediastreamer-ffmpeg.patch
@@ -0,0 +1,11 @@
+--- mediastreamer-2.12.0/configure.ac.orig 2015-11-02 14:44:12.252105408 +0100
++++ mediastreamer-2.12.0/configure.ac 2015-11-10 19:53:44.207627872 +0100
+@@ -82,7 +82,7 @@
+ esac
+
+ if test "$strictness" = "yes" ; then
+- STRICT_OPTIONS="$STRICT_OPTIONS -Werror"
++ STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=deprecated-declarations"
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
+ fi
+ AC_SUBST(STRICT_OPTIONS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer.git/commitdiff/210be78d70b9cdd55fdbbebed53a7f536d5e2f93
More information about the pld-cvs-commit
mailing list