Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sip4 for openSUSE:Factory 
checked in at 2025-10-29 21:07:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sip4 (Old)
 and      /work/SRC/openSUSE:Factory/.python-sip4.new.1980 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sip4"

Wed Oct 29 21:07:54 2025 rev:10 rq:1314296 version:4.19.25

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sip4/python-sip4.changes  2023-07-01 
23:18:35.950457373 +0200
+++ /work/SRC/openSUSE:Factory/.python-sip4.new.1980/python-sip4.changes        
2025-10-29 21:09:23.605527618 +0100
@@ -1,0 +2,5 @@
+Mon Aug 25 12:16:08 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-sip4.spec ++++++
--- /var/tmp/diff_new_pack.gbzTFt/_old  2025-10-29 21:09:24.265555364 +0100
+++ /var/tmp/diff_new_pack.gbzTFt/_new  2025-10-29 21:09:24.265555364 +0100
@@ -37,6 +37,12 @@
 # python-sip4-doc and python-sip4-common are flavorless
 %define oldpython python
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 Name:           python-%{pname}
 Version:        4.19.25
 Release:        0
@@ -84,12 +90,17 @@
 Requires:       %{name}-common = %{version}
 Requires:       c++_compiler
 Requires:       python-devel
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
 Provides:       python-%{mname}-bin = %{version}-%{release}
 Provides:       python-%{mname}-devel = %{version}-%{release}
 Obsoletes:      python-%{mname}-bin < %{version}
 Obsoletes:      python-%{mname}-devel < %{version}
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %ifpython2
 Provides:       %{oldpython}-%{mname}-bin = %{version}-%{release}
 Provides:       %{oldpython}-%{mname}-devel = %{version}-%{release}
@@ -163,7 +174,7 @@
     LIBS+="-l$ldlibrary" \
     -d %{$python_sitearch}
 
-make %{?_smp_mflags}
+%make_build
 
 # Point to the correct location for the documentation files
 cp ../README ./
@@ -193,7 +204,7 @@
   --no-dist-info \
   -d %{$python_sitearch}
 
-make %{?_smp_mflags}
+%make_build
 
 popd
 }
@@ -248,6 +259,9 @@
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 mkdir -p %{buildroot}%{_datadir}/sip
 
+%pre devel
+%python_libalternatives_reset_alternative sip
+
 %post devel
 %python_install_alternative sip
 

Reply via email to