55 lines
1.3 KiB
RPMSpec
55 lines
1.3 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name ruff
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 0.0.276
|
|
Release: 1
|
|
Summary: An extremely fast Python linter, written in Rust.
|
|
|
|
License: MIT
|
|
URL: https://github.com/astral-sh/ruff
|
|
Source0: https://files.pythonhosted.org/packages/f7/9b/e8c42f8e0bb21a2d82b8f414c55fbf498cdfe72922bf73c973267477fd46/ruff-0.0.276.tar.gz
|
|
Source1: cargo-vendor-cache
|
|
Patch1: 0001-set-cargo-vendor-cache-for-local-build.patch
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-maturin
|
|
|
|
%description
|
|
An extremely fast Python linter, written in Rust.
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
An extremely fast Python linter, written in Rust.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
tar xzvf %{SOURCE1} -C .
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/ruff
|
|
%{python3_sitearch}/%{pypi_name}
|
|
%{python3_sitearch}/%{pypi_name}*.dist-info/
|
|
|
|
%changelog
|
|
* Sun Jul 2 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.0.276-1
|
|
- Initial package
|