3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
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.python.org/simple/eventlet/
16 Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
17 # Source0-md5: 92aaac4c0abaddff9329f55d8f5bcd76
18 Patch0: %{name}-deps.patch
19 URL: https://pypi.python.org/pypi/eventlet/
20 BuildRequires: rpm-pythonprov
21 BuildRequires: rpmbuild(macros) >= 1.714
23 BuildRequires: python-devel >= 1:2.6
24 BuildRequires: python-setuptools >= 5.4.1
26 BuildRequires: python-enum34
27 BuildRequires: python-greenlet >= 0.3
28 BuildRequires: python-nose >= 1.3.1
32 BuildRequires: python3-devel >= 1:3.3
33 BuildRequires: python3-setuptools >= 5.4.1
35 %if "%{py3_ver}" < "3.4"
36 BuildRequires: python3-enum34
38 BuildRequires: python3-greenlet >= 0.3
39 BuildRequires: python3-nose >= 1.3.1
42 %{?with_doc:BuildRequires: sphinx-pdg}
43 Requires: python-modules >= 1:2.6
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Eventlet is a concurrent networking library for Python that allows you
48 to change how you run your code, not how you write it.
50 It uses epoll or libevent for highly scalable non-blocking I/O.
51 Coroutines ensure that the developer uses a blocking style of
52 programming that is similar to threading, but provide the benefits of
53 non-blocking I/O. The event dispatch is implicit, which means you can
54 easily use Eventlet from the Python interpreter, or as a small part of
57 %description -l pl.UTF-8
58 Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
59 zmianę sposobu uruchamiania kodu bez sposobu pisania go.
61 Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
62 nieblokujących operacji we/wy. Korutyny zapewniają, że programista
63 korzysta z blokującego stylu programowania, podobnego do wątkowego,
64 ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
65 domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
66 interpretera Pythona lub jako małej części dużej aplikacji.
68 %package -n python3-eventlet
69 Summary: Highly concurrent networking library for Python 3
70 Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 3
71 Group: Development/Languages/Python
72 Requires: python3-modules >= 1:3.3
74 %description -n python3-eventlet
75 Eventlet is a concurrent networking library for Python that allows you
76 to change how you run your code, not how you write it.
78 It uses epoll or libevent for highly scalable non-blocking I/O.
79 Coroutines ensure that the developer uses a blocking style of
80 programming that is similar to threading, but provide the benefits of
81 non-blocking I/O. The event dispatch is implicit, which means you can
82 easily use Eventlet from the Python interpreter, or as a small part of
85 %description -n python3-eventlet -l pl.UTF-8
86 Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
87 zmianę sposobu uruchamiania kodu bez sposobu pisania go.
89 Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
90 nieblokujących operacji we/wy. Korutyny zapewniają, że programista
91 korzysta z blokującego stylu programowania, podobnego do wątkowego,
92 ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
93 domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
94 interpretera Pythona lub jako małej części dużej aplikacji.
97 Summary: API documentation for eventlet module
98 Summary(pl.UTF-8): Dokumentacja API modułu eventlet
100 %if "%{_rpmversion}" >= "5"
105 API documentation for eventlet module.
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API modułu eventlet.
111 %setup -q -n eventlet-%{version}
118 %{?with_tests:PYTHONPATH=$(pwd) %{__python} -m unittest tests}
124 %{?with_tests:PYTHONPATH=$(pwd) %{__python3} -m unittest tests}
128 %{__make} -C doc -j1 html
129 %{__rm} -r doc/_build/html/_sources
133 rm -rf $RPM_BUILD_ROOT
146 rm -rf $RPM_BUILD_ROOT
150 %defattr(644,root,root,755)
151 %doc AUTHORS LICENSE NEWS README.rst
152 %{py_sitescriptdir}/eventlet
153 %{py_sitescriptdir}/eventlet-%{version}-py*.egg-info
157 %files -n python3-eventlet
158 %defattr(644,root,root,755)
159 %doc AUTHORS LICENSE NEWS README.rst
160 %{py3_sitescriptdir}/eventlet
161 %{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info
166 %defattr(644,root,root,755)
167 %doc doc/_build/html/*