forked from pool/python-eventlet
- update to 0.13.1: * hubs: kqueue support! Thanks to YAMAMOTO Takashi, Edward George * greenio: Fix AttributeError on MacOSX; Bitbucket #136; Thanks to Derk Tegeler * green: subprocess: Fix subprocess.communicate() block on Python 2.7; Thanks to Edward George * green: select: ensure that hub can .wait() at least once before timeout; Thanks to YAMAMOTO Takashi * tpool: single request queue to avoid deadlocks; Bitbucket pull request 31,32; Thanks to Edward George * zmq: pyzmq 13.x compatibility; Thanks to Edward George * green: subprocess: Popen.wait() accepts new `timeout` kwarg; Python 3.3 and RHEL 6.1 compatibility * hubs: EVENTLET_HUB can point to external modules; Thanks to Edward George * semaphore: support timeout for acquire(); Thanks to Justin Patrin * support: do not clear sys.exc_info if can be preserved (greenlet >= 0.3.2); Thanks to Edward George * Travis continous integration; Thanks to Thomas Grainger, Jakub Stasiak * wsgi: minimum_chunk_size of last Server altered all previous (global variable); Thanks to Jakub Stasiak * doc: hubs: Point to the correct function in exception message; Thanks to Floris Bruynooghe OBS-URL: https://build.opensuse.org/request/show/181901 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=12
79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-eventlet
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-eventlet
|
|
Version: 0.13.0
|
|
Release: 0
|
|
Url: http://eventlet.net
|
|
Summary: Highly concurrent networking library
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Source: http://pypi.python.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-distribute
|
|
BuildRequires: python-greenlet
|
|
Requires: python-greenlet
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%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.
|
|
|
|
%package doc
|
|
|
|
Summary: Highly concurrent networking library - Documentation
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
Documentation for the python-eventlet package.
|
|
|
|
%prep
|
|
%setup -q -n eventlet-%{version}
|
|
sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
|
|
|
|
%build
|
|
python setup.py build
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS LICENSE NEWS README README.twisted
|
|
%{python_sitelib}/*
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc build/sphinx/html examples
|
|
|
|
%changelog
|