From 67b7083550338b2a20762b1cdf3ae558490f027f Mon Sep 17 00:00:00 2001 From: wxiat Date: Tue, 1 Aug 2023 15:15:13 +0800 Subject: [PATCH] add sw --- numpy-1.14.3-sw.patch | 23 +++++++++++++++++++++++ numpy.spec | 7 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 numpy-1.14.3-sw.patch diff --git a/numpy-1.14.3-sw.patch b/numpy-1.14.3-sw.patch new file mode 100644 index 0000000..5fa46d5 --- /dev/null +++ b/numpy-1.14.3-sw.patch @@ -0,0 +1,23 @@ +diff -Nuar numpy-1.14.3.org/numpy/core/include/numpy/npy_cpu.h numpy-1.14.3.sw/numpy/core/include/numpy/npy_cpu.h +--- numpy-1.14.3.org/numpy/core/include/numpy/npy_cpu.h 2023-08-01 14:59:21.592018399 +0800 ++++ numpy-1.14.3.sw/numpy/core/include/numpy/npy_cpu.h 2023-08-01 15:03:06.354950150 +0800 +@@ -59,6 +59,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__) +diff -Nuar numpy-1.14.3.org/numpy/core/include/numpy/npy_endian.h numpy-1.14.3.sw/numpy/core/include/numpy/npy_endian.h +--- numpy-1.14.3.org/numpy/core/include/numpy/npy_endian.h 2023-08-01 14:59:21.592018399 +0800 ++++ numpy-1.14.3.sw/numpy/core/include/numpy/npy_endian.h 2023-08-01 15:04:04.294994985 +0800 +@@ -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 20038d4..c0f10ec 100644 --- a/numpy.spec +++ b/numpy.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 Name: numpy Version: 1.14.3 Release: 10%{anolis_release}%{?dist} @@ -14,6 +14,7 @@ Patch0: f2py-setup.patch Patch1: numpy-1.14.3-float128.patch Patch2: numpy-1.14.3-CVE-2019-6446.patch Patch1000: 1000-numpy-anolis-support-loongarch64.patch +Patch1001: numpy-1.14.3-sw.patch BuildRequires: python3-devel python3-setuptools python3-nose python3-Cython BuildRequires: lapack-devel gcc-gfortran @@ -92,6 +93,7 @@ This package provides the complete documentation for NumPy. %patch1 -p1 %patch2 -p1 %patch1000 -p1 +%patch1001 -p1 # workaround for rhbz#849713 # http://mail.scipy.org/pipermail/numpy-discussion/2012-July/063530.html @@ -205,6 +207,9 @@ fi %changelog +* Tue Aug 1 2023 wxiat - 1:1.14.3-10.0.2 +- add sw arch + * Thu Nov 4 2021 Liwei Ge - 1:1.14.3-10.0.1 - Support loongarch64 platform -- Gitee