diff --git a/0001-Add-sw_64-support.patch b/0001-Add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..086ed4264808512c6c4f53f6b28042a56303b52a --- /dev/null +++ b/0001-Add-sw_64-support.patch @@ -0,0 +1,38 @@ +From 601111c16e8300aef893f2ae4eca2b51b3544e02 Mon Sep 17 00:00:00 2001 +From: chunchao +Date: Wed, 23 Apr 2025 10:30:41 +0800 +Subject: [PATCH 1/1] Add sw_64 support + +--- + numpy/core/include/numpy/npy_cpu.h | 2 ++ + numpy/core/include/numpy/npy_endian.h | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h +index a19f8e6..d6485cd 100644 +--- a/numpy/core/include/numpy/npy_cpu.h ++++ b/numpy/core/include/numpy/npy_cpu.h +@@ -64,6 +64,8 @@ + #define NPY_CPU_HPPA + #elif defined(__alpha__) + #define NPY_CPU_ALPHA ++#elif defined(__sw_64__) ++ #define NPY_CPU_SW_64 + #elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64) + /* _M_ARM64 is defined in MSVC for ARM64 compilation on Windows */ + #if defined(__ARMEB__) || defined(__AARCH64EB__) +diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h +index 5e58a7f..6c1df9e 100644 +--- a/numpy/core/include/numpy/npy_endian.h ++++ b/numpy/core/include/numpy/npy_endian.h +@@ -41,6 +41,7 @@ + || defined(NPY_CPU_AMD64) \ + || defined(NPY_CPU_IA64) \ + || defined(NPY_CPU_ALPHA) \ ++ || defined(NPY_CPU_SW_64) \ + || defined(NPY_CPU_ARMEL) \ + || defined(NPY_CPU_ARMEL_AARCH32) \ + || defined(NPY_CPU_ARMEL_AARCH64) \ +-- +2.30.2 + diff --git a/numpy.spec b/numpy.spec index 80a5f0ee92725f9662680eed5927af0692fde042..1c0f89b02c21505eaf8e7598091c01abd788e793 100644 --- a/numpy.spec +++ b/numpy.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with tests %global blaslib flexiblas @@ -15,6 +15,8 @@ URL: http://www.%{name}.org/ Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: https://%{name}.org/doc/1.24/%{name}-html.zip +Patch0001: 0001-Add-sw_64-support.patch + %description NumPy is a community-driven open source project developed by a diverse group of contributors. The NumPy leadership has made a @@ -167,6 +169,9 @@ python3 runtests.py \ %doc docs/* THANKS.* site.cfg.example %changelog +* Wed Apr 23 2025 Chunchao Zhang - 1.26.4-2 +- Add sw_64 support + * Fri Mar 21 2025 Hong Wei Qin - 1.26.4-1 - Update to 1.26.4-1 from 1.24.4-2