## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## 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 %global pypi_name python-lsp-ruff %global mod_name lsp-ruff Name: %{pypi_name} Version: 2.2.1 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 # Unpin `lsprotocol` sed -r \ -e 's/(lsprotocol).*"/\1"/' \ -i pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pylsp_ruff %check %pytest -v %files -n python3-%{mod_name} -f %{pyproject_files} %doc README.* %changelog ## START: Generated by rpmautospec * Sun Jun 09 2024 Sandro - 2.2.1-1 - Initial package ## END: Generated by rpmautospec