diff --git a/add-riscv64-support-for-webrtc-audio-processing.patch b/add-riscv64-support-for-webrtc-audio-processing.patch new file mode 100644 index 0000000000000000000000000000000000000000..be8ab03029813cbea78b5bc3ea7c91b7024c04b0 --- /dev/null +++ b/add-riscv64-support-for-webrtc-audio-processing.patch @@ -0,0 +1,17 @@ +diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h + +--- 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(__riscv) && (__riscv_xlen == 64) ++#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.spec b/webrtc-audio-processing.spec index 3b423e78c616b9bb3bd415058bb7b43b36574b1b..9f6d99bf189753cd380c29f3812ed98d42830b8f 100644 --- a/webrtc-audio-processing.spec +++ b/webrtc-audio-processing.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 Name: webrtc-audio-processing Version: 0.3.1 Release: %{anolis_release}%{?dist} @@ -11,7 +11,9 @@ Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processi BuildRequires: make BuildRequires: autoconf automake libtool BuildRequires: gcc gcc-c++ + Patch001: add-loongarch64-support-for-webrtc-audio-processing.patch +Patch002: add-riscv64-support-for-webrtc-audio-processing.patch %description %{name} is a library derived from Google WebRTC project that @@ -35,7 +37,14 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -p1 +%autosetup -N +%ifarch loongarch64 +%patch -P1 -p1 +%endif + +%ifarch riscv64 +%patch -P2 -p1 +%endif %build autoreconf -vif @@ -73,6 +82,9 @@ find %{buildroot} -type f -name "*.la" -delete %changelog +* Sat Nov 4 2023 Guoguo - 0.3.1-4 +- add riscv64 support for webrtc-audio-processing + * Mon Aug 28 2023 Wenlong Zhang - 0.3.1-3 - add loongarch64 support for webrtc-audio-processing