diff --git a/README.md b/README.md index 5837c92..c458ac9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-lazr-delegates +Easily write objects that delegate behavior. + diff --git a/python-lazr-delegates.spec b/python-lazr-delegates.spec new file mode 100644 index 0000000..b14b594 --- /dev/null +++ b/python-lazr-delegates.spec @@ -0,0 +1,53 @@ +%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 +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 2.1.0-1mamba +- package created using the webbuild interface