%global pypi_name authres Name: python-%{pypi_name} Version: 1.2.0 Release: 1%{?dist} Summary: Authentication Results Header Module License: Apache 2.0 URL: https://launchpad.net/authentication-results-python Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description RFC 5451/7001/7601 Authentication-Results Headers generation and parsing for Python. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} RFC 5451/7001/7601 Authentication-Results Headers generation and parsing for Python. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info. rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check # NOTE: We need to manually set the PYTHONPATH environment variable so that the # newly built Python package is found. PYTHONPATH=%{buildroot}%{python3_sitelib} \ %{__python3} -m %{pypi_name} %files -n python3-%{pypi_name} %license COPYING %doc README %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Thu Dec 12 2019 Tadej Janež - 1.2.0-1 - Initial package