Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package openblas for openSUSE:Factory 
checked in at 2022-04-12 00:13:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openblas (Old)
 and      /work/SRC/openSUSE:Factory/.openblas.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openblas"

Tue Apr 12 00:13:49 2022 rev:48 rq:968025 version:0.3.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/openblas/openblas.changes        2022-04-08 
00:27:45.258298333 +0200
+++ /work/SRC/openSUSE:Factory/.openblas.new.1900/openblas.changes      
2022-04-12 00:13:50.645361889 +0200
@@ -1,0 +2,8 @@
+Sat Apr  9 06:13:09 UTC 2022 - Egbert Eich <e...@suse.com>
+
+- Fix issues in update paths from earlier versions introduced by
+  recent structural changes (bsc#1198264):
+  - Add Obsoletes for old package names
+  - Handle the change from directories to soft links properly
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ openblas.spec ++++++
--- /var/tmp/diff_new_pack.K0nNAO/_old  2022-04-12 00:13:51.493351853 +0200
+++ /var/tmp/diff_new_pack.K0nNAO/_new  2022-04-12 00:13:51.501351758 +0200
@@ -251,7 +251,10 @@
 %if %{without hpc}
 Requires:       %{pname}-common-devel = %{version}
 %if 0%{?arch_flavor}
-Provides:       %{pname}-devel
+Provides:       %{pname}-devel = %version
+Provides:       %{pname}-devel(default) = %version
+%else
+Provides:       %{pname}-devel(other) = %version
 %endif
 %else
 %hpc_requires_devel
@@ -277,8 +280,11 @@
 %package      -n %{pname}-common-devel
 Summary:        Development headers and libraries for OpenBLAS
 Group:          Development/Libraries/C and C++
-Provides:       %{pname}-devel-headers
-Provides:       pkgconfig(openblas)
+Requires:       (%{pname}-devel(default) or %{pname}-devel(other))
+Obsoletes:      %{pname}-devel < %version
+Obsoletes:      %{pname}-devel-headers < %version
+Provides:       %{pname}-devel-headers = %version
+Provides:       pkgconfig(openblas) = %version
 
 %description  -n %{pname}-common-devel
 OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
@@ -476,6 +482,12 @@
 
 %if %{without hpc}
 
+# Ensure directory used in older versions are replaced by symlink properly
+%pre -n %{pname}-common-devel
+d=%{_libdir}/cmake/openblas
+[ -d $d -a ! -L $d -a "$(rpm -q --qf '%%{NAME}' -f $d 2>/dev/null)" = 
"openblas-devel" ] \
+    && { n=$(mktemp -d $(dirname $d)/tmpd-XXXXX); mv $d $n; rm -rf $n; } || 
true
+
 %post -n lib%{name}%{so_v}
 %{_sbindir}/update-alternatives --install \
    %{_libdir}/openblas-default openblas-default %{p_libdir} %openblas_so_prio

Reply via email to