Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-json5 for openSUSE:Factory checked in at 2021-10-26 20:13:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-json5 (Old) and /work/SRC/openSUSE:Factory/.python-json5.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-json5" Tue Oct 26 20:13:34 2021 rev:5 rq:923471 version:0.9.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-json5/python-json5.changes 2021-06-23 17:38:12.600469658 +0200 +++ /work/SRC/openSUSE:Factory/.python-json5.new.1890/python-json5.changes 2021-10-26 20:13:52.146015363 +0200 @@ -1,0 +2,10 @@ +Tue Oct 5 16:04:01 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Added BuildRequires: alts + +------------------------------------------------------------------- +Fri Oct 1 08:16:33 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-json5.spec ++++++ --- /var/tmp/diff_new_pack.B8Bjxs/_old 2021-10-26 20:13:52.646015627 +0200 +++ /var/tmp/diff_new_pack.B8Bjxs/_new 2021-10-26 20:13:52.646015627 +0200 @@ -16,6 +16,13 @@ # +# +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-json5 Version: 0.9.6 @@ -28,10 +35,15 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: python-setuptools +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif BuildArch: noarch %python_subpackages @@ -61,6 +73,10 @@ %check %pytest +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative pyjson5 + %post %python_install_alternative pyjson5