]>
Commit | Line | Data |
---|---|---|
fa771126 | 1 | # |
d2883865 ER |
2 | # Conditional build: |
3 | %bcond_without tests # do not perform "make test" | |
4 | ||
f8b99dfc | 5 | %define module asyncio |
fa771126 | 6 | Summary: Asynchronous IO Support |
d2883865 | 7 | Name: python3-%{module} |
0980767e | 8 | Version: 3.4.3 |
eb5f201c | 9 | Release: 5 |
fa771126 AM |
10 | License: GPL |
11 | Group: Development/Languages/Python | |
d2883865 | 12 | Source0: http://pypi.python.org/packages/source/a/asyncio/%{module}-%{version}.tar.gz |
0980767e | 13 | # Source0-md5: a189813096a6da1e46c16a41edb5f96d |
f8b99dfc | 14 | Patch0: tests.patch |
fa771126 | 15 | URL: https://pypi.python.org/pypi/asyncio |
41abbabd | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
fa771126 | 17 | BuildRequires: python3-2to3 |
afd7ec80 | 18 | BuildRequires: python3-modules >= 1:3.3 |
fa771126 | 19 | BuildRequires: rpm-pythonprov |
afd7ec80 | 20 | Requires: python3 >= 1:3.3 |
fa771126 AM |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Asynchronous IO Support library - includes a pluggable event loop, | |
26 | transport and protocol abstractions similar to those in Twisted, and a | |
27 | higher-level scheduler based on yield from (PEP 380) | |
28 | ||
29 | %prep | |
30 | %setup -q -n asyncio-%{version} | |
f8b99dfc | 31 | %patch0 -p1 |
fa771126 AM |
32 | |
33 | %build | |
7c5295f3 | 34 | %py3_build |
fa771126 AM |
35 | %{?with_tests:%{__make} test PYTHON=%{__python3}} |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
d2883865 | 39 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
7c5295f3 | 40 | %py3_install |
d2883865 ER |
41 | |
42 | cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
fa771126 AM |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README | |
fa771126 | 50 | %{py3_sitescriptdir}/%{module} |
d2883865 ER |
51 | %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info |
52 | %{_examplesdir}/%{name}-%{version} |