python-jupyterlab-pygments/python-jupyterlab-pygments.spec

66 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2024-02-21 16:49:36 +08:00
%global _empty_manifest_terminate_build 0
2023-10-27 16:58:54 +08:00
%global pypi_name jupyterlab_pygments
Name: python-%{pypi_name}
2024-03-06 11:44:34 +08:00
Version: 0.3.0
2023-10-27 16:58:54 +08:00
Release: 1
2024-02-21 16:49:36 +08:00
Summary: Pygments theme using JupyterLab CSS variables
License: BSD-3-Clause
URL: https://github.com/jupyterlab/jupyterlab_pygments
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
2023-10-27 16:58:54 +08:00
BuildArch: noarch
2024-02-21 16:49:36 +08:00
BuildRequires: python3-pip
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-wheel
2024-03-06 11:44:34 +08:00
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-nodejs-version
BuildRequires: python3-hatch-jupyter-builder
2024-02-21 16:49:36 +08:00
BuildRequires: python3-jupyterlab
2023-10-27 16:58:54 +08:00
%description
This package contains a syntax coloring theme for pygments making use of the
JupyterLab CSS variables.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
This package contains a syntax coloring theme for pygments making use of the
JupyterLab CSS variables.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
2024-02-21 16:49:36 +08:00
%pyproject_build
2023-10-27 16:58:54 +08:00
%install
2024-02-21 16:49:36 +08:00
%pyproject_install
2023-10-27 16:58:54 +08:00
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
2024-02-21 16:49:36 +08:00
%{_datadir}/*
%{python3_sitelib}/*
2023-10-27 16:58:54 +08:00
%changelog
2024-03-06 11:44:34 +08:00
* Wed Mar 6 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.3.0-1
- Update package with version 0.3.0
Upgrade extension to work with jupyterlab4
Delete lock file and rerun jlpm install
Remove dev dependencies and auto generated hatch file
Make build work with python 3.12
Remove package-lock.json from git tracking
2024-02-21 16:49:36 +08:00
* Wed Feb 21 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.2.2-1
- Update package to version 0.2.2
2023-10-27 16:58:54 +08:00
* Fri Oct 27 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.1.2-1
- Initial package.