Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbformat for openSUSE:Factory 
checked in at 2021-10-25 15:16:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbformat (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbformat.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbformat"

Mon Oct 25 15:16:52 2021 rev:7 rq:923456 version:5.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbformat/python-nbformat.changes  
2021-04-15 16:57:12.918655121 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nbformat.new.1890/python-nbformat.changes    
    2021-10-25 15:17:15.041668777 +0200
@@ -1,0 +2,5 @@
+Wed Sep  8 14:22:22 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives. 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-nbformat.spec ++++++
--- /var/tmp/diff_new_pack.nSBS7z/_old  2021-10-25 15:17:16.713669823 +0200
+++ /var/tmp/diff_new_pack.nSBS7z/_new  2021-10-25 15:17:16.713669823 +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 doc_ver 5.0.4
 Name:           python-nbformat
@@ -29,10 +35,15 @@
 Source:         %{url}/archive/%{version}.tar.gz#/nbformat-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 BuildRequires:  unzip
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
+%endif
 Requires:       jupyter-nbformat = %{version}
 Requires:       python-ipython_genutils
 Requires:       python-jsonschema > 2.5.0
@@ -89,6 +100,10 @@
 # we don't have the alternative validator, cannot fallback from it
 %pytest -k "not (fastjsonschema or 
test_fallback_validator_with_iter_errors_using_ref)"
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative jupyter-trust
+
 %post
 %python_install_alternative jupyter-trust
 

Reply via email to