From de0c7bd0ee32db0ff96bd39f1dffd25f642aa82e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:47:16 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.11.3-1mamba;Wed Nov 08 2023] --- README.md | 2 ++ python-tox.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 python-tox.spec diff --git a/README.md b/README.md index 11890be..77099a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-tox +A generic virtualenv management and test command line tool. + diff --git a/python-tox.spec b/python-tox.spec new file mode 100644 index 0000000..1911a67 --- /dev/null +++ b/python-tox.spec @@ -0,0 +1,61 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-tox +Version: 4.11.3 +Release: 1mamba +Summary: A generic virtualenv management and test command line tool +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://tox.readthedocs.org/ +Source: https://pypi.debian.net/tox/tox-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(cachetools) +BuildRequires: python3.11dist(chardet) +BuildRequires: python3.11dist(colorama) +BuildRequires: python3.11dist(filelock) +BuildRequires: python3.11dist(packaging) +BuildRequires: python3.11dist(platformdirs) +BuildRequires: python3.11dist(pluggy) +BuildRequires: python3.11dist(pyproject-api) +BuildRequires: python3.11dist(virtualenv) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n tox-%{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}/tox; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +%endif + +%files %{?pyappend} +%defattr(-,root,root) +%{_bindir}/tox* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Wed Nov 08 2023 Silvan Calarco 4.11.3-1mamba +- package created using the webbuild interface