%global srcname fastpurge Summary: A Python client for the Akamai Fast Purge API Name: python-%{srcname} Version: 1.0.2 Release: 2%{?dist} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz License: GPLv3+ BuildArch: noarch URL: https://github.com/release-engineering/%{name} %description This library provides a simple asynchronous Python wrapper for the Fast Purge API, including authentication and error recovery. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel # Dependencies for test suite BuildRequires: python3dist(pytest) BuildRequires: python3dist(edgegrid-python) BuildRequires: python3dist(monotonic) BuildRequires: python3dist(more-executors) BuildRequires: python3dist(mock) BuildRequires: python3dist(requests-mock) # for Requires we rely on the automatic Python dep generator %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} This library provides a simple asynchronous Python wrapper for the Fast Purge API, including authentication and error recovery. %prep %autosetup -n %{name}-%{version} %build %py3_build %install %py3_install %check %{__python3} -m pytest -v %files -n python3-%{srcname} %doc README.md %doc CHANGELOG.md %license LICENSE %{python3_sitelib}/%{srcname}*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Thu Apr 04 2019 Rohan McGovern - 1.0.2-2 - Run test suite during build * Sat Mar 30 2019 Rohan McGovern - 1.0.2-1 - Initial RPM release