Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-gunicorn for openSUSE:Factory
checked in at 2025-08-21 16:52:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gunicorn (Old)
and /work/SRC/openSUSE:Factory/.python-gunicorn.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gunicorn"
Thu Aug 21 16:52:51 2025 rev:29 rq:1300448 version:23.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gunicorn/python-gunicorn.changes
2025-07-09 17:26:49.103578337 +0200
+++
/work/SRC/openSUSE:Factory/.python-gunicorn.new.29662/python-gunicorn.changes
2025-08-21 16:53:46.488036894 +0200
@@ -1,0 +2,5 @@
+Wed Aug 20 08:51:10 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16+ only
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-gunicorn.spec ++++++
--- /var/tmp/diff_new_pack.aZJnNL/_old 2025-08-21 16:53:48.016100904 +0200
+++ /var/tmp/diff_new_pack.aZJnNL/_new 2025-08-21 16:53:48.020101071 +0200
@@ -24,7 +24,11 @@
%define psuffix %{nil}
%bcond_with test
%endif
+%if 0%{?suse_version} > 1500
%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
%{?sle15_python_module_pythons}
Name: python-gunicorn%{psuffix}
Version: 23.0.0
@@ -37,10 +41,8 @@
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 3.0}
BuildRequires: %{python_module wheel}
-BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: alts
Requires: python-packaging
Requires: (python-importlib_metadata if python-base < 3.8)
Suggests: python-evenlet
@@ -49,6 +51,13 @@
Suggests: python-setproctitle
Suggests: python-tornado
BuildArch: noarch
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%if 0%{?sle_version} >= 150500
# Fixes the build on Leap
BuildRequires: %{python_module Sphinx}
@@ -111,6 +120,12 @@
%pre
%python_libalternatives_reset_alternative gunicorn
+%post
+%python_install_alternative gunicorn
+
+%postun
+%python_uninstall_alternative gunicorn
+
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/gunicorn