2024-01-06 11:24:39 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-lsp-server
|
2024-09-05 16:31:01 +02:00
|
|
|
Version: 1.12.0
|
2024-04-13 01:37:01 +02:00
|
|
|
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
|
2024-09-05 16:31:01 +02:00
|
|
|
Source: https://pypi.debian.net/python-lsp-server/python_lsp_server-%{version}.tar.gz
|
2024-01-06 11:24:39 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:24:46 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(docstring-to-markdown)
|
|
|
|
BuildRequires: python3.11dist(jedi)
|
|
|
|
BuildRequires: python3.11dist(pluggy)
|
|
|
|
BuildRequires: python3.11dist(python-lsp-jsonrpc)
|
|
|
|
BuildRequires: python3.11dist(ujson)
|
2024-01-06 11:24:39 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 11:24:46 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-06 11:24:39 +01:00
|
|
|
|
|
|
|
%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-03-24 20:28:56 +01:00
|
|
|
Requires: python-autopep8%{?pyappend:-%pyappend} \
|
|
|
|
Obsoletes: python-lsp-server-py310 <= 1.10.1-1mamba
|
2024-01-06 11:24:39 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
2024-09-05 16:31:01 +02:00
|
|
|
%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-09-05 16:31:01 +02:00
|
|
|
* Tue Sep 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.0-1mamba
|
|
|
|
- update to 1.12.0
|
|
|
|
|
2024-04-13 01:37:01 +02:00
|
|
|
* Sun Mar 31 2024 Automatic Build System <autodist@openmamba.org> 1.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-24 20:28:56 +01:00
|
|
|
* Sun Mar 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-2mamba
|
|
|
|
- obsolete python-lsp-server-p310
|
|
|
|
|
2024-03-16 08:42:21 +01:00
|
|
|
* Sat Mar 16 2024 Automatic Build System <autodist@openmamba.org> 1.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-07 22:53:25 +01:00
|
|
|
* Sat Jan 27 2024 Automatic Build System <autodist@openmamba.org> 1.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:47 +01:00
|
|
|
* Fri Nov 10 2023 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 13 2023 Automatic Build System <autodist@mambasoft.it> 1.8.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 10 2023 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 02 2023 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:24:46 +01:00
|
|
|
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 1.7.4-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
|
2024-01-06 11:24:45 +01:00
|
|
|
* Sun Jul 02 2023 Automatic Build System <autodist@mambasoft.it> 1.7.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
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
|