Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-maturin for openSUSE:Factory 
checked in at 2025-08-22 17:47:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-maturin (Old)
 and      /work/SRC/openSUSE:Factory/.python-maturin.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-maturin"

Fri Aug 22 17:47:00 2025 rev:52 rq:1300748 version:1.9.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-maturin/python-maturin.changes    
2025-08-06 14:32:21.077671482 +0200
+++ /work/SRC/openSUSE:Factory/.python-maturin.new.29662/python-maturin.changes 
2025-08-22 17:47:18.714770580 +0200
@@ -1,0 +2,5 @@
+Thu Aug 21 09:31:44 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16-based and newer systems only
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-maturin.spec ++++++
--- /var/tmp/diff_new_pack.fsLXx6/_old  2025-08-22 17:47:20.910860966 +0200
+++ /var/tmp/diff_new_pack.fsLXx6/_new  2025-08-22 17:47:20.910860966 +0200
@@ -16,7 +16,11 @@
 #
 
 
+%if 0%{?suse_version} > 1500
 %bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-maturin
 Version:        1.9.3
@@ -32,11 +36,16 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tomli >= 1.1.0 if %python-base < 3.11}
 BuildRequires:  %{python_module wheel >= 0.36.2}
-BuildRequires:  alts
 BuildRequires:  cargo-packaging
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+%if %{with libalternatives}
+BuildRequires:  alts
 Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 %if 0%{?python_version_nodots} < 311
 Requires:       python-tomli >= 1.1.0
 %endif
@@ -64,6 +73,12 @@
 
 %check
 
+%post
+%python_install_alternative maturin
+
+%postun
+%python_uninstall_alternative maturin
+
 %pre
 %python_libalternatives_reset_alternative maturin
 

Reply via email to