From f13bbb8d41494fc9b6710e835c82fba214130db3 Mon Sep 17 00:00:00 2001 From: wzx Date: Wed, 26 Oct 2022 14:21:36 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx --- zziplib-0.13.71-sw.patch | 24 ++++++++++++++++++++++++ zziplib.spec | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100755 zziplib-0.13.71-sw.patch diff --git a/zziplib-0.13.71-sw.patch b/zziplib-0.13.71-sw.patch new file mode 100755 index 0000000..bfc17a5 --- /dev/null +++ b/zziplib-0.13.71-sw.patch @@ -0,0 +1,24 @@ +diff -Naur zziplib-0.13.71.org/configure zziplib-0.13.71.sw/configure +--- zziplib-0.13.71.org/configure 2022-02-28 06:07:23.580000000 +0000 ++++ zziplib-0.13.71.sw/configure 2022-02-28 06:08:52.270000000 +0000 +@@ -14802,7 +14802,7 @@ + $as_echo_n "(cached) " >&6 + else + if test "$cross_compiling" = "yes"; then +- case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) ++ case "$host_cpu" in sw_64*|alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) + ax_cv_have_aligned_access_required="yes" + ;; esac + else +diff -Naur zziplib-0.13.71.org/m4/ax_check_aligned_access_required.m4 zziplib-0.13.71.sw/m4/ax_check_aligned_access_required.m4 +--- zziplib-0.13.71.org/m4/ax_check_aligned_access_required.m4 2022-02-28 06:07:23.590000000 +0000 ++++ zziplib-0.13.71.sw/m4/ax_check_aligned_access_required.m4 2022-02-28 06:08:21.470000000 +0000 +@@ -29,7 +29,7 @@ + [AC_CACHE_CHECK([if pointers to integers require aligned access], + [ax_cv_have_aligned_access_required], + [if test "$cross_compiling" = "yes"; then +- case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) ++ case "$host_cpu" in sw_64*|alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1) + ax_cv_have_aligned_access_required="yes" + ;; esac + else diff --git a/zziplib.spec b/zziplib.spec index 662fd15..69b0a9c 100644 --- a/zziplib.spec +++ b/zziplib.spec @@ -4,7 +4,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool Name: zziplib Version: 0.13.71 -Release: 3 +Release: 4 Summary: Lightweight library for zip compression License: LGPLv2+ or MPLv1.1 URL: http://zziplib.sourceforge.net @@ -17,6 +17,7 @@ Patch6003: backport-0004-CVE-2020-18442.patch Patch6004: backport-0005-CVE-2020-18442.patch Patch6005: backport-0006-CVE-2020-18442.patch Patch6006: backport-0007-CVE-2020-18442.patch +Patch6007: zziplib-0.13.71-sw.patch BuildRequires: perl-interpreter zip xmlto BuildRequires: zlib-devel SDL-devel pkgconfig autoconf automake gcc make @@ -58,6 +59,7 @@ sed -i -e 's:docs ::g' Makefile.am %patch6004 -p1 %patch6005 -p1 %patch6006 -p1 +%patch6007 -p1 %build %configure --disable-static --enable-sdl --enable-frame-pointer --enable-builddir=_builddir @@ -91,6 +93,9 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_mandir}/man3/* %changelog +* Wed Oct 26 2022 wuzx - 0.13.71-4 +- Add sw64 architecture + * Sat Sep 04 2021 shixuantong - 0.13.71-3 - remove rpath -- Gitee