diff --git a/1001-add-loongarch64-and-riscv64-support.patch b/1001-add-loongarch64-and-riscv64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..be962f11121f9a88ce70cdd5eb106c35316a52d5 --- /dev/null +++ b/1001-add-loongarch64-and-riscv64-support.patch @@ -0,0 +1,28 @@ +From b1b227e264d9a51e806eef3f9d200df2d44471e5 Mon Sep 17 00:00:00 2001 +From: mgb01105731 +Date: Fri, 20 Jun 2025 06:20:22 -0400 +Subject: [PATCH 1/1] update + +--- + webrtc/rtc_base/system/arch.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/webrtc/rtc_base/system/arch.h b/webrtc/rtc_base/system/arch.h +index aee3756..74a0557 100644 +--- a/webrtc/rtc_base/system/arch.h ++++ b/webrtc/rtc_base/system/arch.h +@@ -57,6 +57,12 @@ + #elif defined(__EMSCRIPTEN__) + #define WEBRTC_ARCH_32_BITS + #define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif defined(__loongarch64) ++#define WEBRTC_ARCH_64_BITS ++#define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif defined(__riscv) && (__riscv_xlen == 64) ++#define WEBRTC_ARCH_64_BITS ++#define WEBRTC_ARCH_LITTLE_ENDIAN + #else + #error Please add support for your architecture in rtc_base/system/arch.h + #endif +-- +2.41.0 diff --git a/add-loongarch64-support-for-webrtc-audio-processing.patch b/add-loongarch64-support-for-webrtc-audio-processing.patch deleted file mode 100644 index 1231f11270d6e37e68f95017e0f0264f230042b2..0000000000000000000000000000000000000000 --- a/add-loongarch64-support-for-webrtc-audio-processing.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 3ff92026efa6ad1eaae36d74d14e6802e1d270c2 Mon Sep 17 00:00:00 2001 -From: Wenlong Zhang -Date: Mon, 28 Aug 2023 12:30:39 +0000 -Subject: [PATCH] add loongarch64 support for webrtc-audio-processing - ---- - webrtc/typedefs.h | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h -index d875490..aff5ef1 100644 ---- a/webrtc/typedefs.h -+++ b/webrtc/typedefs.h -@@ -47,6 +47,9 @@ - #elif defined(__pnacl__) - #define WEBRTC_ARCH_32_BITS - #define WEBRTC_ARCH_LITTLE_ENDIAN -+#elif defined(__loongarch64) -+#define WEBRTC_ARCH_64_BITS -+#define WEBRTC_ARCH_LITTLE_ENDIAN - #else - #error Please add support for your architecture in typedefs.h - #endif --- -2.40.1 - diff --git a/webrtc-audio-processing-0.3.1.tar.xz b/webrtc-audio-processing-0.3.1.tar.xz deleted file mode 100644 index f36e2ec5e29419fb0edd874fc41676f1a9de7d5b..0000000000000000000000000000000000000000 Binary files a/webrtc-audio-processing-0.3.1.tar.xz and /dev/null differ diff --git a/webrtc-audio-processing-1.3.tar.gz b/webrtc-audio-processing-1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..537dff1a5092d64ee8a8ad631fa373a795abe4d4 Binary files /dev/null and b/webrtc-audio-processing-1.3.tar.gz differ diff --git a/webrtc-audio-processing.spec b/webrtc-audio-processing.spec index 3b423e78c616b9bb3bd415058bb7b43b36574b1b..f8d6c25c3faee9d168c9db04fb5c8785cd2278ba 100644 --- a/webrtc-audio-processing.spec +++ b/webrtc-audio-processing.spec @@ -1,17 +1,17 @@ -%define anolis_release 3 +%define anolis_release 1 Name: webrtc-audio-processing -Version: 0.3.1 +Version: 1.3 Release: %{anolis_release}%{?dist} Summary: Library for echo cancellation License: BSD and MIT URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/ -Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz +Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.gz -BuildRequires: make -BuildRequires: autoconf automake libtool -BuildRequires: gcc gcc-c++ -Patch001: add-loongarch64-support-for-webrtc-audio-processing.patch +BuildRequires: meson +BuildRequires: libtool +BuildRequires: gcc gcc-c++ abseil-cpp abseil-cpp-devel abseil-cpp-testing +Patch001: 1001-add-loongarch64-and-riscv64-support.patch %description %{name} is a library derived from Google WebRTC project that @@ -37,21 +37,17 @@ files for developing applications that use %{name}. %prep %autosetup -p1 + %build -autoreconf -vif - -%configure \ -%ifarch aarch64 - --enable-neon=no \ -%endif - --disable-silent-rules \ - --disable-static - -%make_build - - +%meson +%meson_build \ +#%%ifarch %%{arm} aarch64 +# -Dneon=no \ +#%endif + + %install -%make_install +%meson_install # remove libtool archives find %{buildroot} -type f -name "*.la" -delete @@ -61,18 +57,26 @@ find %{buildroot} -type f -name "*.la" -delete %files %license COPYING -%{_libdir}/libwebrtc_audio_processing.so.1* +%{_libdir}/libwebrtc-audio-coding-1.so.3* +%{_libdir}/libwebrtc-audio-processing-1.so.3* %files doc %doc NEWS AUTHORS README.md %files devel -%{_libdir}/libwebrtc_audio_processing.so -%{_libdir}/pkgconfig/webrtc-audio-processing.pc -%{_includedir}/webrtc_audio_processing/ - +%{_libdir}/libwebrtc-audio-coding-1.so +%{_libdir}/libwebrtc-audio-processing-1.so +%{_libdir}/pkgconfig/webrtc-audio-coding-1.pc +%{_libdir}/pkgconfig/webrtc-audio-processing-1.pc +%{_includedir}/webrtc-audio-processing-1/ %changelog +* Fri Jun 20 2025 zjl02254423 - 1.3-1 +- update to 1.3 + +* Sun Apr 27 2025 Shangtong Guo - 0.3.1-4 +- add support for riscv64 build + * Mon Aug 28 2023 Wenlong Zhang - 0.3.1-3 - add loongarch64 support for webrtc-audio-processing