59 lines
1.9 KiB
RPMSpec
59 lines
1.9 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f1- | tr - _)
|
|
Name: python-lsp-ruff
|
|
Version: 2.3.0
|
|
Release: 2mamba
|
|
Summary: Ruff linting plugin for pylsp
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/python-lsp/python-lsp-ruff
|
|
Source: https://pypi.debian.net/python-lsp-ruff/python_lsp_ruff-%{version}.tar.gz
|
|
License: MIT
|
|
BuildArch: noarch
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: (python3.14dist(cattrs) < 23.2.1 or python3.14dist(cattrs) > 23.2.1)
|
|
BuildRequires: libpython314-devel
|
|
BuildRequires: python3.14dist(lsprotocol)
|
|
BuildRequires: python3.14dist(python-lsp-server)
|
|
BuildRequires: python3.14dist(ruff)
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python3 >= 0:3.14.6-2mamba
|
|
Obsoletes: python-lsp-ruff-py3 < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Provides: python-lsp-ruff-py3 = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n python_lsp_ruff-%{version}
|
|
|
|
%build
|
|
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}/pdm; do
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
#done
|
|
#%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
%dir %{python_sitelib}/pylsp_ruff
|
|
%{python_sitelib}/pylsp_ruff/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Thu Jul 09 2026 Automatic Build System <autodist@openmamba.org> 2.3.0-2mamba
|
|
- rebuilt by autoport with build requirements: python3>=0:3.14.6-2mamba
|
|
|
|
* Sat Oct 04 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.0-1mamba
|
|
- package created using the webbuild interface
|