Add sw_64 support
(cherry picked from commit 3e0d495d6d5232193788424e303be21d499e7248)
This commit is contained in:
parent
cdf3187874
commit
1133ab14ce
100268
OpenBLAS-0.3.25-sw.patch
Normal file
100268
OpenBLAS-0.3.25-sw.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: openblas
|
Name: openblas
|
||||||
Version: 0.3.25
|
Version: 0.3.25
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
|
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/xianyi/OpenBLAS/
|
URL: https://github.com/xianyi/OpenBLAS/
|
||||||
@ -10,6 +10,7 @@ Source0: https://github.com/xianyi/OpenBLAS/archive/v%{version}/openblas-
|
|||||||
Patch0000: openblas-0.2.15-system_lapack.patch
|
Patch0000: openblas-0.2.15-system_lapack.patch
|
||||||
Patch0001: openblas-0.2.5-libname.patch
|
Patch0001: openblas-0.2.5-libname.patch
|
||||||
Patch0002: openblas-0.3.11-tests.patch
|
Patch0002: openblas-0.3.11-tests.patch
|
||||||
|
Patch0003: OpenBLAS-0.3.25-sw.patch
|
||||||
|
|
||||||
BuildRequires: gcc gcc-gfortran perl-devel gcc-c++
|
BuildRequires: gcc gcc-gfortran perl-devel gcc-c++
|
||||||
|
|
||||||
@ -34,7 +35,7 @@ Obsoletes: openblas-serial64_ < %{version}-%{release} openblas-openmp64_ <
|
|||||||
Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release}
|
Obsoletes: openblas-threads64_ < %{version}-%{release} openblas-Rblas < %{version}-%{release}
|
||||||
Obsoletes: openblas-static < %{version}-%{release}
|
Obsoletes: openblas-static < %{version}-%{release}
|
||||||
|
|
||||||
ExclusiveArch: x86_64 aarch64 loongarch64 riscv64 ppc64le
|
ExclusiveArch: x86_64 aarch64 loongarch64 riscv64 ppc64le sw_64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \
|
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD \
|
||||||
@ -57,6 +58,9 @@ cd OpenBLAS-%{version}
|
|||||||
%endif
|
%endif
|
||||||
%patch0001 -p1 -b .libname
|
%patch0001 -p1 -b .libname
|
||||||
%patch0002 -p1 -b .tests
|
%patch0002 -p1 -b .tests
|
||||||
|
%ifarch sw_64
|
||||||
|
%patch0003 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# Set source permissions
|
# Set source permissions
|
||||||
find -name \*.f -exec chmod 644 {} \;
|
find -name \*.f -exec chmod 644 {} \;
|
||||||
@ -233,6 +237,9 @@ suffix="_riscv64_generic"
|
|||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
suffix="_power8"
|
suffix="_power8"
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch sw_64
|
||||||
|
suffix="_sw6"
|
||||||
|
%endif
|
||||||
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so`
|
||||||
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||||
if [[ "$suffix" != "" ]]; then
|
if [[ "$suffix" != "" ]]; then
|
||||||
@ -373,6 +380,9 @@ sed -i -e 's|%{buildroot}||' "%{buildroot}%{_libdir}/pkgconfig/%{name}.pc"
|
|||||||
%{_libdir}/lib%{name}*64_.so
|
%{_libdir}/lib%{name}*64_.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 25 2025 zhangshaoning <zhangshaoning@uniontech.com> - 0.3.25-6
|
||||||
|
- Add sw_64 support
|
||||||
|
|
||||||
* Mon Nov 11 2024 Kai Liu <kai.liu@windriver.com> - 0.3.25-5
|
* Mon Nov 11 2024 Kai Liu <kai.liu@windriver.com> - 0.3.25-5
|
||||||
- Don't run make tasks in background sub-shell, as this causes
|
- Don't run make tasks in background sub-shell, as this causes
|
||||||
severe issue. Use the _smp_mflags macro instead. See issue
|
severe issue. Use the _smp_mflags macro instead. See issue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user