Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jsonpatch for
openSUSE:Factory checked in at 2021-10-25 15:16:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonpatch (Old)
and /work/SRC/openSUSE:Factory/.python-jsonpatch.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsonpatch"
Mon Oct 25 15:16:59 2021 rev:26 rq:924851 version:1.32
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpatch/python-jsonpatch.changes
2021-09-21 21:12:29.666594651 +0200
+++
/work/SRC/openSUSE:Factory/.python-jsonpatch.new.1890/python-jsonpatch.changes
2021-10-25 15:17:26.425675895 +0200
@@ -1,0 +2,15 @@
+Tue Oct 12 08:43:55 UTC 2021 - Ben Greiner <[email protected]>
+
+- Fix requirements
+
+-------------------------------------------------------------------
+Tue Oct 5 14:30:43 UTC 2021 - schubi <schubi@localhost>
+
+- Added BuildRequires: alts
+
+-------------------------------------------------------------------
+Thu Sep 30 13:32:40 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jsonpatch.spec ++++++
--- /var/tmp/diff_new_pack.0zearA/_old 2021-10-25 15:17:26.913676200 +0200
+++ /var/tmp/diff_new_pack.0zearA/_new 2021-10-25 15:17:26.917676204 +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-%{**}}
Name: python-jsonpatch
Version: 1.32
@@ -28,10 +34,15 @@
BuildRequires: %{python_module jsonpointer >= 1.9}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: python-rpm-macros
-Requires: python-jsonpointer >= 1.9
+BuildRequires: python-rpm-macros >= 20210929
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(preun):update-alternatives
+%endif
+Requires: python-jsonpointer >= 1.9
BuildArch: noarch
%python_subpackages
@@ -55,6 +66,10 @@
%check
%pyunittest -v tests
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative jsonpatch
+
%post
%python_install_alternative jsonpatch