Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-hypercorn for
openSUSE:Factory checked in at 2025-08-22 17:46:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hypercorn (Old)
and /work/SRC/openSUSE:Factory/.python-hypercorn.new.29662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hypercorn"
Fri Aug 22 17:46:51 2025 rev:7 rq:1300718 version:0.17.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-hypercorn/python-hypercorn.changes
2025-07-10 23:15:20.093254987 +0200
+++
/work/SRC/openSUSE:Factory/.python-hypercorn.new.29662/python-hypercorn.changes
2025-08-22 17:46:58.333931749 +0200
@@ -1,0 +2,5 @@
+Thu Aug 21 08:31:04 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16-based and newer systems only
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hypercorn.spec ++++++
--- /var/tmp/diff_new_pack.jNZlYC/_old 2025-08-22 17:46:59.021960066 +0200
+++ /var/tmp/diff_new_pack.jNZlYC/_new 2025-08-22 17:46:59.021960066 +0200
@@ -16,7 +16,11 @@
#
+%if 0%{?suse_version} > 1500
%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
%{?sle15_python_module_pythons}
Name: python-hypercorn
Version: 0.17.3
@@ -39,15 +43,20 @@
BuildRequires: %{python_module taskgroup if %python-base < 3.11}
BuildRequires: %{python_module trio >= 0.22.0}
BuildRequires: %{python_module wsproto >= 0.14.0}
-BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: alts
Requires: python-h11
Requires: python-h2 >= 3.1.0
Requires: python-priority
Requires: python-wsproto >= 0.14.0
BuildArch: noarch
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%if %{python_version_nodots} < 311
Requires: python-exceptiongroup >= 1.1
Requires: python-taskgroup
@@ -81,6 +90,12 @@
# Broken with new trio
%pytest -k 'not test_startup_failure'
+%post
+%python_install_alternative hypercorn
+
+%postun
+%python_uninstall_alternative hypercorn
+
%pre
%python_libalternatives_reset_alternative hypercorn