%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-distlib Version: 0.3.6 Release: 1mamba Summary: Low-level parts of packaging/distutils2 which implement the relevant PEPs Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://bitbucket.org/pypa/distlib/src/master/ Source: https://pypi.debian.net/distlib/distlib-%{version}.tar.gz License: Python Software Foundation License ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel ## AUTOBUILDREQ-END %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n distlib-%{version} %build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} -m installer --destdir=%{buildroot} dist/*.whl %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}/* %changelog * Sat Oct 08 2022 Silvan Calarco 0.3.6-1mamba - update to 0.3.6 * Thu Dec 09 2021 Automatic Build System 0.3.4-1mamba - automatic version update by autodist * Wed Sep 22 2021 Automatic Build System 0.3.3-1mamba - automatic version update by autodist * Sat May 29 2021 Automatic Build System 0.3.2-1mamba - automatic version update by autodist * Mon Jan 25 2021 Silvan Calarco 0.3.1-1mamba - package created using the webbuild interface