Name: rpm-spec-language-server Version: 0.0.1 Release: 1%{?dist} Summary: Language Server for RPM spec files License: GPL-2.0-or-later URL: https://github.com/dcermak/rpm-spec-language-server Source: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-poetry-core BuildRequires: python3-pygls # Test dependencies BuildRequires: ruff BuildRequires: twine BuildRequires: python3-pytest BuildRequires: python3-mypy BuildRequires: python3-sphinx BuildRequires: python3-coverage BuildRequires: python3-typeguard %description This is a server implementing the Language Server Protocol for RPM Spec files. Supported LSP endpoints: - Autocompletion of macro names, spec sections and preamble keywords - Jump to macro definition - Expand macros on hover - Breadcrumbs/document sections %prep %autosetup %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files 'rpm_spec_language_server' %check %pytest %pyproject_check_import %files -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/rpm_lsp_server %changelog * Tue Apr 02 2024 Jakub Kadlcik - Initial package