Files
python-rpm-spec-language-se…/python-rpm-spec-language-server.spec

83 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-rpm-spec-language-server
#
- Update to version 0.0.1+git.1754294706.19064e2: * Correct postgresql package name to not install in Fedora container * drop packages which no longer exist from installing them * Remove Leap 15.5 from the container builds * Fix container build for Fedora 41 * Require at least rpm-ship 0.2.0 * Add elixir115 to the packages to filter out * Ignore more files in the extension * Add dummy publisher * Add BCI based container * Improve expansion of macros like %name, %version in specfiles on Hover * Add tests for TEXT_DOCUMENT_HOVER * Add a workaround for vscode needing completions without % in certain spec sections * [leap container] add a workaround for rpm shim not working correctly * [leap container] Use the correct python interpreter for launching the lang server * Properly quote $IMAGE variable in LABEL * Add documentation for the container mode * Add containers for Tumbleweed, Leap, Fedora & CentOS * Make sleep timeout in tests configurable via environment variable * Update ignore files * Lower python version requiremt to ^3.9 * Add support for an experimental container mode * Add missing note that the server downloads spec.md * Add documentation how to use the server with eglot * Unquote paths in case they contain special characters * Make parsing of markdown more robust * Use specfile.constants to augment the autocompletion data * Unify AutoCompleteDoc.{preamble,dependencies} into tags * Don't try to read spec.md from the rpm package if it is not there * Add tests for documentation extraction OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpm-spec-language-server?expand=0&rev=6
2025-08-05 18:09:36 +00:00
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python39 1
%define skip_python310 1
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-rpm-spec-language-server
- Update to version 0.0.1+git.1754294706.19064e2: * Correct postgresql package name to not install in Fedora container * drop packages which no longer exist from installing them * Remove Leap 15.5 from the container builds * Fix container build for Fedora 41 * Require at least rpm-ship 0.2.0 * Add elixir115 to the packages to filter out * Ignore more files in the extension * Add dummy publisher * Add BCI based container * Improve expansion of macros like %name, %version in specfiles on Hover * Add tests for TEXT_DOCUMENT_HOVER * Add a workaround for vscode needing completions without % in certain spec sections * [leap container] add a workaround for rpm shim not working correctly * [leap container] Use the correct python interpreter for launching the lang server * Properly quote $IMAGE variable in LABEL * Add documentation for the container mode * Add containers for Tumbleweed, Leap, Fedora & CentOS * Make sleep timeout in tests configurable via environment variable * Update ignore files * Lower python version requiremt to ^3.9 * Add support for an experimental container mode * Add missing note that the server downloads spec.md * Add documentation how to use the server with eglot * Unquote paths in case they contain special characters * Make parsing of markdown more robust * Use specfile.constants to augment the autocompletion data * Unify AutoCompleteDoc.{preamble,dependencies} into tags * Don't try to read spec.md from the rpm package if it is not there * Add tests for documentation extraction OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpm-spec-language-server?expand=0&rev=6
2025-08-05 18:09:36 +00:00
Version: 0.0.1+git.1754294706.19064e2
Release: 0
Summary: Language Server for RPM spec files
License: GPL-2.0-or-later
URL: https://github.com/dcermak/rpm-spec-language-server
# Source: https://files.pythonhosted.org/packages/source/r/rpm-spec-language-server/rpm_spec_language_server-%%{version}.tar.gz
Source: rpm-spec-language-server-%{version}.tar.gz
- Update to version 0.0.1+git.1754294706.19064e2: * Correct postgresql package name to not install in Fedora container * drop packages which no longer exist from installing them * Remove Leap 15.5 from the container builds * Fix container build for Fedora 41 * Require at least rpm-ship 0.2.0 * Add elixir115 to the packages to filter out * Ignore more files in the extension * Add dummy publisher * Add BCI based container * Improve expansion of macros like %name, %version in specfiles on Hover * Add tests for TEXT_DOCUMENT_HOVER * Add a workaround for vscode needing completions without % in certain spec sections * [leap container] add a workaround for rpm shim not working correctly * [leap container] Use the correct python interpreter for launching the lang server * Properly quote $IMAGE variable in LABEL * Add documentation for the container mode * Add containers for Tumbleweed, Leap, Fedora & CentOS * Make sleep timeout in tests configurable via environment variable * Update ignore files * Lower python version requiremt to ^3.9 * Add support for an experimental container mode * Add missing note that the server downloads spec.md * Add documentation how to use the server with eglot * Unquote paths in case they contain special characters * Make parsing of markdown more robust * Use specfile.constants to augment the autocompletion data * Unify AutoCompleteDoc.{preamble,dependencies} into tags * Don't try to read spec.md from the rpm package if it is not there * Add tests for documentation extraction OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpm-spec-language-server?expand=0&rev=6
2025-08-05 18:09:36 +00:00
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pygls
Requires: python-specfile
Requires: rpm
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
This is a proof of concept implementation of a server
implementing the Language Server Protocol for RPM Spec files.
%prep
%autosetup -p1 -n rpm-spec-language-server-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/rpm_lsp_server
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative rpm_lsp_server
%postun
%python_uninstall_alternative rpm_lsp_server
%files %{python_files}
%python_alternative %{_bindir}/rpm_lsp_server
%{python_sitelib}/rpm_spec_language_server
%{python_sitelib}/rpm_spec_language_server-0.0.1*-info
%changelog