Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-ephemeral-port-reserve"

Fri Aug 22 17:47:14 2025 rev:4 rq:1300806 version:1.1.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-ephemeral-port-reserve/python-ephemeral-port-reserve.changes
      2025-07-09 17:26:20.474387089 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-ephemeral-port-reserve.new.29662/python-ephemeral-port-reserve.changes
   2025-08-22 17:47:37.991563971 +0200
@@ -1,0 +2,5 @@
+Thu Aug 14 13:08:59 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Convert to libalternatives on SLE-16-based and newer systems only
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-ephemeral-port-reserve.spec ++++++
--- /var/tmp/diff_new_pack.mVKHM4/_old  2025-08-22 17:47:38.887600850 +0200
+++ /var/tmp/diff_new_pack.mVKHM4/_new  2025-08-22 17:47:38.887600850 +0200
@@ -16,9 +16,12 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define modname ephemeral-port-reserve
+%if 0%{?suse_version} > 1500
 %bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 %{?sle15_python_module_pythons}
 Name:           python-ephemeral-port-reserve
 Version:        1.1.4
@@ -32,10 +35,15 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
-BuildRequires:  alts
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+%if %{with libalternatives}
+BuildRequires:  alts
 Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -61,6 +69,12 @@
 %pre
 %python_libalternatives_reset_alternative ephemeral-port-reserve
 
+%post
+%python_install_alternative ephemeral-port-reserve
+
+%postun
+%python_uninstall_alternative ephemeral-port-reserve
+
 %files %{python_files}
 %python_alternative %{_bindir}/ephemeral-port-reserve
 

Reply via email to