3 %bcond_without tests # do not perform "make test"
6 Summary: Asynchronous IO Support
7 Name: python3-%{module}
11 Group: Development/Languages/Python
12 Source0: http://pypi.python.org/packages/source/a/asyncio/%{module}-%{version}.tar.gz
13 # Source0-md5: 55dd3fa7aaa243526315d7b6e5ed1ade
14 URL: https://pypi.python.org/pypi/asyncio
15 BuildRequires: python3-2to3
16 BuildRequires: python3-modules >= 3.3
17 BuildRequires: rpm-pythonprov
18 Requires: python3 >= 3.3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Asynchronous IO Support library - includes a pluggable event loop,
24 transport and protocol abstractions similar to those in Twisted, and a
25 higher-level scheduler based on yield from (PEP 380)
28 %setup -q -n asyncio-%{version}
31 %{__python3} setup.py build
32 %{?with_tests:%{__make} test PYTHON=%{__python3}}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
37 %{__python3} setup.py install \
39 --root=$RPM_BUILD_ROOT
41 cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{py3_sitescriptdir}/%{module}
50 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
51 %{_examplesdir}/%{name}-%{version}