%define pypiname rfc6555 Name: python3-%{pypiname} Version: 0.1.0 Release: 1%{?dist} Group: Development Summary: Python implementation of RFC 6555 License: Apache 2.0 URL: https://pypi.org/project/rfc6555/ Source0: https://github.com/sethmlarson/rfc6555/releases/download/v%{version}/%{pypiname}-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python3) Requires: python3 %description Synchronous Python implementation of the Happy Eyeballs Algorithm described in RFC 6555. Provided with a single file and dead-simple API to allow easy vendoring and integration into other projects. %prep %autosetup -p1 -n %{pypiname}-%{version} %build %py3_build %install %py3_install %check %files %license LICENSE %doc *.rst %{python3_sitelib}/%{pypiname}.py %exclude %{python3_sitelib}/__pycache__ %{python3_sitelib}/%{pypiname}-*-py%{python3_version}.egg-info %changelog