diff --git a/m4-1.4.18-sw.patch b/m4-1.4.18-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..8139b943f54f81a9fdfa48484b1afa3bd051da8a --- /dev/null +++ b/m4-1.4.18-sw.patch @@ -0,0 +1,30 @@ +diff -Naur m4-1.4.18.org/configure m4-1.4.18.sw/configure +--- m4-1.4.18.org/configure 2017-01-01 06:36:36.000000000 +0800 ++++ m4-1.4.18.sw/configure 2023-05-16 10:15:13.765091936 +0800 +@@ -6522,6 +6522,11 @@ + # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 + # and the GCC 4.1.2 manual). + case "$host_cpu" in ++ sw_64*) ++ if test -n "$GCC"; then ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + alpha*) + # On Alpha systems, a compiler option provides the behaviour. + # See the ieee(3) manual page, also available at +diff -Naur m4-1.4.18.org/m4/fpieee.m4 m4-1.4.18.sw/m4/fpieee.m4 +--- m4-1.4.18.org/m4/fpieee.m4 2016-12-31 21:54:42.000000000 +0800 ++++ m4-1.4.18.sw/m4/fpieee.m4 2023-05-16 10:16:01.476775480 +0800 +@@ -30,6 +30,11 @@ + # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 + # and the GCC 4.1.2 manual). + case "$host_cpu" in ++ sw_64*) ++ if test -n "$GCC"; then ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + alpha*) + # On Alpha systems, a compiler option provides the behaviour. + # See the ieee(3) manual page, also available at diff --git a/m4.spec b/m4.spec index 29c05ff72600248bb8a532043d1aedc95510707d..633298f1136944a9f6580833fe65b197df3e1626 100644 --- a/m4.spec +++ b/m4.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: The GNU macro processor Name: m4 Version: 1.4.18 @@ -10,6 +10,7 @@ Source1: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz.sig URL: http://www.gnu.org/software/m4/ # Patch0: update to glibc libio.h removal, rhbz#1573342 Patch0: m4-1.4.18-glibc-change-work-around.patch +Patch1: m4-1.4.18-sw.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRequires: autoconf automake @@ -49,6 +50,7 @@ Doc pages for %{name}. %setup -q %patch0 -p1 -b .glibc-change-work-around chmod 644 COPYING +%patch1 -p1 %build autoreconf -ivf @@ -84,6 +86,9 @@ if [ "$1" = 0 ]; then fi %changelog +* Tue May 16 2023 wxiat - 1.4.18-7.0.2 +- add sw patch + * Fri Jul 15 2022 Weisson - 1.4.18-7.0.1 - Add doc sub package