python-tox/python-tox.spec

71 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-tox
Version: 4.12.1
Release: 1mamba
Summary: A generic virtualenv management and test command line tool
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://tox.wiki/en/4.11.4/
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 Jan 17 2024 Automatic Build System <autodist@openmamba.org> 4.12.1-1mamba
- automatic version update by autodist
* Fri Jan 12 2024 Automatic Build System <autodist@openmamba.org> 4.12.0-1mamba
- automatic version update by autodist
* Tue Nov 28 2023 Automatic Build System <autodist@mambasoft.it> 4.11.4-1mamba
- automatic version update by autodist
* Wed Nov 08 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.3-1mamba
- package created using the webbuild interface