From 5063e5285d8437c6070a8423ec7efcd1cb98c724 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:09:54 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.7.1-1mamba;Wed Sep 28 2022] --- README.md | 2 ++ python-flit_core.spec | 47 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python-flit_core.spec diff --git a/README.md b/README.md index 5d247d4..a26868d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-flit_core +Distribution-building parts of Flit. + diff --git a/python-flit_core.spec b/python-flit_core.spec new file mode 100644 index 0000000..e36bc9d --- /dev/null +++ b/python-flit_core.spec @@ -0,0 +1,47 @@ +%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