diff --git a/openblas.spec b/openblas.spec index 9cf7955d56e794e04eccb435bc02a76b9e801c48..93b64fe752bff1b8fe0405b0b5e6272525fe7d2a 100644 --- a/openblas.spec +++ b/openblas.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 %bcond_with system_lapack %global lapackver 3.9.1 @@ -309,6 +309,9 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" %ifarch loongarch64 TARGET="TARGET=LOONGSONGENERIC DYNAMIC_ARCH=1" %endif +%ifarch riscv64 +TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0" +%endif COMMON="%{optflags} -fPIC" FCOMMON="%{optflags} -fPIC -frecursive" @@ -351,6 +354,9 @@ cp -a %{_includedir}/lapacke %{buildroot}%{_includedir}/%{name} %endif suffix="" +%ifarch riscv64 +suffix="_riscv64_generic" +%endif slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so` mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a if [[ "$suffix" != "" ]]; then @@ -527,6 +533,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Thu Nov 02 2023 U2FsdGVkX1 - 0.3.23-4 +- Add RISC-V 64 support + * Wed Nov 8 2023 XiWei Gu - 0.3.23-3 - Enable DYNAMIC_ARCH for LoongArch64