%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-flit_core Version: 3.7.1 Release: 1mamba Summary: Distribution-building parts of Flit Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/pypa/flit Source: https://pypi.debian.net/flit_core/flit_core-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel ## AUTOBUILDREQ-END BuildRequires: python-build-py3 BuildRequires: python-build-py310 BuildRequires: python-installer-py3 BuildRequires: python-installer-py310 %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n flit_core-%{version} %build CFLAGS="%{optflags}" %{__python} -m build --wheel --skip-dependency-check --no-isolation %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 * Wed Sep 28 2022 Silvan Calarco 3.7.1-1mamba - package created using the webbuild interface