Accepting request 1063990 from home:eeich:branches:science

- Remove unneeded links. These will be taken care of by the
  update-alternatives. This will bring this package in sync
  with openblas.

OBS-URL: https://build.opensuse.org/request/show/1063990
OBS-URL: https://build.opensuse.org/package/show/science/lapack?expand=0&rev=32
This commit is contained in:
Egbert Eich 2023-02-09 11:17:16 +00:00 committed by Git OBS Bridge
parent 66c5213fb6
commit 2e1b97948f
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Feb 5 19:59:26 UTC 2023 - Egbert Eich <eich@suse.com>
- Remove unneeded links. These will be taken care of by the
update-alternatives. This will bring this package in sync
with openblas.
-------------------------------------------------------------------
Thu Feb 2 13:16:02 UTC 2023 - Richard Biener <rguenther@suse.com>

View File

@ -291,24 +291,18 @@ install -m 644 libblas.a %{buildroot}/%{_libdir}
install -m 755 libblas.so.%{version} %{buildroot}/%{_libdir}/blas
ln -s libblas.so.%{version} %{buildroot}/%{_libdir}/blas/libblas.so.3
ln -s blas/libblas.so.%{version} %{buildroot}/%{_libdir}/libblas.so
# dummy target for update-alternatives
ln -s %{_sysconfdir}/alternatives/libblas.so.3_%{_arch} %{buildroot}/%{_libdir}/libblas.so.3
## CBLAS
install -m 644 CBLAS/include/*.h %{buildroot}/%{_includedir}
install -m 644 libcblas.a %{buildroot}/%{_libdir}
install -m 755 libcblas.so.%{version} %{buildroot}/%{_libdir}/blas
ln -s libcblas.so.%{version} %{buildroot}/%{_libdir}/blas/libcblas.so.3
ln -s blas/libcblas.so.%{version} %{buildroot}/%{_libdir}/libcblas.so
# dummy target for update-alternatives
ln -s %{_sysconfdir}/alternatives/libcblas.so.3_%{arch} %{buildroot}/%{_libdir}/libcblas.so.3
## LAPACK
install -d %{buildroot}/%{_libdir}/lapack
install -m 644 liblapack.a %{buildroot}/%{_libdir}
install -m 755 liblapack.so.%{version} %{buildroot}/%{_libdir}/lapack
ln -s liblapack.so.%{version} %{buildroot}/%{_libdir}/lapack/liblapack.so.3
ln -s lapack/liblapack.so.%{version} %{buildroot}/%{_libdir}/liblapack.so
# dummy target for update-alternatives
ln -s %{_sysconfdir}/alternatives/liblapack.so.3_%{_arch} %{buildroot}/%{_libdir}/liblapack.so.3
## LAPACKE
cd LAPACKE
install -m 644 include/*.h %{buildroot}/%{_includedir}
@ -316,8 +310,6 @@ install -m 644 ../liblapacke.a %{buildroot}/%{_libdir}
install -m 755 liblapacke.so.%{version} %{buildroot}/%{_libdir}/lapack
ln -s liblapacke.so.%{version} %{buildroot}/%{_libdir}/lapack/liblapacke.so.3
ln -s lapack/liblapacke.so.%{version} %{buildroot}/%{_libdir}/liblapacke.so
# dummy target for update-alternatives
ln -s %{_sysconfdir}/alternatives/liblapacke.so.3_%{_arch} %{buildroot}/%{_libdir}/liblapacke.so.3
cd ..
%post -n libblas3