%global __python3 /usr/bin/python3.11 %global python3_pkgversion 3.11 %global pypi_name click Name: python-%{pypi_name} Version: 7.1.2 Release: 3%{?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} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} BuildRequires: python%{python3_pkgversion}-devel 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 %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