%{?python_enable_dependency_generator} %global srcname aiohttp_socks Name: python-aiohttp-socks Version: 0.2.2 Release: 1%{?dist} Summary: SOCKS proxy connector for aiohttp License: ASL 2.0 URL: https://github.com/romis2012/aiohttp-socks Source0: %{pypi_source} BuildArch: noarch %description SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported. %package -n python3-aiohttp-socks Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-aiohttp %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-aiohttp-socks SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported. %prep %autosetup -n %{srcname}-%{version} rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-aiohttp-socks %license LICENSE.txt %doc README.md %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %changelog * Wed Apr 03 2019 Jonny Heggheim - 0.2.2-1 - Initial packaging