Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-notebook for openSUSE:Factory checked in at 2021-10-27 22:21:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-notebook (Old) and /work/SRC/openSUSE:Factory/.python-notebook.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-notebook" Wed Oct 27 22:21:18 2021 rev:11 rq:927762 version:6.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-notebook/python-notebook.changes 2021-10-21 23:55:37.356028457 +0200 +++ /work/SRC/openSUSE:Factory/.python-notebook.new.1890/python-notebook.changes 2021-10-27 22:21:37.415211513 +0200 @@ -1,0 +2,5 @@ +Wed Oct 20 19:30:59 UTC 2021 - Stefan Schubert <sch...@schubi.de> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-notebook.spec ++++++ --- /var/tmp/diff_new_pack.FlvtbR/_old 2021-10-27 22:21:37.907211765 +0200 +++ /var/tmp/diff_new_pack.FlvtbR/_new 2021-10-27 22:21:37.911211767 +0200 @@ -1,5 +1,5 @@ # -# spec file +# spec file for package python-notebook # # Copyright (c) 2021 SUSE LLC # @@ -16,6 +16,13 @@ # +# +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -39,7 +46,7 @@ Source100: python-notebook-rpmlintrc BuildRequires: %{python_module jupyter-core >= 4.4.0} BuildRequires: %{python_module setuptools} -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: jupyter-notebook = %{version} Requires: python-Jinja2 Requires: python-Send2Trash @@ -65,6 +72,13 @@ BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: jupyter-notebook-filesystem +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun):update-alternatives +%endif BuildRequires: update-desktop-files %endif %if %{with test} @@ -231,6 +245,10 @@ %endif %if !%{with test} +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative jupyter-notebook + %post %python_install_alternative jupyter-notebook jupyter-bundlerextension jupyter-nbextension jupyter-serverextension