2024-01-06 11:24:39 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-lsp-server
|
2024-01-06 11:24:44 +01:00
|
|
|
Version: 1.7.3
|
|
|
|
Release: 1mamba
|
2024-01-06 11:24:39 +01:00
|
|
|
Summary: A Python 3.6+ implementation of the Language Server Protocol
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/python-lsp/python-lsp-server
|
|
|
|
Source: https://pypi.debian.net/python-lsp-server/python-lsp-server-%{version}.tar.gz
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 11:24:39 +01:00
|
|
|
BuildRequires: python3.7dist(docstring-to-markdown)
|
2024-01-06 11:24:39 +01:00
|
|
|
BuildRequires: python3.7dist(jedi)
|
|
|
|
BuildRequires: python3.7dist(pluggy)
|
|
|
|
BuildRequires: python3.7dist(python-lsp-jsonrpc)
|
|
|
|
BuildRequires: python3.7dist(setuptools)
|
|
|
|
BuildRequires: python3.7dist(ujson)
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 11:24:39 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Requires: python-whatthepatch%{?pyappend:-%pyappend} \
|
|
|
|
Requires: python-yapf%{?pyappend:-%pyappend} \
|
|
|
|
Requires: python-rope%{?pyappend:-%pyappend} \
|
|
|
|
Requires: python-pydocstyle%{?pyappend:-%pyappend} \
|
|
|
|
Requires: python-pycodestyle%{?pyappend:-%pyappend} \
|
2024-01-06 11:24:42 +01:00
|
|
|
Requires: python-flake8%{?pyappend:-%pyappend} \
|
2024-01-06 11:24:39 +01:00
|
|
|
Requires: python-autopep8%{?pyappend:-%pyappend}
|
2024-01-06 11:24:39 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n python-lsp-server-%{version}
|
2024-01-06 11:24:39 +01:00
|
|
|
sed 's|autopep8>=1.6.0,<1.7.0|autopep8>=1.6.0|' -i pyproject.toml
|
|
|
|
sed 's|flake8>=5.0.0,<5.1.0|flake8>=5.0.0|' -i pyproject.toml
|
|
|
|
sed 's|mccabe>=0.7.0,<0.8.0|mccabe>=0.7.0|' -i pyproject.toml
|
|
|
|
sed 's|pycodestyle>=2.9.0,<2.10.0|pycodestyle>=2.9.0|' -i pyproject.toml
|
|
|
|
sed 's|pyflakes>=2.5.0,<2.6.0|pyflakes>=2.5.0|' -i pyproject.toml
|
2024-01-06 11:24:39 +01:00
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 11:24:39 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 11:24:39 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 11:24:39 +01:00
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/pylsp; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
|
|
|
%endif
|
2024-01-06 11:24:39 +01:00
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 11:24:39 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:24:42 +01:00
|
|
|
%{_bindir}/pylsp*
|
2024-01-06 11:24:39 +01:00
|
|
|
%dir %{python_sitelib}/python_%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/python_%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/pylsp
|
|
|
|
%{python_sitelib}/pylsp/*
|
2024-01-06 11:24:39 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:24:44 +01:00
|
|
|
* Tue May 23 2023 Automatic Build System <autodist@mambasoft.it> 1.7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:42 +01:00
|
|
|
* Sun Apr 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.2-3mamba
|
|
|
|
- py310: fix requirement for python-autopep8
|
|
|
|
|
|
|
|
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 1.7.2-2mamba
|
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-06 11:24:41 +01:00
|
|
|
* Tue Apr 04 2023 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:40 +01:00
|
|
|
* Thu Jan 19 2023 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
* Sat Dec 31 2022 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
* Thu Dec 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-3mamba
|
|
|
|
- remove requirements for older deps versions
|
|
|
|
|
|
|
|
* Wed Nov 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2mamba
|
|
|
|
- add requirements
|
|
|
|
|
|
|
|
* Mon Nov 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
|
|
|
|
- update to 1.6.0
|
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
* Sat Oct 08 2022 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
* Fri Apr 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-1mamba
|
|
|
|
- update to 1.4.1
|
|
|
|
|
2024-01-06 11:24:39 +01:00
|
|
|
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.3-1mamba
|
|
|
|
- package created using the webbuild interface
|