diff --git a/readline-7.0-sw.patch b/readline-7.0-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..48812ec1633dfcaa0bac0a3faa62c2266d804208 --- /dev/null +++ b/readline-7.0-sw.patch @@ -0,0 +1,12 @@ +diff -Naur readline-7.0.org/aclocal.m4 readline-7.0.sw/aclocal.m4 +--- readline-7.0.org/aclocal.m4 2015-12-02 22:22:19.000000000 +0800 ++++ readline-7.0.sw/aclocal.m4 2023-05-12 15:57:26.839697858 +0800 +@@ -2660,7 +2660,7 @@ + [ + # Guess based on the CPU. + case "$host_cpu" in +- alpha* | i[34567]86 | m68k | s390*) ++ alpha* | sw_64* | i[34567]86 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; diff --git a/readline.spec b/readline.spec index 09cde44a35e149fd238dc3cfc802c53e4027f5b6..c80286afa5a07aabe7186bdb7acf66fa286eab60 100644 --- a/readline.spec +++ b/readline.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: A library for editing typed command lines Name: readline Version: 7.0 @@ -12,6 +12,7 @@ Source: ftp://ftp.gnu.org/gnu/readline/readline-%{version}.tar.gz Patch1: Readline-7.0-patch-1.patch Patch2: Readline-7.0-patch-2.patch Patch3: Readline-7.0-patch-3.patch +Patch4: readline-7.0-sw.patch # Other patches # fix file permissions, remove RPATH, use CFLAGS @@ -120,6 +121,9 @@ fi %{_libdir}/libhistory.a %changelog +* Fri May 12 2023 wxiat -7.0-10.0.2 +- add sw patch + * Sat Jul 16 2022 Xiaoping Liu - 7.0-10.0.1 - add doc sub package