From 76f19db750b2f13f2e1510c4ffe33249f1a9d7ec Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:46:47 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.12.0-1mamba;Tue Jul 04 2023] --- README.md | 2 ++ python-toolz.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 python-toolz.spec diff --git a/README.md b/README.md index 46b7ebc..4aca878 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-toolz +List processing tools and functional utilities. + diff --git a/python-toolz.spec b/python-toolz.spec new file mode 100644 index 0000000..44b2ead --- /dev/null +++ b/python-toolz.spec @@ -0,0 +1,52 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-toolz +Version: 0.12.0 +Release: 1mamba +Summary: List processing tools and functional utilities +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/pytoolz/toolz/ +Source: https://pypi.debian.net/toolz/toolz-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython310-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n toolz-%{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/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%dir %{python_sitelib}/tlz +%{python_sitelib}/tlz/* + +%changelog +* Tue Jul 04 2023 Silvan Calarco 0.12.0-1mamba +- package created using the webbuild interface