From 15fdb3372544d09c8f18e1e810f42799dae80113 Mon Sep 17 00:00:00 2001 From: hefq343 Date: Thu, 20 Jun 2024 15:28:24 +0800 Subject: [PATCH] Init support for ppc64le Signed-off-by: hefq343 --- openblas.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/openblas.spec b/openblas.spec index 48f5732..f79678a 100644 --- a/openblas.spec +++ b/openblas.spec @@ -2,7 +2,7 @@ Name: openblas Version: 0.3.18 -Release: 5 +Release: 6 Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version License: BSD-3-Clause URL: https://github.com/xianyi/OpenBLAS/ @@ -48,7 +48,7 @@ Obsoletes: openblas-serial64_ < %{version}-%{release} openblas-openmp64_ < Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release} %endif -ExclusiveArch: x86_64 aarch64 riscv64 +ExclusiveArch: x86_64 aarch64 riscv64 ppc64le %description OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \ @@ -185,6 +185,9 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=0" %ifarch riscv64 TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0" %endif +%ifarch ppc64le +TARGET="TARGET=POWER8 DYNAMIC_ARCH=0" +%endif COMMON="%{optflags} -fPIC" FCOMMON="%{optflags} -fPIC -frecursive" @@ -291,6 +294,9 @@ suffix="_armv8" %ifarch riscv64 suffix="_riscv64_generic" %endif +%ifarch ppc64le +suffix="_power8" +%endif slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so` mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a if [[ "$suffix" != "" ]]; then @@ -434,6 +440,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Thu Jun 20 2024 hefq343 - 0.3.18-6 +- add support for ppc64le + * Fri Jun 30 2023 xiaoqianlv - 0.3.18-5 - add support for riscv -- Gitee