[packages/python3-asyncio] - initial
arekm
arekm at pld-linux.org
Sun Feb 2 01:02:28 CET 2014
commit fa771126b040f108b485d48e5c454a8113bef2e1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Feb 2 01:02:17 2014 +0100
- initial
python3-asyncio.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
---
diff --git a/python3-asyncio.spec b/python3-asyncio.spec
new file mode 100644
index 0000000..fafba22
--- /dev/null
+++ b/python3-asyncio.spec
@@ -0,0 +1,53 @@
+#
+%bcond_without tests
+#
+%define module asyncio
+#
+Summary: Asynchronous IO Support
+Name: python3-asyncio
+Version: 0.2.1
+Release: 1
+License: GPL
+Group: Development/Languages/Python
+Source0: http://pypi.python.org/packages/source/a/asyncio/asyncio-%{version}.tar.gz
+# Source0-md5: 55dd3fa7aaa243526315d7b6e5ed1ade
+URL: https://pypi.python.org/pypi/asyncio
+BuildRequires: python3-2to3
+BuildRequires: python3-modules >= 3.3
+BuildRequires: rpm-pythonprov
+Requires: python3 >= 3.3
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Asynchronous IO Support library - includes a pluggable event loop,
+transport and protocol abstractions similar to those in Twisted, and a
+higher-level scheduler based on yield from (PEP 380)
+
+%prep
+%setup -q -n asyncio-%{version}
+
+%build
+%{__python3} ./setup.py build --build-base py3
+
+%{?with_tests:%{__make} test PYTHON=%{__python3}}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+%{__python3} ./setup.py build \
+ --build-base py3 \
+ install \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
+cp examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{_examplesdir}/python3-%{module}-%{version}
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-asyncio.git/commitdiff/fa771126b040f108b485d48e5c454a8113bef2e1
More information about the pld-cvs-commit
mailing list