3 %bcond_without doc # don't build doc
4 # tests make builder hung
5 %bcond_with tests # do not perform "make test"
6 %bcond_without python2 # CPython 2.x module
7 %bcond_with python3 # CPython 3.x module (asyncio is part of Python 3.4 standard library(
9 %define module trollius
10 %define egg_name trollius
11 %define pypi_name trollius
12 Summary: A port of the Tulip asyncio module to Python 2
17 Group: Libraries/Python
18 Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
19 # Source0-md5: 0b36ff1057cb5a93befe7d8ef0edcbf8
20 URL: https://github.com/haypo/trollius
21 BuildRequires: rpm-pythonprov
22 BuildRequires: rpmbuild(macros) >= 1.714
24 BuildRequires: python-modules
25 BuildRequires: python-setuptools
27 BuildRequires: python-futures
28 BuildRequires: python-mock
29 BuildRequires: python-modules
33 BuildRequires: python3-devel
34 BuildRequires: python3-setuptools
36 Requires: python-futures
40 Trollius provides infrastructure for writing single-threaded
41 concurrent code using coroutines, multiplexing I/O access over sockets
42 and other resources, running network clients and servers, and other
45 Trollius is a portage of the asyncio project (PEP 3156) on Python 2.
46 Trollius works on Python 2.6-3.5. It has been tested on Windows,
47 Linux, Mac OS X, FreeBSD and OpenIndiana.
49 %package -n python3-trollius
50 Summary: A port of the Tulip asyncio module
51 Group: Libraries/Python
53 %description -n python3-trollius
54 Trollius provides infrastructure for writing single-threaded
55 concurrent code using coroutines, multiplexing I/O access over sockets
56 and other resources, running network clients and servers, and other
59 Trollius is a portage of the asyncio project (PEP 3156) on Python 2.
60 Trollius works on Python 2.6-3.5. It has been tested on Windows,
61 Linux, Mac OS X, FreeBSD and OpenIndiana.
64 %setup -q -n %{pypi_name}-%{version}
71 %{__python} runtests.py -v1 -x test_subprocess_kill
79 %{__python3} runtests.py -v1 -x test_subprocess_kill
84 rm -rf $RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
101 %{py_sitescriptdir}/%{module}
102 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
106 %files -n python3-trollius
107 %defattr(644,root,root,755)
109 %{py3_sitescriptdir}/%{module}
110 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info