diff --git a/add-sw_64-support.patch b/add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..2a4b4b09101b0f002e0fdc5902b565c9cdd71d67 --- /dev/null +++ b/add-sw_64-support.patch @@ -0,0 +1,39 @@ +From 30f46dd6cda45baac22d968a5d612664759e2b2d Mon Sep 17 00:00:00 2001 +From: Hailiang +Date: Sat, 15 Mar 2025 17:47:36 +0800 +Subject: [PATCH] add sw_64 support + +--- + build/make/configure.sh | 3 +++ + configure | 1 + + 2 files changed, 4 insertions(+) + +diff --git a/build/make/configure.sh b/build/make/configure.sh +index 41d78c1..ad28312 100644 +--- a/build/make/configure.sh ++++ b/build/make/configure.sh +@@ -786,6 +786,9 @@ process_common_toolchain() { + riscv64*) + tgt_isa=riscv64 + ;; ++ sw_64*) ++ tgt_isa=sw_64 ++ ;; + + esac + +diff --git a/configure b/configure +index 45d97f8..0d578b5 100755 +--- a/configure ++++ b/configure +@@ -126,6 +126,7 @@ all_platforms="${all_platforms} mips64-linux-gcc" + all_platforms="${all_platforms} ppc64le-linux-gcc" + all_platforms="${all_platforms} riscv64-linux-gcc" + all_platforms="${all_platforms} sparc-solaris-gcc" ++all_platforms="${all_platforms} sw_64-linux-gcc" + all_platforms="${all_platforms} x86-android-gcc" + all_platforms="${all_platforms} x86-darwin8-gcc" + all_platforms="${all_platforms} x86-darwin8-icc" +-- +2.20.1 + diff --git a/libvpx.spec b/libvpx.spec index 4d93a2052b487e5670e53fdeea9f89b16cefeca3..18608a01cd482252932ba48661c505beb5f9c1bf 100644 --- a/libvpx.spec +++ b/libvpx.spec @@ -1,6 +1,6 @@ Name: libvpx Version: 1.13.1 -Release: 2 +Release: 3 Summary: VP8/VP9 Video Codec SDK License: BSD-3-Clause Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz @@ -9,6 +9,7 @@ Patch1: CVE-2024-5197-pre1.patch Patch2: CVE-2024-5197-1.patch Patch3: CVE-2024-5197-2.patch Patch4: CVE-2024-5197-3.patch +Patch5: add-sw_64-support.patch URL: http://www.webmproject.org/code/ BuildRequires: gcc gcc-c++ doxygen, php-cli, perl(Getopt::Long) %ifarch x86_64 @@ -42,10 +43,14 @@ Development libraries and headers for developing software against libvpx. %ifarch riscv64 %global vpxtarget riscv64-linux-gcc %else +%ifarch sw_64 +%global vpxtarget sw_64-linux-gcc +%else %global vpxtarget generic-gnu %endif %endif %endif +%endif %set_build_flags @@ -114,6 +119,9 @@ mv %{buildroot}%{_prefix}/src/vpx_scale %{buildroot}%{_includedir}/ %{_libdir}/libvpx.so %changelog +* Sat Mar 15 2025 mahailiang - 1.13.1-3 +- add sw_64 support + * Fri Jun 07 2024 wangkai <13474090681@163.com> - 1.13.1-2 - Fix CVE-2024-5197