Hello community, here is the log from the commit of package lapack for openSUSE:Factory checked in at 2013-01-22 15:44:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lapack (Old) and /work/SRC/openSUSE:Factory/.lapack.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "lapack", Maintainer is "RGuenther@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/lapack/lapack.changes 2012-11-12 07:03:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.lapack.new/lapack.changes 2013-01-22 15:44:22.000000000 +0100 @@ -1,0 +2,6 @@ +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 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lapack.spec ++++++ --- /var/tmp/diff_new_pack.SpM2wJ/_old 2013-01-22 15:44:23.000000000 +0100 +++ /var/tmp/diff_new_pack.SpM2wJ/_new 2013-01-22 15:44:23.000000000 +0100 @@ -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 @@ 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/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 -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org