Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jsonschema for 
openSUSE:Factory checked in at 2021-11-09 23:53:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonschema.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonschema"

Tue Nov  9 23:53:56 2021 rev:27 rq:929847 version:3.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes      
2021-06-01 10:33:01.964360614 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsonschema.new.1890/python-jsonschema.changes
    2021-11-09 23:54:08.631938357 +0100
@@ -1,0 +2,5 @@
+Sun Aug 22 21:08:31 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives. 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jsonschema.spec ++++++
--- /var/tmp/diff_new_pack.kWJfrS/_old  2021-11-09 23:54:09.627938863 +0100
+++ /var/tmp/diff_new_pack.kWJfrS/_new  2021-11-09 23:54:09.631938866 +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-%{**}}
 %define skip_python2 1
 Name:           python-jsonschema
@@ -40,13 +46,18 @@
 BuildRequires:  %{python_module strict-rfc3339}
 BuildRequires:  %{python_module webcolors}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 Requires:       python-attrs >= 17.4.0
 Requires:       python-importlib-metadata
 Requires:       python-pyrsistent >= 0.14.0
 Requires:       python-six >= 1.11.0
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
 Requires(preun):update-alternatives
+%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -74,6 +85,10 @@
 %check
 %pytest jsonschema/tests
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative jsonschema
+
 %post
 %python_install_alternative jsonschema
 

Reply via email to