diff --git a/findutils-4.8.0-sw.patch b/findutils-4.8.0-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..04f4446b928c80e16069024c632d3468819d4e69 --- /dev/null +++ b/findutils-4.8.0-sw.patch @@ -0,0 +1,32 @@ +diff -Nuar findutils-4.8.0.org/configure findutils-4.8.0.sw/configure +--- findutils-4.8.0.org/configure 2022-02-14 07:11:40.370000000 +0000 ++++ findutils-4.8.0.sw/configure 2022-02-14 07:15:18.850000000 +0000 +@@ -7431,6 +7431,12 @@ + # (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 ++ # GCC has the option -mieee. ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + alpha*) + # On Alpha systems, a compiler option provides the behaviour. + # See the ieee(3) manual page, also available at +diff -Nuar findutils-4.8.0.org/gl/m4/fpieee.m4 findutils-4.8.0.sw/gl/m4/fpieee.m4 +--- findutils-4.8.0.org/gl/m4/fpieee.m4 2022-02-14 07:11:40.460000000 +0000 ++++ findutils-4.8.0.sw/gl/m4/fpieee.m4 2022-02-14 07:18:13.770000000 +0000 +@@ -30,6 +30,12 @@ + # (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 ++ # GCC has the option -mieee. ++ 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/findutils.spec b/findutils.spec index c0d0ffcdeb2e3c5c6cbec9d6cf19067be8adb22f..45d975411895fc4eabaf862a1cfb849666992679 100644 --- a/findutils.spec +++ b/findutils.spec @@ -1,7 +1,7 @@ Name: findutils Epoch: 2 Version: 4.8.0 -Release: 4 +Release: 5 Summary: The GNU Find Utilities License: GPLv3+ URL: http://www.gnu.org/software/findutils/ @@ -13,6 +13,10 @@ Patch1: backport-findutils-xautofs.patch # rhbz #1252549 #1299169 Patch2: backport-findutils-leaf-opt.patch Patch3: backport-maint-fix-typo-in-comments-in-parser.c.patch +%ifarch sw_64 +Patch4: findutils-4.8.0-sw.patch +%endif + Buildrequires: gcc autoconf gettext-devel texinfo libselinux-devel dejagnu automake gdb Requires(post): info @@ -95,6 +99,12 @@ fi %exclude %{_mandir}/man5/locatedb.5* %changelog +* Thu Dec 15 2022 zhangzhixin - 2:4.8.0-5 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Add sw arch patch + * Tue Oct 25 2022 zhoushuiqing - 2:4.8.0-4 - Type:bugfix - ID:NA