## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-lsp-ruff Version: 2.2.2 Release: %{autorelease} Summary: Ruff linting plugin for Python LSP Server %global forgeurl https://github.com/python-lsp/python-lsp-ruff %global tag v%{version} %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-lsp-ruff Summary: %{summary} %description -n python3-lsp-ruff %_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-lsp-ruff -f %{pyproject_files} %doc README.* %changelog ## START: Generated by rpmautospec * Thu Sep 25 2025 Sandro - 2.2.2-1 - New package: python-lsp-ruff (RHBZ#2397151) ## END: Generated by rpmautospec