From bd280bfb1040e53203d684729b1a00967240d8fc Mon Sep 17 00:00:00 2001 From: wzx Date: Wed, 19 Oct 2022 17:26:48 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx (cherry picked from commit df0a35552624287450a91065aa678cf807343245) --- flac-1.3.3-sw.patch | 12 ++++++++++++ flac.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 flac-1.3.3-sw.patch diff --git a/flac-1.3.3-sw.patch b/flac-1.3.3-sw.patch new file mode 100755 index 0000000..4891f4d --- /dev/null +++ b/flac-1.3.3-sw.patch @@ -0,0 +1,12 @@ +diff -Nuar flac-1.3.3.org/m4/endian.m4 flac-1.3.3.sw/m4/endian.m4 +--- flac-1.3.3.org/m4/endian.m4 2022-03-03 02:53:08.140000000 +0000 ++++ flac-1.3.3.sw/m4/endian.m4 2022-03-03 02:54:44.740000000 +0000 +@@ -115,7 +115,7 @@ + # by looking at the target CPU type. + [ + case "$target_cpu" in +- alpha* | i?86* | mipsel* | ia64*) ++ sw_64* | alpha* | i?86* | mipsel* | ia64*) + ac_cv_c_byte_order=little + ;; + diff --git a/flac.spec b/flac.spec index 66df7e3..f9f4823 100644 --- a/flac.spec +++ b/flac.spec @@ -2,7 +2,7 @@ Name: flac Version: 1.3.3 -Release: 6 +Release: 7 Summary: encoder/decoder which support the Free Lossless Audio Codec License: BSD and GPLv2+ and GFDL Source0: http://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz @@ -10,6 +10,9 @@ URL: http://www.xiph.org/flac/ Patch0000: CVE-2021-0561.patch Patch0001: CVE-2020-0499.patch +%ifarch sw_64 +Patch0002: flac-1.3.3-sw.patch +%endif Provides: %{name}-libs Obsoletes: %{name}-libs @@ -101,6 +104,9 @@ update-desktop-database &> /dev/null || : %doc flac-doc-devel/* %changelog +* Wed Oct 19 2022 wuzx - 1.3.3-7 +- add sw64 patch + * Sat May 28 2022 zhouwenpei - 1.3.3-6 - fix CVE-2020-0499