diff --git a/python-jupyterlab-pygments.changes b/python-jupyterlab-pygments.changes index bb981d2..cc3b42b 100644 --- a/python-jupyterlab-pygments.changes +++ b/python-jupyterlab-pygments.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 25 11:39:59 UTC 2022 - Ben Greiner + +- Find the license in any installed sitelib: we might not have + python3 flavor (:backports) + ------------------------------------------------------------------- Mon Aug 1 20:29:07 UTC 2022 - Ben Greiner diff --git a/python-jupyterlab-pygments.spec b/python-jupyterlab-pygments.spec index dfcb502..b5f2c6f 100644 --- a/python-jupyterlab-pygments.spec +++ b/python-jupyterlab-pygments.spec @@ -69,7 +69,7 @@ This package contains the Jupyterlab extension files for python-jupyterlab-pygme %install %pyproject_install %{SOURCE0} %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 %if %{with test} @@ -84,7 +84,7 @@ cp %{buildroot}%{python3_sitelib}/jupyterlab_pygments-%{version}.dist-info/LICE %{python_sitelib}/jupyterlab_pygments-%{version}.dist-info %files -n jupyter-jupyterlab-pygments -%_jupyter_labextensions_dir3/jupyterlab_pygments +%{_jupyter_labextensions_dir3}/jupyterlab_pygments %endif %changelog