diff --git a/add-loongarch64-support-for-webrtc-audio-processing.patch b/add-loongarch64-support-for-webrtc-audio-processing.patch new file mode 100644 index 0000000000000000000000000000000000000000..1231f11270d6e37e68f95017e0f0264f230042b2 --- /dev/null +++ b/add-loongarch64-support-for-webrtc-audio-processing.patch @@ -0,0 +1,26 @@ +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.spec b/webrtc-audio-processing.spec index f2aa2d2ba28b294ac62ce642d95017dcd41e8256..3b423e78c616b9bb3bd415058bb7b43b36574b1b 100644 --- a/webrtc-audio-processing.spec +++ b/webrtc-audio-processing.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 Name: webrtc-audio-processing Version: 0.3.1 Release: %{anolis_release}%{?dist} @@ -11,6 +11,7 @@ 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 %description %{name} is a library derived from Google WebRTC project that @@ -72,6 +73,9 @@ find %{buildroot} -type f -name "*.la" -delete %changelog +* Mon Aug 28 2023 Wenlong Zhang - 0.3.1-3 +- add loongarch64 support for webrtc-audio-processing + * Sun Oct 09 2022 mgb01105731 - 0.3.1-2 - add doc package