Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-waitress for openSUSE:Factory
checked in at 2021-11-09 23:53:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-waitress (Old)
and /work/SRC/openSUSE:Factory/.python-waitress.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-waitress"
Tue Nov 9 23:53:55 2021 rev:23 rq:929842 version:2.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-waitress/python-waitress.changes
2021-09-07 21:13:43.604744941 +0200
+++
/work/SRC/openSUSE:Factory/.python-waitress.new.1890/python-waitress.changes
2021-11-09 23:54:07.703937885 +0100
@@ -1,0 +2,5 @@
+Fri Aug 27 12:27:31 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-waitress.spec ++++++
--- /var/tmp/diff_new_pack.vS3uwO/_old 2021-11-09 23:54:08.327938201 +0100
+++ /var/tmp/diff_new_pack.vS3uwO/_new 2021-11-09 23:54:08.331938204 +0100
@@ -1,5 +1,5 @@
#
-# spec file
+# spec file for package python-waitress
#
# Copyright (c) 2021 SUSE LLC
#
@@ -16,6 +16,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "doc"
@@ -39,13 +45,18 @@
Source1: python3.inv
Source2: fetch-intersphinx-inventories.sh
BuildRequires: fdupes
-BuildRequires: python-rpm-macros
+BuildRequires: python-rpm-macros >= 20210929
%if "%{flavor}" == ""
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
+%endif
%else
# Documentation requirements
BuildRequires: python3-Sphinx
@@ -81,6 +92,10 @@
# disable one test, that requires network
%pytest -k 'not test_service_port'
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative waitress-serve
+
%post
%python_install_alternative waitress-serve