Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jupyter-server for openSUSE:Factory checked in at 2021-10-27 22:21:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter-server (Old) and /work/SRC/openSUSE:Factory/.python-jupyter-server.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-server" Wed Oct 27 22:21:19 2021 rev:17 rq:927772 version:1.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter-server/python-jupyter-server.changes 2021-10-18 22:02:43.954117027 +0200 +++ /work/SRC/openSUSE:Factory/.python-jupyter-server.new.1890/python-jupyter-server.changes 2021-10-27 22:21:38.063211845 +0200 @@ -1,0 +2,5 @@ +Sun Oct 17 18:39:09 UTC 2021 - Stefan Schubert <sch...@suse.de> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter-server.spec ++++++ --- /var/tmp/diff_new_pack.w0tnMD/_old 2021-10-27 22:21:38.547212093 +0200 +++ /var/tmp/diff_new_pack.w0tnMD/_new 2021-10-27 22:21:38.547212093 +0200 @@ -16,6 +16,13 @@ # +# +%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-jupyter-server @@ -48,7 +55,7 @@ # We need the full stdlib BuildRequires: %{pythons} BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: python-Jinja2 Requires: python-Send2Trash Requires: python-anyio >= 3.1.0 @@ -65,8 +72,13 @@ Requires: python-tornado >= 6.1 Requires: python-traitlets >= 4.2.1 Requires: python-websocket-client +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif Provides: python-jupyter_server = %{version}-%{release} Obsoletes: python-jupyter_server < %{version}-%{release} # SECTION extras_require test @@ -92,6 +104,7 @@ %package test Summary: The backend to Jupyter web applications - test requirements +Group: Development/Languages/Python Requires: python-ipykernel Requires: python-jupyter-server = %{version} Requires: python-pytest >= 6 @@ -130,6 +143,10 @@ fi %pytest jupyter_server +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%python_libalternatives_reset_alternative jupyter-server + %post %python_install_alternative jupyter-server