2024-02-12 21:50:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rpm-spec-language-server
|
|
|
|
#
|
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
|
2024-02-12 21:50:52 +00:00
|
|
|
#
|
|
|
|
# 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
|
2025-08-05 18:09:36 +00:00
|
|
|
Version: 0.0.1+git.1754294706.19064e2
|
2024-02-12 21:50:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Language Server for RPM spec files
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://github.com/dcermak/rpm-spec-language-server
|
2024-02-12 22:03:45 +00:00
|
|
|
# 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
|
2025-08-05 18:09:36 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.9}
|
2024-02-12 21:50:52 +00:00
|
|
|
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
|
2024-02-12 22:07:56 +00:00
|
|
|
Requires: rpm
|
2024-02-12 21:50:52 +00:00
|
|
|
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
|
2024-02-12 22:03:45 +00:00
|
|
|
%autosetup -p1 -n rpm-spec-language-server-%{version}
|
2024-02-12 21:50:52 +00:00
|
|
|
|
|
|
|
%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
|
2024-02-12 22:03:45 +00:00
|
|
|
%{python_sitelib}/rpm_spec_language_server-0.0.1*-info
|
2024-02-12 21:50:52 +00:00
|
|
|
|
|
|
|
%changelog
|