Accepting request 149439 from devel:libraries:c_c++
- add update-alternative support to allow user to easily switch between several blas and lapack libraries (forwarded request 149139 from scorot) OBS-URL: https://build.opensuse.org/request/show/149439 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lapack?expand=0&rev=31
This commit is contained in:
committed by
Git OBS Bridge
parent
4cb8569b94
commit
6d4815ef39
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 13 00:04:56 UTC 2013 - scorot@free.fr
|
||||
|
||||
- add update-alternative support to allow user to easily switch
|
||||
between several blas and lapack libraries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 6 10:10:53 UTC 2012 - burnus@net-b.de
|
||||
|
||||
|
26
lapack.spec
26
lapack.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lapack
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -28,6 +28,8 @@ Patch1: lapack-3.2.2.patch
|
||||
BuildRequires: doxygen >= 1.7
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: python
|
||||
BuildRequires: update-alternatives
|
||||
PreReq: update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -330,10 +332,28 @@ ln -s DLAMC1.3.gz %{buildroot}/%{_mandir}/man3/DLAMC4.3.gz
|
||||
ln -s DLAMC1.3.gz %{buildroot}/%{_mandir}/man3/DLAMC5.3.gz
|
||||
ln -s DLAMCH.3.gz %{buildroot}/%{_mandir}/man3/DLAMC3.3.gz
|
||||
|
||||
%post -n libblas3 -p /sbin/ldconfig
|
||||
%post -n libblas3
|
||||
"%_sbindir/update-alternatives" --install \
|
||||
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/libblas.so.%{version} 50
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun -n libblas3
|
||||
if [ "$1" = 0 ] ; then
|
||||
"%_sbindir/update-alternatives" --remove libblas.so.3 %{_libdir}/libblas.so.%{version}
|
||||
fi
|
||||
|
||||
%postun -n libblas3 -p /sbin/ldconfig
|
||||
|
||||
%post -n liblapack3 -p /sbin/ldconfig
|
||||
%post -n liblapack3
|
||||
"%_sbindir/update-alternatives" --install \
|
||||
%{_libdir}/liblapack.so.3 liblapack.so.3 %{_libdir}/liblapack.so.%{version} 50
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun -n liblapack3
|
||||
if [ "$1" = 0 ] ; then
|
||||
"%_sbindir/update-alternatives" --remove liblapack.so.3 %{_libdir}/liblapack.so.%{version}
|
||||
fi
|
||||
|
||||
%postun -n liblapack3 -p /sbin/ldconfig
|
||||
|
||||
%post -n liblapacke3 -p /sbin/ldconfig
|
||||
|
Reference in New Issue
Block a user