Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pecan for openSUSE:Factory checked in at 2021-10-25 15:16:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pecan (Old) and /work/SRC/openSUSE:Factory/.python-pecan.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pecan" Mon Oct 25 15:16:51 2021 rev:28 rq:923428 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pecan/python-pecan.changes 2021-06-01 10:34:24.644501381 +0200 +++ /work/SRC/openSUSE:Factory/.python-pecan.new.1890/python-pecan.changes 2021-10-25 15:17:13.749667970 +0200 @@ -1,0 +2,10 @@ +Tue Oct 5 14:24:02 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Added BuildRequires: alts + +------------------------------------------------------------------- +Fri Oct 1 09:26:15 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pecan.spec ++++++ --- /var/tmp/diff_new_pack.8qnStA/_old 2021-10-25 15:17:14.253668285 +0200 +++ /var/tmp/diff_new_pack.8qnStA/_new 2021-10-25 15:17:14.253668285 +0200 @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pecan @@ -44,15 +50,20 @@ # we need sqlite module BuildRequires: %{pythons} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: python-Mako >= 0.4.0 Requires: python-WebOb >= 1.8 Requires: python-WebTest >= 1.3.1 Requires: python-logutils >= 0.3 Requires: python-setuptools Requires: python-six +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif BuildArch: noarch %if 0%{?suse_version} Suggests: python-Genshi @@ -84,6 +95,11 @@ %check %pyunittest discover -v +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative pecan +%python_libalternatives_reset_alternative gunicorn_pecan + %post %python_install_alternative pecan %python_install_alternative gunicorn_pecan