Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbclassic for 
openSUSE:Factory checked in at 2021-10-27 22:21:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbclassic (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbclassic.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbclassic"

Wed Oct 27 22:21:17 2021 rev:4 rq:927760 version:0.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbclassic/python-nbclassic.changes        
2021-08-23 10:08:33.956218685 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nbclassic.new.1890/python-nbclassic.changes  
    2021-10-27 22:21:36.923211260 +0200
@@ -1,0 +2,5 @@
+Wed Sep  8 10:31:31 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-nbclassic.spec ++++++
--- /var/tmp/diff_new_pack.mV8NV9/_old  2021-10-27 22:21:37.259211433 +0200
+++ /var/tmp/diff_new_pack.mV8NV9/_new  2021-10-27 22:21:37.263211435 +0200
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-nbclassic
@@ -30,10 +36,17 @@
 BuildRequires:  %{python_module notebook}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
 Requires:       jupyter-nbclassic = %{version}
 Requires:       python-jupyter_server >= 1.8
 Requires:       python-notebook
+%if %{with libalternatives}
+Requires:       alts
+BuildRequires:  alts
+%else
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
+%endif
 # SECTION test requirements
 BuildRequires:  %{python_module pytest-console-scripts}
 BuildRequires:  %{python_module pytest-tornasync}
@@ -75,6 +88,10 @@
 %python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative jupyter-nbclassic
+
 %post
 %python_install_alternative jupyter-nbclassic
 

Reply via email to