Accepting request 927754 from home:schubi2
- Use libalternatives instead of update-alternatives. Ben, the latest updates regarding python-macros and rpmlint are available now. Are there still open points now ? OBS-URL: https://build.opensuse.org/request/show/927754 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbclassic?expand=0&rev=5
This commit is contained in:
parent
d63ee3b3c7
commit
652af83bff
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 8 10:31:31 UTC 2021 - Stefan Schubert <schubi@suse.de>
|
||||||
|
|
||||||
|
- Use libalternatives instead of update-alternatives.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 16 12:20:06 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Mon Aug 16 12:20:06 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-nbclassic
|
Name: python-nbclassic
|
||||||
@ -30,10 +36,17 @@ BuildRequires: %{python_module jupyter_server >= 1.8}
|
|||||||
BuildRequires: %{python_module notebook}
|
BuildRequires: %{python_module notebook}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros >= 20210929
|
||||||
Requires: jupyter-nbclassic = %{version}
|
Requires: jupyter-nbclassic = %{version}
|
||||||
Requires: python-jupyter_server >= 1.8
|
Requires: python-jupyter_server >= 1.8
|
||||||
Requires: python-notebook
|
Requires: python-notebook
|
||||||
|
%if %{with libalternatives}
|
||||||
|
Requires: alts
|
||||||
|
BuildRequires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun):update-alternatives
|
||||||
|
%endif
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest-console-scripts}
|
BuildRequires: %{python_module pytest-console-scripts}
|
||||||
BuildRequires: %{python_module pytest-tornasync}
|
BuildRequires: %{python_module pytest-tornasync}
|
||||||
@ -75,6 +88,10 @@ install -m 644 -D -t %{buildroot}%{_jupyter_server_confdir} jupyter_server_confi
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic
|
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbclassic
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative jupyter-nbclassic
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative jupyter-nbclassic
|
%python_install_alternative jupyter-nbclassic
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user