%global short_name lsp-server %global _description %{expand: A python implementation of language server protocol. pylsp provides for auto-completion, code linting (via pycodestyle and pyflakes) and other features. This package provides the community maintained version of python-language-server. } Name: python-%{short_name} Version: 1.1.0 Release: 2%{?dist} Summary: Python implementation of language server protocol License: MIT URL: https://github.com/python-lsp/%{name} Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description %_description %package -n python3-%{short_name} Summary: %{summary} %description -n python3-%{short_name} %_description %prep %autosetup -n %{name}-%{version} %generate_buildrequires %pyproject_buildrequires -x all,test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pylsp %check %pytest -k "not (test_syntax_error_pyflakes or test_pylint or test_syntax_error_pylint_py3)" %files -n python3-%{short_name} -f %{pyproject_files} %license LICENSE %doc README.md %{_bindir}/pylsp %changelog * Wed Jul 07 2021 Mukundan Ragavan - 1.0.0-2 - Spec cleanup - Improve description * Mon Jul 05 2021 Mukundan Ragavan - 1.0.0-1 - Initial package.