%global pypi_name aiorpcX %global srcname aiorpcx %global _description \ Transport, protocol and framing-independent async RPC client\ and server implementation. Name: python-%{srcname} Version: 0.10.5 Release: 1%{?dist} Summary: Generic async RPC implementation # https://github.com/kyuupichan/aiorpcX/issues/11 # aiorpcx/curio.py is BSD, rest is MIT License: MIT and BSD URL: https://pypi.org/project/aiorpcX/ Source: %{pypi_source %{pypi_name}} BuildArch: noarch %description %{_description} %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{pypi_name}-%{version} rm -vrf *.egg-info %build %py3_build %install %py3_install %files %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog * Sat Feb 23 2019 Igor Gnatenko - 0.10.5-1 - Initial package