%global short_name lsp-jsonrpc %global _description %{expand: A python server implementation of JSON RPC 2.0 protocol. This library has been pulled out of the python LSP server project (a community maintained fork of python-language-server). } Name: python-%{short_name} Version: 1.0.0 Release: 1%{?dist} Summary: Python implementation of JSON RPC 2.0 protocol License: MIT URL: https://github.com/python-lsp/%{name} Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz 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} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pylsp_jsonrpc %check pytest %files -n python3-%{short_name} -f %{pyproject_files} %license LICENSE %doc README.md %changelog * Mon Jul 05 2021 Mukundan Ragavan - 1.0.0-1 - Initial package.