Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lapack for openSUSE:Factory checked 
in at 2022-04-05 19:54:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lapack (Old)
 and      /work/SRC/openSUSE:Factory/.lapack.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lapack"

Tue Apr  5 19:54:50 2022 rev:52 rq:965859 version:3.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lapack/lapack.changes    2022-01-05 
13:39:56.849534774 +0100
+++ /work/SRC/openSUSE:Factory/.lapack.new.1900/lapack.changes  2022-04-05 
19:54:51.298633922 +0200
@@ -1,0 +2,6 @@
+Tue Mar 15 14:20:50 UTC 2022 - Egbert Eich <e...@suse.com>
+
+- Consolidate dummy links for update-alternatives bringing them
+  in sync with openblas. Add alternatives for lapacke.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lapack.spec ++++++
--- /var/tmp/diff_new_pack.CTmt0k/_old  2022-04-05 19:54:52.110624868 +0200
+++ /var/tmp/diff_new_pack.CTmt0k/_new  2022-04-05 19:54:52.114624824 +0200
@@ -290,7 +290,7 @@
 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 blas/libblas.so.%{version} %{buildroot}/%{_libdir}/libblas.so.3
+ln -s %{_sysconfdir}/alternatives/libblas.so.3 
%{buildroot}/%{_libdir}/libblas.so.3
 ## CBLAS
 install -m 644 CBLAS/include/*.h %{buildroot}/%{_includedir}
 install -m 644 libcblas.a %{buildroot}/%{_libdir}
@@ -298,7 +298,7 @@
 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 blas/libcblas.so.%{version} %{buildroot}/%{_libdir}/libcblas.so.3
+ln -s %{_sysconfdir}/alternatives/libcblas.so.3 
%{buildroot}/%{_libdir}/libcblas.so.3
 ## LAPACK
 install -d %{buildroot}/%{_libdir}/lapack
 install -m 644 liblapack.a %{buildroot}/%{_libdir}
@@ -306,14 +306,16 @@
 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 lapack/liblapack.so.%{version} %{buildroot}/%{_libdir}/liblapack.so.3
+ln -s %{_sysconfdir}/alternatives/liblapack.so.3 
%{buildroot}/%{_libdir}/liblapack.so.3
 ## LAPACKE
 cd LAPACKE
 install -m 644 include/*.h %{buildroot}/%{_includedir}
 install -m 644 ../liblapacke.a %{buildroot}/%{_libdir}
-install -m 755 liblapacke.so.%{version} %{buildroot}/%{_libdir}
-ln -s liblapacke.so.%{version} %{buildroot}/%{_libdir}/liblapacke.so.3
-ln -s liblapacke.so.%{version} %{buildroot}/%{_libdir}/liblapacke.so
+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 
%{buildroot}/%{_libdir}/liblapacke.so.3
 cd ..
 
 %post -n libblas3
@@ -373,10 +375,25 @@
   fi
 fi
 
-%post -n liblapacke3 -p /sbin/ldconfig
+%post -n liblapacke3
+%{_sbindir}/update-alternatives --install \
+   %{_libdir}/liblapacke.so.3 liblapacke.so.3 
%{_libdir}/lapack/liblapacke.so.3  50
+/sbin/ldconfig
+
+%preun -n liblapacke3
+if [ "$1" = 0 ] ; then
+   %{_sbindir}/update-alternatives --remove liblapacke.so.3 
%{_libdir}/lapack/liblapacke.so.3
+fi
 
 %postun -n liblapacke3 -p /sbin/ldconfig
 
+%posttrans -n liblapacke3
+if [ "$1" = 0 ] ; then
+  if ! [ -f %{_libdir}/liblapacke.so.3 ] ; then
+      "%{_sbindir}/update-alternatives" --auto liblapacke.so.3
+  fi
+fi
+
 %files -n liblapack3
 %doc README.md
 %license LICENSE
@@ -408,8 +425,10 @@
 %{_libdir}/libblas.a
 
 %files -n liblapacke3
-%{_libdir}/liblapacke.so.%{version}
-%{_libdir}/liblapacke.so.3
+%{_libdir}/lapack/liblapacke.so.%{version}
+%{_libdir}/lapack/liblapacke.so.3
+%ghost %{_libdir}/liblapacke.so.3
+%ghost %{_sysconfdir}/alternatives/liblapacke.so.3
 
 %files -n lapacke-devel
 %doc LAPACKE/README

Reply via email to