%global pypi_name click %global __python3 /usr/bin/python3.9 %global python3_pkgversion 39 Name: python39-%{pypi_name}-epel Version: 8.1.2 Release: 1%{?dist} Summary: Simple wrapper around optparse for powerful command line utilities License: BSD URL: https://github.com/mitsuhiko/click Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %global _description \ click is a Python package for creating beautiful command line\ interfaces in a composable way with as little amount of code as necessary.\ It's the "Command Line Interface Creation Kit". It's highly configurable but\ comes with good defaults out of the box. %description %{_description} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest %description -n python%{python3_pkgversion}-%{pypi_name} %{_description} %prep %autosetup -n %{pypi_name}-%{version} -p1 # Use test dependencies without version locks sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE.rst %doc README.rst CHANGES.rst %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog * Wed Jun 29 2022 Orion Poplawski - 8.1.2-1 - Build for EPEL8 Python 3.9