[packages/python-eventlet] - new
qboosh
qboosh at pld-linux.org
Fri Mar 25 16:39:22 CET 2016
commit d2431ecfc06754a7a16a4a2851a3bffab3075d3c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Mar 25 16:43:37 2016 +0100
- new
python-eventlet.spec | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 163 insertions(+)
---
diff --git a/python-eventlet.spec b/python-eventlet.spec
new file mode 100644
index 0000000..896e442
--- /dev/null
+++ b/python-eventlet.spec
@@ -0,0 +1,163 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_with tests # test target [few tests fail as of 0.18.4]
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Highly concurrent networking library for Python 2
+Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
+Name: python-eventlet
+Version: 0.18.4
+Release: 1
+License: MIT
+Group: Development/Languages/Python
+#Source0Download: https://pypi.python.org/simple/eventlet/
+Source0: https://pypi.python.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
+# Source0-md5: 8d1c646d8cc10a4958c92fe8a30f3676
+URL: https://pypi.python.org/pypi/eventlet/
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-setuptools >= 5.4.1
+%if %{with tests}
+BuildRequires: python-dns >= 1.10
+BuildRequires: python-greenlet >= 0.3
+BuildRequires: python-nose >= 1.3.1
+BuildRequires: python-pyOpenSSL
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-devel >= 1:3.3
+BuildRequires: python3-setuptools >= 5.4.1
+%if %{with tests}
+BuildRequires: python3-dns >= 1.10
+BuildRequires: python3-greenlet >= 0.3
+BuildRequires: python3-nose >= 1.3.1
+BuildRequires: python3-pyOpenSSL
+%endif
+%endif
+%{?with_doc:BuildRequires: sphinx-pdg}
+Requires: python-dns >= 1.10
+Requires: python-greenlet >= 0.3
+Requires: python-modules >= 1:2.6
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Eventlet is a concurrent networking library for Python that allows you
+to change how you run your code, not how you write it.
+
+It uses epoll or libevent for highly scalable non-blocking I/O.
+Coroutines ensure that the developer uses a blocking style of
+programming that is similar to threading, but provide the benefits of
+non-blocking I/O. The event dispatch is implicit, which means you can
+easily use Eventlet from the Python interpreter, or as a small part of
+a larger application.
+
+%description -l pl.UTF-8
+Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
+zmianę sposobu uruchamiania kodu bez sposobu pisania go.
+
+Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
+nieblokujących operacji we/wy. Korutyny zapewniają, że programista
+korzysta z blokującego stylu programowania, podobnego do wątkowego,
+ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
+domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
+interpretera Pythona lub jako małej części dużej aplikacji.
+
+%package -n python3-eventlet
+Summary: Highly concurrent networking library for Python 3
+Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 3
+Group: Development/Languages/Python
+Requires: python3-dns >= 1.10
+Requires: python3-greenlet >= 0.3
+Requires: python3-modules >= 1:3.3
+
+%description -n python3-eventlet
+Eventlet is a concurrent networking library for Python that allows you
+to change how you run your code, not how you write it.
+
+It uses epoll or libevent for highly scalable non-blocking I/O.
+Coroutines ensure that the developer uses a blocking style of
+programming that is similar to threading, but provide the benefits of
+non-blocking I/O. The event dispatch is implicit, which means you can
+easily use Eventlet from the Python interpreter, or as a small part of
+a larger application.
+
+%description -n python3-eventlet -l pl.UTF-8
+Eventlet to równoległa biblioteka sieciowa dla Ptyhona, pozwalająca na
+zmianę sposobu uruchamiania kodu bez sposobu pisania go.
+
+Biblioteka wykorzystuje epoll lub libevent do wysoko skalowalnych,
+nieblokujących operacji we/wy. Korutyny zapewniają, że programista
+korzysta z blokującego stylu programowania, podobnego do wątkowego,
+ale mającego zalety nieblokującego we/wy. Przekazywania zdarzeń jest
+domyślne, co oznacza, że można łatwo używać modułu Eventlet z poziomu
+interpretera Pythona lub jako małej części dużej aplikacji.
+
+%package apidocs
+Summary: API documentation for eventlet module
+Summary(pl.UTF-8): Dokumentacja API modułu eventlet
+Group: Documentation
+
+%description apidocs
+API documentation for eventlet module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu eventlet.
+
+%prep
+%setup -q -n eventlet-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%if %{with doc}
+%{__make} -C doc -j1 html
+%{__rm} -r doc/_build/html/_sources
+%endifg
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE NEWS README.rst
+%{py_sitescriptdir}/eventlet
+%{py_sitescriptdir}/eventlet-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-eventlet
+%defattr(644,root,root,755)
+%doc AUTHORS LICENSE NEWS README.rst
+%{py3_sitescriptdir}/eventlet
+%{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-eventlet.git/commitdiff/d2431ecfc06754a7a16a4a2851a3bffab3075d3c
More information about the pld-cvs-commit
mailing list