diff --git a/numpy-1.21.4-sw.patch b/numpy-1.21.4-sw.patch new file mode 100755 index 0000000000000000000000000000000000000000..af48839d82636fdace60bf04e53141cd6db68c51 --- /dev/null +++ b/numpy-1.21.4-sw.patch @@ -0,0 +1,23 @@ +diff -Naur numpy-1.21.4.org/numpy/core/include/numpy/npy_cpu.h numpy-1.21.4.sw/numpy/core/include/numpy/npy_cpu.h +--- numpy-1.21.4.org/numpy/core/include/numpy/npy_cpu.h 2022-02-27 02:48:27.080000000 +0000 ++++ numpy-1.21.4.sw/numpy/core/include/numpy/npy_cpu.h 2022-02-28 06:42:23.070000000 +0000 +@@ -61,6 +61,8 @@ + #define NPY_CPU_IA64 + #elif defined(__hppa) + #define NPY_CPU_HPPA ++#elif defined(__sw_64__) ++ #define NPY_CPU_SW_64 + #elif defined(__alpha__) + #define NPY_CPU_ALPHA + #elif defined(__arm__) || defined(__aarch64__) || defined(_M_ARM64) +diff -Naur numpy-1.21.4.org/numpy/core/include/numpy/npy_endian.h numpy-1.21.4.sw/numpy/core/include/numpy/npy_endian.h +--- numpy-1.21.4.org/numpy/core/include/numpy/npy_endian.h 2022-02-27 02:48:27.080000000 +0000 ++++ numpy-1.21.4.sw/numpy/core/include/numpy/npy_endian.h 2022-02-28 06:44:18.830000000 +0000 +@@ -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) \ diff --git a/numpy.spec b/numpy.spec index 373aef555437d223035725b8ebb28c0bba5ae3ab..7a011ee4475b6a22122a3ffbd663d31e8ff35ea7 100644 --- a/numpy.spec +++ b/numpy.spec @@ -2,7 +2,7 @@ Name: numpy Version: 1.21.4 -Release: 4 +Release: 5 Epoch: 1 Summary: A fast multidimensional array facility for Python @@ -17,6 +17,7 @@ BuildRequires: python3-Cython >= 0.29.24 Patch0: backport-CVE-2021-41496.patch Patch1: backport-CVE-2021-41495.patch Patch2: backport-CVE-2021-34141.patch +Patch3: numpy-1.21.4-sw.patch %description NumPy is the fundamental package for scientific computing with Python. It contains among other things: @@ -106,6 +107,9 @@ popd &> /dev/null %changelog +* Mon Oct 24 2022 wuzx - 1.21.4-5 +- Add sw64 architecture + * Thu May 26 2022 renhongxun - 1.21.4-4 - fix CVE-2021-34141