14
0
forked from pool/python-txaio
2020-03-27 12:41:54 +00:00
committed by Git OBS Bridge
parent 0256b6cac2
commit 6036e8379b
2 changed files with 54 additions and 1 deletions

View File

@@ -16,7 +16,6 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-txaio
Version: 20.3.1
@@ -26,14 +25,20 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/crossbario/txaio
Source: https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz
Patch0: pytest4.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-devel
BuildRequires: python3-testsuite
Requires: python-six
Recommends: python-Twisted >= 12.1.0
Recommends: python-zope.interface >= 3.6
BuildArch: noarch
%ifpython2
Requires: python-future
Recommends: python-trollius
%endif
# SECTION test requirements
BuildRequires: %{python_module Twisted >= 12.1.0}
BuildRequires: %{python_module mock}
@@ -48,6 +53,7 @@ asynchronous Remote Procedure Calls and Publish & Subscribe on top of WebSocket.
%prep
%setup -q -n txaio-%{version}
%autopatch -p1
%build
%python_build