Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jsonpointer for openSUSE:Factory checked in at 2021-11-09 23:53:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jsonpointer (Old) and /work/SRC/openSUSE:Factory/.python-jsonpointer.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonpointer" Tue Nov 9 23:53:53 2021 rev:16 rq:929840 version:2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jsonpointer/python-jsonpointer.changes 2021-03-16 15:43:57.812994852 +0100 +++ /work/SRC/openSUSE:Factory/.python-jsonpointer.new.1890/python-jsonpointer.changes 2021-11-09 23:54:05.715936870 +0100 @@ -1,0 +2,5 @@ +Sun Aug 22 20:52:50 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jsonpointer.spec ++++++ --- /var/tmp/diff_new_pack.HoMoNe/_old 2021-11-09 23:54:06.235937135 +0100 +++ /var/tmp/diff_new_pack.HoMoNe/_new 2021-11-09 23:54:06.235937135 +0100 @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-jsonpointer Version: 2.1 @@ -27,9 +33,14 @@ Source: https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(preun): update-alternatives +%endif BuildArch: noarch %python_subpackages @@ -50,6 +61,10 @@ %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests.py +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative jsonpointer + %post %python_install_alternative jsonpointer