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

56 lines
1.4 KiB
RPMSpec
Raw 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-02-21 16:49:36 +08:00
Version: 0.2.2
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
BuildRequires: python3-jupyter-packaging
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-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.