diff --git a/apr-util-Add-sw64-architecture.patch b/apr-util-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..bf97ab7b6819dd1b6f7762f63ea832bd2f060d14 --- /dev/null +++ b/apr-util-Add-sw64-architecture.patch @@ -0,0 +1,28 @@ +From a84e910ee8c0991ee23da668f9e849da3b03ebed Mon Sep 17 00:00:00 2001 +From: wzx +Date: Thu, 24 Nov 2022 15:11:53 +0800 +Subject: [PATCH] Add sw64 architecture + +Add sw64 architecture in file crypto/crypt_blowfish.c according to alpha architecture to support sw64 architecture. + +Signed-off-by: wzx +--- + crypto/crypt_blowfish.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/crypt_blowfish.c b/crypto/crypt_blowfish.c +index 3d306cf..c22b06b 100644 +--- a/crypto/crypt_blowfish.c ++++ b/crypto/crypt_blowfish.c +@@ -56,7 +56,7 @@ + #ifdef __i386__ + #define BF_ASM 0 + #define BF_SCALE 1 +-#elif defined(__x86_64__) || defined(__alpha__) || defined(__hppa__) ++#elif defined(__x86_64__) || defined(__alpha__) || defined(__hppa__) || defined(__sw_64__) + #define BF_ASM 0 + #define BF_SCALE 1 + #else +-- +2.33.0 + diff --git a/apr-util.spec b/apr-util.spec index 687d2fca48767199fa38fbf05869d7e7ecda6b92..1b2b68bd3ae6b82168b2faad0f23a7e275003153 100644 --- a/apr-util.spec +++ b/apr-util.spec @@ -2,12 +2,14 @@ Name: apr-util Version: 1.6.3 -Release: 1 +Release: 2 Summary: apr-util provides a number of helpful abstractions on top of APR. License: ASL 2.0 URL: http://apr.apache.org Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2 +Patch6000: apr-util-Add-sw64-architecture.patch + BuildRequires: gcc autoconf apr-devel >= 1.6.0 gdbm-devel expat-devel libuuid-devel BuildRequires: mariadb-connector-c-devel sqlite-devel >= 3.1.0 openldap-devel openssl-devel @@ -117,7 +119,10 @@ make test %{_libdir}/%{name}-%{apuver}/apr_dbd_odbc* %changelog -* Sat Feb 3 2024 caixiaomeng - 1.6.3 +* Tue Aug 13 2024 zhangruifang - 1.6.3-2 +- add sw64 patch + +* Sat Feb 3 2024 caixiaomeng - 1.6.3-1 - update to 1.6.3 * Tue Feb 14 2023 fuanan - 1.6.1-14