Benjamin Greiner 2023-12-23 20:23:08 +00:00 committed by Git OBS Bridge
parent 6ce6acd292
commit 18a1c5e50d
4 changed files with 15 additions and 8 deletions

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780
size 15884

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Dec 23 20:13:55 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Update to 0.3.0
* no release notes
-------------------------------------------------------------------
Thu Feb 2 17:16:28 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -25,23 +25,23 @@
%bcond_with test
%endif
%define distversion 0.3
Name: python-jupyterlab-pygments%{psuffix}
Version: 0.2.2
Version: 0.3.0
Release: 0
Summary: Pygments theme for jupyterlab
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyterlab/jupyterlab_pygments
Source: https://files.pythonhosted.org/packages/py2.py3/j/jupyterlab-pygments/jupyterlab_pygments-%{version}-py2.py3-none-any.whl
Source: https://files.pythonhosted.org/packages/py3/j/jupyterlab-pygments/jupyterlab_pygments-%{version}-py3-none-any.whl
# Slightly modified from https://github.com/jupyterlab/jupyterlab_pygments/blob/0.2.2/notebooks/Example.ipynb
Source1: Example.ipynb
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: jupyter-rpm-macros
BuildRequires: python-rpm-macros
Requires: jupyter-jupyterlab-pygments = %{version}
Requires: python-pygments >= 2.4.1
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module jupyterlab-pygments = %{version}}
@ -56,6 +56,7 @@ of the JupyterLab CSS variables.
%package -n jupyter-jupyterlab-pygments
Summary: Pygments theme for jupyterlab -- Jupyterlab extension files
Requires: python3dist(jupyterlab-pygments) = %{distversion}
%description -n jupyter-jupyterlab-pygments
This package contains the Jupyterlab extension files for python-jupyterlab-pygments
@ -70,7 +71,7 @@ This package contains the Jupyterlab extension files for python-jupyterlab-pygme
%install
%pyproject_install %{SOURCE0}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
find %{buildroot}%{_prefix} -path '*/site-packages/jupyterlab_pygments-%{version}.dist-info/LICENSE' -exec cp {} . ';' -quit
find %{buildroot}%{_prefix} -path '*/site-packages/jupyterlab_pygments-%{version}.dist-info/licenses/LICENSE' -exec cp {} . ';' -quit
%endif
%if %{with test}