python-lazr-delegates/python-lazr-delegates.spec

54 lines
1.5 KiB
RPMSpec

%define pkgname lazr.delegates
Name: python-lazr-delegates
Version: 2.1.0
Release: 1mamba
Summary: Easily write objects that delegate behavior
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://launchpad.net/lazr.delegates
Source: https://pypi.debian.net/lazr.delegates/lazr.delegates-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(setuptools)
BuildRequires: python3.11dist(zope.interface)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n lazr.delegates-%{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 %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%{python_sitelib}/lazr.delegates-%{version}-py*-nspkg.pth
%dir %{python_sitelib}/lazr/delegates
%{python_sitelib}/lazr/delegates/*
%changelog
* Mon Dec 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
- package created using the webbuild interface