3 # - investigate some of the failing tests
4 # (now excluded via known_failures-pld.txt)
7 %bcond_without tests # do not run tests
10 Summary: A coroutine-based Python networking library
11 Name: python-%{module}
15 Group: Development/Languages
16 URL: http://www.gevent.org/
17 Source0: http://pypi.python.org/packages/source/g/gevent/%{module}-%{version}.tar.gz
18 # Source0-md5: 33aef51a06268f5903fea378e1388e4d
19 Source1: known_failures-pld.txt
20 BuildRequires: libevent-devel >= 1.4.0
21 BuildRequires: python-devel
23 BuildRequires: python-greenlet >= 0.3.2
24 BuildRequires: python-test
25 BuildRequires: python-devel-src
26 BuildRequires: rpm-build-macros >= 1.688
28 BuildRequires: rpm-pythonprov
29 Requires: python-greenlet >= 0.3.2
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 gevent is a coroutine-based Python networking library that uses
34 greenlet to provide a high-level synchronous API on top of libevent
38 - convenient API around greenlets
39 - familiar synchronization primitives (gevent.event, gevent.queue)
40 - socket module that cooperates
41 - WSGI server on top of libevent-http
42 - DNS requests done through libevent-dns
43 - monkey patching utility to get pure Python modules to cooperate
46 %setup -q -n %{module}-%{version}
48 cat known_failures.txt %{SOURCE1} > known_failures-merged.txt
52 CFLAGS="%{rpmcflags}" \
53 %{__python} setup.py build
57 PYTHONPATH=.. python testrunner.py --expected ../known_failures-merged.txt
62 rm -rf $RPM_BUILD_ROOT
63 %{__python} setup.py install \
66 --root=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc LICENSE README.rst
76 %dir %{py_sitedir}/%{module}
77 %{py_sitedir}/%{module}/*.py[co]
78 %attr(755,root,root) %{py_sitedir}/%{module}/_semaphore.so
79 %attr(755,root,root) %{py_sitedir}/%{module}/_util.so
80 %attr(755,root,root) %{py_sitedir}/%{module}/ares.so
81 %attr(755,root,root) %{py_sitedir}/%{module}/core.so
82 %if "%{py_ver}" > "2.4"
83 %{py_sitedir}/%{module}-%{version}-py%{py_ver}.egg-info