%global commit 5b771effb5414096089375a3a36a3e7af1522ae0 %global shortcommit 5b771ef %global commitdate 20190422 Name: python-requests-wsgi-adapter Version: 0.4.1 Release: %autorelease Summary: WSGI Transport Adapter for Requests License: BSD-3-Clause URL: https://github.com/seanbrant/requests-wsgi-adapter VCS: git:%{url}.git Source: %{url}/archive/%{commit}/requests-wsgi-adapter-%{shortcommit}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: WSGI Transport Adapter for Requests.} %description %_description %package -n python3-requests-wsgi-adapter Summary: %{summary} %description -n python3-requests-wsgi-adapter %_description %prep %autosetup -p1 -n requests-wsgi-adapter-%{commit} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L wsgiadapter %check %pyproject_check_import %{py3_test_envvars} %python3 runtests.py %files -n python3-requests-wsgi-adapter -f %{pyproject_files} %license LICENSE %doc README.rst %changelog %autochangelog