%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-lsp-server Version: 1.7.1 Release: 1mamba Summary: A Python 3.6+ implementation of the Language Server Protocol Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco 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 BuildRequires: python3.7dist(docstring-to-markdown) 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} %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} \ Requires: python-flake8%{?pyappend:-%pyappend} Requires: python-autopep8%{?pyappend:-%pyappend} %pyver_package %endif %prep %setup -q -n python-lsp-server-%{version} 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 CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} -m installer --destdir=%{buildroot} dist/*.whl %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 %files %{?pyappend} %defattr(-,root,root) %{_bindir}/pylsp %dir %{python_sitelib}/python_%{pkgname}-%{version}.dist-info %{python_sitelib}/python_%{pkgname}-%{version}.dist-info/* %dir %{python_sitelib}/pylsp %{python_sitelib}/pylsp/* %doc LICENSE %changelog * Thu Jan 19 2023 Automatic Build System 1.7.1-1mamba - automatic version update by autodist * Sat Dec 31 2022 Automatic Build System 1.7.0-1mamba - automatic version update by autodist * Thu Dec 08 2022 Silvan Calarco 1.6.0-3mamba - remove requirements for older deps versions * Wed Nov 09 2022 Silvan Calarco 1.6.0-2mamba - add requirements * Mon Nov 07 2022 Silvan Calarco 1.6.0-1mamba - update to 1.6.0 * Sat Oct 08 2022 Automatic Build System 1.5.0-1mamba - automatic version update by autodist * Fri Apr 01 2022 Silvan Calarco 1.4.1-1mamba - update to 1.4.1 * Sun Feb 13 2022 Silvan Calarco 1.3.3-1mamba - package created using the webbuild interface