3 %bcond_without doc # Sphinx documentation
4 %bcond_with tests # unit tests (random timeouts on builders)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Highly concurrent networking library for Python 2
9 Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
14 Group: Development/Languages/Python
15 #Source0Download: https://pypi.org/simple/eventlet/
16 Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
17 # Source0-md5: a15ae1b585678c0bad0e89916d7c0ab4
18 URL: https://pypi.org/project/eventlet/
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
22 BuildRequires: python-devel >= 1:2.7
23 BuildRequires: python-setuptools >= 1:5.4.1
25 BuildRequires: python-dns >= 1.15.0
26 BuildRequires: python-enum34
27 BuildRequires: python-greenlet >= 0.3
28 BuildRequires: python-monotonic >= 1.4
29 BuildRequires: python-nose >= 1.3.1
30 BuildRequires: python-six >= 1.10.0
31 BuildRequires: python-subprocess32
35 BuildRequires: python3-devel >= 1:3.5
36 BuildRequires: python3-setuptools >= 1:5.4.1
38 BuildRequires: python3-dns >= 1.15.0
39 BuildRequires: python3-greenlet >= 0.3
40 BuildRequires: python3-nose >= 1.3.1
41 BuildRequires: python3-six >= 1.10.0
44 %{?with_doc:BuildRequires: sphinx-pdg}
46 # SO_REUSEPORT option for tests.convenience_test.test_socket_reuse
47 BuildRequires: uname(release) >= 3.9
49 Requires: python-modules >= 1:2.7
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Eventlet is a concurrent networking library for Python that allows you
55 to change how you run your code, not how you write it.
57 It uses epoll or libevent for highly scalable non-blocking I/O.
58 Coroutines ensure that the developer uses a blocking style of
59 programming that is similar to threading, but provide the benefits of
60 non-blocking I/O. The event dispatch is implicit, which means you can
61 easily use Eventlet from the Python interpreter, or as a small part of
64 %description -l pl.UTF-8
65 Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
66 zmianę sposobu uruchamiania kodu bez sposobu pisania go.
68 Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
69 nieblokujących operacji we/wy. Korutyny zapewniają, że programista
70 korzysta z blokującego stylu programowania, podobnego do wątkowego,
71 ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
72 domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
73 interpretera Pythona lub jako małej części dużej aplikacji.
75 %package -n python3-eventlet
76 Summary: Highly concurrent networking library for Python 3
77 Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 3
78 Group: Development/Languages/Python
79 Requires: python3-modules >= 1:3.5
81 %description -n python3-eventlet
82 Eventlet is a concurrent networking library for Python that allows you
83 to change how you run your code, not how you write it.
85 It uses epoll or libevent for highly scalable non-blocking I/O.
86 Coroutines ensure that the developer uses a blocking style of
87 programming that is similar to threading, but provide the benefits of
88 non-blocking I/O. The event dispatch is implicit, which means you can
89 easily use Eventlet from the Python interpreter, or as a small part of
92 %description -n python3-eventlet -l pl.UTF-8
93 Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
94 zmianę sposobu uruchamiania kodu bez sposobu pisania go.
96 Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
97 nieblokujących operacji we/wy. Korutyny zapewniają, że programista
98 korzysta z blokującego stylu programowania, podobnego do wątkowego,
99 ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
100 domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
101 interpretera Pythona lub jako małej części dużej aplikacji.
104 Summary: API documentation for eventlet module
105 Summary(pl.UTF-8): Dokumentacja API modułu eventlet
110 API documentation for eventlet module.
112 %description apidocs -l pl.UTF-8
113 Dokumentacja API modułu eventlet.
116 %setup -q -n eventlet-%{version}
119 %{__rm} tests/greendns_test.py
120 # requires local mysql
121 %{__rm} tests/mysqldb_test.py
129 nosetests-%{py_ver} tests
138 nosetests-%{py3_ver} tests
144 %{__make} -C doc -j1 html
148 rm -rf $RPM_BUILD_ROOT
161 rm -rf $RPM_BUILD_ROOT
165 %defattr(644,root,root,755)
166 %doc AUTHORS LICENSE NEWS README.rst
167 %{py_sitescriptdir}/eventlet
168 %{py_sitescriptdir}/eventlet-%{version}-py*.egg-info
172 %files -n python3-eventlet
173 %defattr(644,root,root,755)
174 %doc AUTHORS LICENSE NEWS README.rst
175 %{py3_sitescriptdir}/eventlet
176 %{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info
181 %defattr(644,root,root,755)
182 %doc doc/_build/html/{_images,_static,modules,*.html,*.js}