diff --git a/lame-3.100-sw.patch b/lame-3.100-sw.patch new file mode 100755 index 0000000000000000000000000000000000000000..7a4a834867e5e1c0949ba89685a2ba0cc4d96df6 --- /dev/null +++ b/lame-3.100-sw.patch @@ -0,0 +1,54 @@ +diff -Nuar lame-3.100.org/configure lame-3.100.sw/configure +--- lame-3.100.org/configure 2022-05-26 15:39:59.220000000 +0000 ++++ lame-3.100.sw/configure 2022-05-26 15:46:24.500000000 +0000 +@@ -17507,7 +17507,7 @@ + *86) + OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387" + ;; +- alpha*) ++ alpha* | sw_64*) + OPTIMIZATION="${OPTIMIZATION} -mfp-regs" + + $as_echo "#define FLOAT double" >>confdefs.h +@@ -17670,7 +17670,7 @@ + # LINUX on Digital/Compaq Alpha CPUs + ########################################################################## + case $host in +-alpha*-*-linux*) ++alpha*-*-linux* | sw_64*-*-linux*) + + ################################################################ + #### Check if 'ccc' is in our path +diff -Nuar lame-3.100.org/libmp3lame/lame.c lame-3.100.sw/libmp3lame/lame.c +--- lame-3.100.org/libmp3lame/lame.c 2022-05-26 15:39:59.240000000 +0000 ++++ lame-3.100.sw/libmp3lame/lame.c 2022-05-26 15:44:51.440000000 +0000 +@@ -48,7 +48,7 @@ + #include "tables.h" + + +-#if defined(__FreeBSD__) && !defined(__alpha__) ++#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__) + #include + #endif + #ifdef __riscos__ +diff -Nuar lame-3.100.org/libmp3lame/util.c lame-3.100.sw/libmp3lame/util.c +--- lame-3.100.org/libmp3lame/util.c 2022-05-26 15:39:59.240000000 +0000 ++++ lame-3.100.sw/libmp3lame/util.c 2022-05-26 15:43:59.070000000 +0000 +@@ -34,7 +34,7 @@ + #include "tables.h" + + #define PRECOMPUTE +-#if defined(__FreeBSD__) && !defined(__alpha__) ++#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__) + # include + #endif + +@@ -845,7 +845,7 @@ + + + +-#if defined(__FreeBSD__) && !defined(__alpha__) ++#if defined(__FreeBSD__) && !defined(__alpha__) && !defined(__sw_64__) + { + /* seet floating point mask to the Linux default */ + fp_except_t mask; diff --git a/lame.spec b/lame.spec index 50795ad8d3ab844ff2730b00f2fd0efd9bec07ff..85c5d0059a6e71e656a59718dc820dbdfc931c5a 100644 --- a/lame.spec +++ b/lame.spec @@ -1,6 +1,6 @@ Name: lame Version: 3.100 -Release: 9 +Release: 10 Summary: Free MP3 audio compressor License: GPL-2.0+ and GPL-2.0 and LGPL-2.0 URL: http://lame.sourceforge.net/ @@ -8,6 +8,7 @@ Source0: http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{vers Patch0001: lame-noexecstack.patch Patch0002: libmp3lame-symbols.patch Patch0003: 0001-fix-fuzz-undefined-behavior-error.patch +Patch0004: lame-3.100-sw.patch BuildRequires: ncurses-devel gtk+-devel gcc @@ -84,6 +85,9 @@ make test %{_bindir}/mp3x %changelog +* Fri Oct 21 2022 wuzx - 3.100-10 +- add sw64 patch + * Thu Jun 03 2021 wulei - 3.100-9 - fixes failed: no acceptable C compiler found in $PATH