Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-haproxyctl for 
openSUSE:Factory checked in at 2025-06-11 18:35:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-haproxyctl (Old)
 and      /work/SRC/openSUSE:Factory/.python-haproxyctl.new.19631 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-haproxyctl"

Wed Jun 11 18:35:06 2025 rev:5 rq:1284875 version:0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-haproxyctl/python-haproxyctl.changes      
2025-05-30 17:25:45.000310784 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-haproxyctl.new.19631/python-haproxyctl.changes
   2025-06-11 18:35:31.653605855 +0200
@@ -1,0 +2,6 @@
+Wed Jun  4 13:16:23 UTC 2025 - Nico Krapp <nico.kr...@suse.com>
+
+- Add missing requirement on update-alternatives
+- Migrate to libalternatives on Tumbleweed and Leap 16
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-haproxyctl.spec ++++++
--- /var/tmp/diff_new_pack.p0pojE/_old  2025-06-11 18:35:32.305632803 +0200
+++ /var/tmp/diff_new_pack.p0pojE/_new  2025-06-11 18:35:32.305632803 +0200
@@ -16,6 +16,11 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 Name:           python-haproxyctl
 Version:        0.5
 Release:        0
@@ -31,6 +36,13 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 Requires:       haproxy
 BuildArch:      noarch
 %python_subpackages
@@ -42,7 +54,7 @@
 with their status.
 
 %prep
-%setup -q -n haproxyctl-%{version}
+%autosetup -p1 -n haproxyctl-%{version}
 # The package is under GPL-3.0, as expressed in setup.py, but the
 # license file is not included in the source code.
 cp %{SOURCE1} .
@@ -61,11 +73,18 @@
 %check
 %{python_expand $python -m unittest discover -s haproxy/tests}
 
+%if %{with libalternatives}
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative <package-name>
+%else
+
 %post
 %python_install_alternative haproxyctl
 
 %postun
 %python_uninstall_alternative haproxyctl
+%endif
 
 %files %{python_files}
 %doc README.md

Reply via email to