[packages/mediastreamer-plugin-mswebrtc] - updated to 1.1.2 - added sse2 patch (use -msse2 for files requiring SSE2 also in cmake suite)
qboosh
qboosh at pld-linux.org
Sat Apr 15 21:37:06 CEST 2023
commit 9c5b3eee63a461b5f7df9a68c43a1e2379449572
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 15 21:39:46 2023 +0200
- updated to 1.1.2
- added sse2 patch (use -msse2 for files requiring SSE2 also in cmake suite)
mediastreamer-plugin-mswebrtc.spec | 38 +++++++++++++++++++-------------------
mswebrtc-sse2.patch | 16 ++++++++++++++++
2 files changed, 35 insertions(+), 19 deletions(-)
---
diff --git a/mediastreamer-plugin-mswebrtc.spec b/mediastreamer-plugin-mswebrtc.spec
index f187c48..5e0281d 100644
--- a/mediastreamer-plugin-mswebrtc.spec
+++ b/mediastreamer-plugin-mswebrtc.spec
@@ -2,22 +2,25 @@
Summary: WebRTC plugin for mediastreamer
Summary(pl.UTF-8): Wtyczka WebRTC dla mediastreamera
Name: mediastreamer-plugin-mswebrtc
-Version: 1.1.1
-Release: 3
+Version: 1.1.2
+Release: 1
License: GPL v2
Group: Libraries
#Source0Download: https://gitlab.linphone.org/BC/public/mswebrtc/-/tags
-#Source0: https://gitlab.linphone.org/BC/public/mswebrtc/-/archive/%{version}/mswebrtc-%{version}.tar.bz2
-Source0: https://linphone.org/releases/old/sources/plugins/mswebrtc/mswebrtc-%{version}.tar.gz
-# Source0-md5: 9f70eb5e5448dc8eaaaf72be13fe740c
+Source0: https://gitlab.linphone.org/BC/public/mswebrtc/-/archive/%{version}/mswebrtc-%{version}.tar.bz2
+# Source0-md5: 2a6434473876a79b904b19706f6c16c1
+%define webrtc_gitref 583acd27665cfadef8ab03eb85a768d308bd29dd
+Source1: https://gitlab.linphone.org/BC/public/external/webrtc/-/archive/%{webrtc_gitref}/webrtc-%{webrtc_gitref}.tar.bz2
+# Source1-md5: 2eb3cb36b5728dc7c841b73ad4a66761
Patch0: %{name}-make.patch
Patch1: %{name}-link.patch
+Patch2: mswebrtc-sse2.patch
URL: https://gitlab.linphone.org/BC/public/mswebrtc
-BuildRequires: autoconf >= 2.63
-BuildRequires: automake
-BuildRequires: libtool >= 2:2
+BuildRequires: cmake >= 3.1
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: mediastreamer-devel >= 2.0.0
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
Requires: mediastreamer >= 2.0.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,29 +34,26 @@ iSAC, AECM...).
%prep
%setup -q -n mswebrtc-%{version}
+%{__tar} xf %{SOURCE1} -C webrtc --strip-components=1
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-# strict means -Werror, there are some "defined but not used" warnings
-%configure \
- --disable-strict
+# autotools suite is more outdated, doesn't have VAD support
+install -d builddir
+cd builddir
+%cmake .. \
+ -DENABLE_STATIC=OFF
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -C builddir install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/mediastreamer/plugins/libmswebrtc.la
-
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/mswebrtc-sse2.patch b/mswebrtc-sse2.patch
new file mode 100644
index 0000000..f506a8a
--- /dev/null
+++ b/mswebrtc-sse2.patch
@@ -0,0 +1,16 @@
+--- mswebrtc-1.1.2/CMakeLists.txt.orig 2021-06-21 22:17:38.000000000 +0200
++++ mswebrtc-1.1.2/CMakeLists.txt 2023-04-14 16:01:34.806566772 +0200
+@@ -205,10 +205,12 @@ if(ENABLE_AEC)
+ ${AEC_SRC_DIR}/aec_rdft_neon.c
+ )
+ elseif(SYSTEM_PROCESSOR MATCHES "^i.?86.*" OR SYSTEM_PROCESSOR MATCHES "^x86.*" OR SYSTEM_PROCESSOR MATCHES "^x86_64.*" OR SYSTEM_PROCESSOR MATCHES "^amd64.*" OR SYSTEM_PROCESSOR MATCHES "^x64.*")
+- list(APPEND AEC_SRCS
++ set(AEC_SSE2_SRCS
+ ${AEC_SRC_DIR}/aec_core_sse2.c
+ ${AEC_SRC_DIR}/aec_rdft_sse2.c
+ )
++ set_source_files_properties(${AEC_SSE2_SRCS} PROPERTIES COMPILE_FLAGS -msse2)
++ list(APPEND AEC_SRCS ${AEC_SSE2_SRCS})
+ endif()
+ include_directories(
+ ${AEC_SRC_DIR}/include
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer-plugin-mswebrtc.git/commitdiff/9c5b3eee63a461b5f7df9a68c43a1e2379449572
More information about the pld-cvs-commit
mailing list