diff --git a/gzip-1.9-sw.patch b/gzip-1.9-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..0e8e9ff00e7f34b484b8a4e844962b534ea823cd --- /dev/null +++ b/gzip-1.9-sw.patch @@ -0,0 +1,53 @@ +diff -Naur gzip-1.9.org/configure gzip-1.9.sw/configure +--- gzip-1.9.org/configure 2023-06-30 16:22:41.244387678 +0800 ++++ gzip-1.9.sw/configure 2023-06-30 16:25:12.059698450 +0800 +@@ -6979,6 +6979,12 @@ + CPPFLAGS="$CPPFLAGS -mieee" + fi + ;; ++ sw_64*) ++ if test -n "$GCC"; then ++ # GCC has the option -mieee. ++ CPPFLAGS="$CPPFLAGS -mieee" ++ fi ++ ;; + esac + + # Check whether --enable-largefile was given. +@@ -14064,6 +14070,10 @@ + gl_cv_host_cpu_c_abi=alpha + ;; + ++ sw_64 ) ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; ++ + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of +diff -Naur gzip-1.9.org/m4/host-cpu-c-abi.m4 gzip-1.9.sw/m4/host-cpu-c-abi.m4 +--- gzip-1.9.org/m4/host-cpu-c-abi.m4 2023-06-30 16:22:41.230387185 +0800 ++++ gzip-1.9.sw/m4/host-cpu-c-abi.m4 2023-06-30 16:23:59.184132228 +0800 +@@ -96,6 +96,12 @@ + gl_cv_host_cpu_c_abi=alpha + ;; + ++changequote(,)dnl ++ sw_64 ) ++changequote([,])dnl ++ gl_cv_host_cpu_c_abi=sw_64 ++ ;; ++ + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of +@@ -301,6 +307,9 @@ + #ifndef __x86_64__ + #undef __x86_64__ + #endif ++#ifndef __sw_64__ ++#undef __sw_64__ ++#endif + #ifndef __alpha__ + #undef __alpha__ + #endif diff --git a/gzip.spec b/gzip.spec index 0bfec74289a5c09fb5cf1fce424b088e4987c925..dd01bd14de97dfbc7e351caed22a489d8d057d86 100644 --- a/gzip.spec +++ b/gzip.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Summary: The GNU data compression program Name: gzip Version: 1.9 @@ -24,6 +24,7 @@ Patch4: ibm2.patch Patch6: ibm4.patch Patch7: dfltcc-segfault.patch Patch8: ibm5.patch +Patch9: gzip-1.9-sw.patch # Fixed in upstream code. # http://thread.gmane.org/gmane.comp.gnu.gzip.bugs/378 @@ -59,6 +60,7 @@ very commonly used data compression program. %patch6 -p1 -b .ibm4 %patch7 -p1 %patch8 -p1 +%patch9 -p1 cp %{SOURCE1} . autoreconf @@ -120,6 +122,9 @@ fi %{profiledir}/* %changelog +* Fri Jun 30 2023 wxiat - 1.9-12.0.2 +- add sw arch + * Thu Sep 29 2022 Liwei Ge - 1.9-12.0.1 - Rebuild for loongarch