Accepting request 1045279 from devel:languages:python:jupyter

- Find the license in any installed sitelib: we might not have
  python3 flavor (:backports)

OBS-URL: https://build.opensuse.org/request/show/1045279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jupyterlab-pygments?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2022-12-25 14:15:11 +00:00 committed by Git OBS Bridge
commit 45bce8375a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Dec 25 11:39:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Find the license in any installed sitelib: we might not have
python3 flavor (:backports)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 1 20:29:07 UTC 2022 - Ben Greiner <code@bnavigator.de> Mon Aug 1 20:29:07 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -69,7 +69,7 @@ This package contains the Jupyterlab extension files for python-jupyterlab-pygme
%install %install
%pyproject_install %{SOURCE0} %pyproject_install %{SOURCE0}
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
cp %{buildroot}%{python3_sitelib}/jupyterlab_pygments-%{version}.dist-info/LICENSE . find %{buildroot}%{_prefix} -path '*/site-packages/jupyterlab_pygments-%{version}.dist-info/LICENSE' -exec cp {} . ';' -quit
%endif %endif
%if %{with test} %if %{with test}
@ -84,7 +84,7 @@ cp %{buildroot}%{python3_sitelib}/jupyterlab_pygments-%{version}.dist-info/LICE
%{python_sitelib}/jupyterlab_pygments-%{version}.dist-info %{python_sitelib}/jupyterlab_pygments-%{version}.dist-info
%files -n jupyter-jupyterlab-pygments %files -n jupyter-jupyterlab-pygments
%_jupyter_labextensions_dir3/jupyterlab_pygments %{_jupyter_labextensions_dir3}/jupyterlab_pygments
%endif %endif
%changelog %changelog