%global pypi_name python-lsp-ruff %global mod_name lsp-ruff Name: %{pypi_name} Version: 2.2.2 Release: %{autorelease} Summary: Ruff linting plugin for Python LSP Server %global forgeurl https://github.com/python-lsp/python-lsp-ruff %forgemeta License: MIT URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: A plugin for python-lsp-server that adds linting, code action and formatting capabilities that are provided by ruff, an extremely fast Python linter and formatter written in Rust.} %description %_description %package -n python3-%{mod_name} Summary: %{summary} %description -n python3-%{mod_name} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pylsp_ruff %check %pytest -r fEs %files -n python3-%{mod_name} -f %{pyproject_files} %doc README.* %changelog %autochangelog