From 08a94d45f1f41ad1764e0ce0921c10a8efe41b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E9=80=9A=E6=88=90?= Date: Fri, 27 Aug 2021 02:18:10 +0800 Subject: [PATCH 1/2] add riscv64 support --- openblas.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openblas.spec b/openblas.spec index 40e1926..ff31e80 100644 --- a/openblas.spec +++ b/openblas.spec @@ -2,7 +2,7 @@ Name: openblas Version: 0.3.13 -Release: 2 +Release: 3 Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version License: BSD URL: https://github.com/xianyi/OpenBLAS/ @@ -34,7 +34,7 @@ Obsoletes: openblas-serial64_ < %{version}-%{release} openblas-openmp64_ < Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release} Obsoletes: openblas-static < %{version}-%{release} -ExclusiveArch: x86_64 aarch64 +ExclusiveArch: x86_64 aarch64 riscv64 %description OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \ @@ -165,6 +165,9 @@ TARGET="TARGET=CORE2 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" %ifarch aarch64 TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" %endif +%ifarch riscv64 +TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" +%endif COMMON="%{optflags} -fPIC" FCOMMON="%{optflags} -fPIC -frecursive" @@ -350,6 +353,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %{_libdir}/lib%{name}*64_.so %changelog +* Thu Aug 26 2021 zoutongcheng - 0.3.10-3 +- Add riscv64 support + * Wed Jun 30 2021 zhouwenpei -0.3.13-2 - add buildrequire gcc-c++ -- Gitee From 61fa2ad89f3fc555da8686be4c7c70f32a13d77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E9=80=9A=E6=88=90?= Date: Fri, 27 Aug 2021 02:21:04 +0800 Subject: [PATCH 2/2] add riscv64 support --- openblas.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openblas.spec b/openblas.spec index ff31e80..bc61553 100644 --- a/openblas.spec +++ b/openblas.spec @@ -353,7 +353,7 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %{_libdir}/lib%{name}*64_.so %changelog -* Thu Aug 26 2021 zoutongcheng - 0.3.10-3 +* Thu Aug 26 2021 zoutongcheng - 0.3.13-3 - Add riscv64 support * Wed Jun 30 2021 zhouwenpei -0.3.13-2 -- Gitee