python-jsx-lexer/python-jsx-lexer.spec
2023-08-22 09:36:25 +08:00

48 lines
1.1 KiB
RPMSpec

%global pypi_name jsx-lexer
Name: python-%{pypi_name}
Version: 2.0.1
Release: 1
Summary: A JSX lexer for Pygments
License: MIT License
URL: https://github.com/fcurella/jsx-lexer
Source0: https://files.pythonhosted.org/packages/37/88/8678fcb9f7db1aa7efb338d58f320203b74e865a12583c108291ed9d3df7/jsx-lexer-2.0.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
A JSX lexer for Pygments
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
A JSX lexer for Pygments
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/jsx
%{python3_sitelib}/jsx_lexer*
%changelog
* Fri Aug 18 2023 luolu12 <luluoc@isoftstone.com> - 2.0.1-1
- Initial package.