diff --git a/python-lsp-server.spec b/python-lsp-server.spec index 02efe37..faeb555 100644 --- a/python-lsp-server.spec +++ b/python-lsp-server.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-lsp-server -Version: 1.5.0 -Release: 1mamba +Version: 1.6.0 +Release: 3mamba Summary: A Python 3.6+ implementation of the Language Server Protocol Group: System/Libraries Vendor: openmamba @@ -12,6 +12,7 @@ Source: https://pypi.debian.net/python-lsp-server/python-lsp-server-%{ver 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) @@ -23,33 +24,57 @@ BuildRequires: python3.7dist(ujson) %{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 -%build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%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} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info -%{python_sitearch}/python_%{pkgname}-%{version}-py*.egg-info/* +%{_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 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