Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jupyterlab for
openSUSE:Factory checked in at 2023-08-18 19:27:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyterlab (Old)
and /work/SRC/openSUSE:Factory/.python-jupyterlab.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyterlab"
Fri Aug 18 19:27:53 2023 rev:29 rq:1104431 version:4.0.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jupyterlab/python-jupyterlab.changes
2023-08-14 22:36:40.584765852 +0200
+++
/work/SRC/openSUSE:Factory/.python-jupyterlab.new.1766/python-jupyterlab.changes
2023-08-18 19:28:04.639285577 +0200
@@ -1,0 +2,11 @@
+Thu Aug 17 14:25:22 UTC 2023 - Ben Greiner <[email protected]>
+
+- Demote primary flavor recommendation to suggestion
+- Move entrypoints to python alternatives
+
+-------------------------------------------------------------------
+Thu Aug 17 10:22:27 UTC 2023 - Ben Greiner <[email protected]>
+
+- Recommend the primary python flavor -- boo#1214354
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyterlab.spec ++++++
--- /var/tmp/diff_new_pack.ZBhCRe/_old 2023-08-18 19:28:05.623287342 +0200
+++ /var/tmp/diff_new_pack.ZBhCRe/_new 2023-08-18 19:28:05.627287349 +0200
@@ -16,7 +16,6 @@
#
-%define plainpython3dist python3dist
Name: python-jupyterlab
Version: 4.0.5
Release: 0
@@ -49,6 +48,8 @@
BuildRequires: jupyter-rpm-macros
BuildRequires: python-rpm-macros
BuildRequires: update-desktop-files
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
Requires: jupyter-jupyterlab = %{version}
Requires: python-Jinja2 >= 3.0.3
Requires: python-async_lru >= 1.0.0
@@ -95,7 +96,9 @@
Requires: jupyter-jupyterlab-filesystem
Requires: nodejs >= 10
Requires: npm >= 10
-Requires: %{plainpython3dist}(jupyterlab) = %{version}
+# Any flavor is okay, but suggest the primary one for automatic zypper choice
-- boo#1214354
+Requires: python3dist(jupyterlab) = %{version}
+Suggests: python3-jupyterlab
Provides: jupyter-jupyterlab-discovery = 6
Obsoletes: jupyter-jupyterlab-discovery < 6
@@ -130,6 +133,10 @@
%fdupes %{buildroot}%{_jupyter_prefix}
# Find any one installed LICENSE and get if for the rpm tagged file
find %{buildroot}%{_prefix}/lib/python3.* -path
'*/jupyterlab-%{version}.dist-info/licenses/LICENSE' -exec cp {} . ';' -quit
+%python_clone -a %{buildroot}%{_bindir}/jupyter-lab
+%python_clone -a %{buildroot}%{_bindir}/jupyter-labextension
+%python_clone -a %{buildroot}%{_bindir}/jupyter-labhub
+%python_clone -a %{buildroot}%{_bindir}/jlpm
%suse_update_desktop_file jupyterlab
%check
@@ -154,17 +161,23 @@
# can't use --pyargs because of conftest.py collection problems:
https://github.com/pytest-dev/pytest/issues/1596
%pytest %{buildroot}%{$python_sitelib}/jupyterlab -k "not (${donttest:4}
${$python_donttest})"
+%post
+%python_install_alternative jupyter-lab jupyter-labextension jupyter-labhub
jlpm
+
+%postun
+%python_uninstall_alternative jupyter-lab
+
%files %{python_files}
%license LICENSE
%{python_sitelib}/jupyterlab/
%{python_sitelib}/jupyterlab-%{version}.dist-info/
+%python_alternative %{_bindir}/jupyter-lab
+%python_alternative %{_bindir}/jupyter-labextension
+%python_alternative %{_bindir}/jupyter-labhub
+%python_alternative %{_bindir}/jlpm
%files -n jupyter-jupyterlab
%license LICENSE
-%{_bindir}/jlpm
-%{_bindir}/jupyter-lab
-%{_bindir}/jupyter-labextension
-%{_bindir}/jupyter-labhub
%{_jupyter_config} %{_jupyter_servextension_confdir}/jupyterlab.json
%{_jupyter_config} %{_jupyter_server_confdir}/jupyterlab.json
%{_jupyter_lab_dir}
++++++ python-jupyterlab-rpmlintrc ++++++
--- /var/tmp/diff_new_pack.ZBhCRe/_old 2023-08-18 19:28:05.711287500 +0200
+++ /var/tmp/diff_new_pack.ZBhCRe/_new 2023-08-18 19:28:05.715287507 +0200
@@ -3,4 +3,6 @@
addFilter("filelist-forbidden .*/package.json.orig")
# required zero length js files
addFilter("zero-length .*/jupyter.*index.js")
+# the file is in the flavored packages
+addFilter("desktopfile-without-binary .*jupyter")