# Created by pyp2rpm-3.3.2 %global pypi_name aiozmq %global gitrev 20191223git56065a26 %global _description %{expand: asyncio (PEP 3156) support for ZeroMQ, a messaging library. Features: * Implements create_zmq_connection() coroutine for making 0MQ connections. * Provides ZmqTransport and ZmqProtocol * Provides RPC Request-Reply, Push-Pull and Publish-Subscribe patterns for remote calls. } Name: python-%{pypi_name} Version: 0.8.0 Release: 2.20191223git56065a26%{?dist} Summary: ZeroMQ integration with asyncio License: BSD URL: http://aiozmq.readthedocs.org #Source0: https://files.pythonhosted.org/packages/source/a/{pypi_name}/{pypi_name}-{version}.tar.gz #Source0: https://github.com/aio-libs/{pypi_name}/archive/v{version}.tar.gz # Souce tarball can be created from the git repo using the command # git archive --format=tar --prefix=aiozmq-0.8.0/ -o aiozmq-20191223git56065a26.tar.xz master Source0: %{pypi_name}-%{gitrev}.tar.xz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(msgpack-python) >= 0.4.0 BuildRequires: python3dist(pyzmq) >= 13.1 BuildRequires: python3dist(setuptools) %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(msgpack-python) >= 0.4.0 Requires: python3dist(pyzmq) >= 13.1 Requires: python3dist(setuptools) %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check # Disable tests temporarily # https://github.com/aio-libs/aiozmq/issues/132 #{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst %{_bindir}/aiozmq-proxy %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Mon Dec 23 2019 Mukundan Ragavan - 0.8.0-2.20191223git56065a26 - Build from master branch of repo - contains fixes for python 3.7+ * Sun Dec 22 2019 Mukundan Ragavan - 0.8.0-1 - Initial package.