From e01130ac86294cc2191e3950a7dd597589b8e025 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 18 Feb 2025 14:16:48 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.6.2-1mamba;Mon Feb 17 2025] --- README.md | 2 ++ python-findpython.spec | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 python-findpython.spec diff --git a/README.md b/README.md index 7972812..268227a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-findpython +A utility to find python versions on your system. + diff --git a/python-findpython.spec b/python-findpython.spec new file mode 100644 index 0000000..ead061d --- /dev/null +++ b/python-findpython.spec @@ -0,0 +1,54 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-findpython +Version: 0.6.2 +Release: 1mamba +Summary: A utility to find python versions on your system +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/frostming/findpython +Source: https://pypi.debian.net/findpython/findpython-%{version}.tar.gz +License: MIT +BuildArch: noarch +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(packaging) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n findpython-%{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) +%{_bindir}/findpython +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Mon Feb 17 2025 Silvan Calarco 0.6.2-1mamba +- package created using the webbuild interface