Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-numpy for openSUSE:Factory 
checked in at 2021-10-25 15:16:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-numpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-numpy.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-numpy"

Mon Oct 25 15:16:58 2021 rev:104 rq:924802 version:1.21.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes        
2021-09-25 00:35:38.175144528 +0200
+++ /work/SRC/openSUSE:Factory/.python-numpy.new.1890/python-numpy.changes      
2021-10-25 15:17:25.429675272 +0200
@@ -1,0 +2,11 @@
+Wed Oct  6 19:16:45 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- The update- and libalternatives logic is required in the standard
+  build, not the hpc flavor
+
+-------------------------------------------------------------------
+Thu Sep 30 10:05:18 UTC 2021 - Stefan Schubert <sch...@suse.de>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-numpy.spec ++++++
--- /var/tmp/diff_new_pack.Dl491J/_old  2021-10-25 15:17:26.257675791 +0200
+++ /var/tmp/diff_new_pack.Dl491J/_new  2021-10-25 15:17:26.257675791 +0200
@@ -16,6 +16,13 @@
 #
 
 
+#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %global flavor @BUILD_FLAVOR@%{nil}
 %define ver 1.21.2
 %define _ver 1_21_2
@@ -86,7 +93,7 @@
 BuildRequires:  %{python_module pytest-xdist}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module testsuite}
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 BuildRequires:  unzip
 %if 0%{?suse_version}
 BuildRequires:  fdupes
@@ -110,14 +117,19 @@
 # Protect it from substitution
 %define oldpy_numpy python-numpy
 Conflicts:      %{oldpy_numpy} <= 1.12.0
+ %if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+ %else
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
+ %endif
 %else
 BuildRequires:  %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
 BuildRequires:  libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel
 BuildRequires:  lua-lmod
 BuildRequires:  suse-hpc
 Requires:       libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc
-Requires(post): update-alternatives
-Requires(postun):update-alternatives
 %endif
 %python_subpackages
 
@@ -280,6 +292,10 @@
 %endif
 
 %if %{without hpc}
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative f2py
+
 %post
 %python_install_alternative f2py
 

Reply via email to