Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-CherryPy for openSUSE:Factory
checked in at 2021-10-25 15:16:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-CherryPy (Old)
and /work/SRC/openSUSE:Factory/.python-CherryPy.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-CherryPy"
Mon Oct 25 15:16:51 2021 rev:30 rq:923427 version:18.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-CherryPy/python-CherryPy.changes
2021-08-23 10:07:36.808285327 +0200
+++
/work/SRC/openSUSE:Factory/.python-CherryPy.new.1890/python-CherryPy.changes
2021-10-25 15:17:13.045667530 +0200
@@ -1,0 +2,10 @@
+Tue Oct 5 14:01:39 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Added BuildRequires: alts
+
+-------------------------------------------------------------------
+Sun Aug 22 11:56:04 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-CherryPy.spec ++++++
--- /var/tmp/diff_new_pack.CPIzkm/_old 2021-10-25 15:17:13.633667897 +0200
+++ /var/tmp/diff_new_pack.CPIzkm/_new 2021-10-25 15:17:13.633667897 +0200
@@ -16,6 +16,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-CherryPy
@@ -28,14 +34,19 @@
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-rpm-macros
+BuildRequires: python-rpm-macros >= 20210929
Requires: python-cheroot >= 8.2.1
Requires: python-jaraco.collections
Requires: python-more-itertools
Requires: python-portend >= 2.1.1
Requires: python-zc.lockfile
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
+%endif
Recommends: python-Routes >= 2.3.1
Recommends: python-flup
Recommends: python-memcached >= 1.58
@@ -89,6 +100,10 @@
# testCombinedTools fails with trace in cheroot tests
%pytest -k 'not testCombinedTools'
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative cherryd
+
%post
%python_install_alternative cherryd