diff --git a/RHash-1.4.2-sw.patch b/RHash-1.4.2-sw.patch new file mode 100755 index 0000000..4b833af --- /dev/null +++ b/RHash-1.4.2-sw.patch @@ -0,0 +1,39 @@ +diff -Naur RHash-1.4.2.org/configure RHash-1.4.2.sw/configure +--- RHash-1.4.2.org/configure 2022-02-25 19:11:47.060000000 +0000 ++++ RHash-1.4.2.sw/configure 2022-02-25 19:19:40.480000000 +0000 +@@ -402,6 +402,7 @@ + ia64) HOST_ARCH=ia64 ;; + macppc|ppc*|Power*) HOST_ARCH=ppc ;; + alpha) HOST_ARCH=alpha ;; ++ sw_64) HOST_ARCH=sw_64 ;; + sun4*|sparc*) HOST_ARCH=sparc ;; + parisc*|hppa*|9000*) HOST_ARCH=hppa ;; + aarch64*) HOST_ARCH=aarch64 ;; +diff -Naur RHash-1.4.2.org/librhash/byte_order.h RHash-1.4.2.sw/librhash/byte_order.h +--- RHash-1.4.2.org/librhash/byte_order.h 2022-02-25 19:11:47.060000000 +0000 ++++ RHash-1.4.2.sw/librhash/byte_order.h 2022-02-25 19:18:16.820000000 +0000 +@@ -60,7 +60,7 @@ + /* try detecting endianness by CPU */ + #ifdef RHASH_BYTE_ORDER + #elif defined(CPU_IA32) || defined(CPU_X64) || defined(__ia64) || defined(__ia64__) || \ +- defined(__alpha__) || defined(_M_ALPHA) || defined(vax) || defined(MIPSEL) || \ ++ defined(__alpha__) || defined(_M_ALPHA) || defined(__sw_64__) || defined(_M_SW_64) || defined(vax) || defined(MIPSEL) || \ + defined(_ARM_) || defined(__arm__) + # define RHASH_BYTE_ORDER RHASH_BYTE_ORDER_LE + #elif defined(__sparc) || defined(__sparc__) || defined(sparc) || \ +diff -Naur RHash-1.4.2.org/librhash/test_hashes.h RHash-1.4.2.sw/librhash/test_hashes.h +--- RHash-1.4.2.org/librhash/test_hashes.h 2022-02-25 19:11:47.070000000 +0000 ++++ RHash-1.4.2.sw/librhash/test_hashes.h 2022-02-25 19:19:15.490000000 +0000 +@@ -89,6 +89,12 @@ + #ifdef __ia64__ + " __ia64__" + #endif ++#ifdef __sw_64__ ++ " __sw_64__" ++#endif ++#ifdef _M_SW_64 ++ " _M_SW_64" ++#endif + #ifdef __alpha__ + " __alpha__" + #endif diff --git a/rhash.spec b/rhash.spec index 6609a5d..8454fd5 100644 --- a/rhash.spec +++ b/rhash.spec @@ -1,6 +1,6 @@ Name: rhash Version: 1.4.2 -Release: 2 +Release: 3 Summary: Great utility for computing hash sums License: MIT URL: https://github.com/rhash/RHash @@ -8,6 +8,7 @@ Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{versi #References: https://github.com/rhash/RHash/commit/79a1a0b3d267893c40ac31192b20e20969a3a79c Patch0: Fix-bug-with-hash-options-in-check-mode.patch +Patch1: RHash-1.4.2-sw.patch BuildRequires: gcc @@ -33,7 +34,7 @@ Summary: Documentation for rhash Documentation for rhash %prep -%autosetup -n RHash-%{version} +%autosetup -n RHash-%{version} -p1 sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile %build @@ -66,6 +67,9 @@ make test-shared %{_mandir}/man1/*.1* %changelog +* Tue Oct 25 2022 wuzx - 1.4.2-3 +- Add sw64 architecture + * Fri Oct 21 2022 zhangruifang - 1.4.2-2 - Fix bug with hash options in check mode