]> git.pld-linux.org Git - packages/python3-asyncio.git/blame - python3-asyncio.spec
use epoch 1 for python3 package
[packages/python3-asyncio.git] / python3-asyncio.spec
CommitLineData
fa771126 1#
d2883865
ER
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
f8b99dfc 5%define module asyncio
fa771126 6Summary: Asynchronous IO Support
d2883865 7Name: python3-%{module}
0980767e 8Version: 3.4.3
eb5f201c 9Release: 5
fa771126
AM
10License: GPL
11Group: Development/Languages/Python
d2883865 12Source0: http://pypi.python.org/packages/source/a/asyncio/%{module}-%{version}.tar.gz
0980767e 13# Source0-md5: a189813096a6da1e46c16a41edb5f96d
f8b99dfc 14Patch0: tests.patch
fa771126 15URL: https://pypi.python.org/pypi/asyncio
41abbabd 16BuildRequires: rpmbuild(macros) >= 1.710
fa771126 17BuildRequires: python3-2to3
afd7ec80 18BuildRequires: python3-modules >= 1:3.3
fa771126 19BuildRequires: rpm-pythonprov
afd7ec80 20Requires: python3 >= 1:3.3
fa771126
AM
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Asynchronous IO Support library - includes a pluggable event loop,
26transport and protocol abstractions similar to those in Twisted, and a
27higher-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
38rm -rf $RPM_BUILD_ROOT
d2883865 39install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7c5295f3 40%py3_install
d2883865
ER
41
42cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
fa771126
AM
43
44%clean
45rm -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}
This page took 0.058411 seconds and 4 git commands to generate.