2011-07-19 12:39:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-gevent
|
|
|
|
#
|
2014-06-17 09:03:51 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-19 12:39:05 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-12-12 09:01:49 +00:00
|
|
|
|
2011-07-19 12:39:05 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-12 09:01:49 +00:00
|
|
|
|
2011-07-19 12:39:05 +00:00
|
|
|
Name: python-gevent
|
2014-11-18 14:19:33 +00:00
|
|
|
Version: 1.0.1
|
2011-07-19 12:39:05 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://www.gevent.org/
|
|
|
|
Summary: Python network library that uses greenlet and libevent
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: libevent-devel
|
2012-03-27 11:42:00 +00:00
|
|
|
#BuildRequires: python-Sphinx
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-greenlet
|
|
|
|
BuildRequires: python-nose
|
|
|
|
Requires: python-greenlet
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2011-07-19 12:39:05 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gevent is a Python networking library that uses greenlet to provide synchronous
|
|
|
|
API on top of a libevent event loop. Features include:
|
|
|
|
|
|
|
|
* Fast event loop based on libevent.
|
|
|
|
* Lightweight execution units based on greenlet.
|
|
|
|
* Familiar API that re-uses concepts from the Python standard library.
|
|
|
|
* Cooperative sockets with ssl support.
|
|
|
|
* DNS queries performed through libevent-dns.
|
|
|
|
* Ability to use standard library and 3rd party modules written for standard
|
|
|
|
blocking sockets
|
|
|
|
* Fast WSGI server based on libevent-http.
|
|
|
|
|
|
|
|
gevent is inspired by eventlet but features more consistent API, simpler
|
|
|
|
implementation and better performance. Read why others use gevent and check
|
|
|
|
out the list of the open source projects based on gevent.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gevent-%{version}
|
|
|
|
|
|
|
|
%build
|
2012-03-27 11:42:00 +00:00
|
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
|
|
|
|
#cd doc && make html && rm _build/html/.buildinfo # Build HTML documentation
|
2011-07-19 12:39:05 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2012-03-27 11:42:00 +00:00
|
|
|
%check
|
|
|
|
nosetests
|
|
|
|
|
2011-07-19 12:39:05 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-03-27 11:42:00 +00:00
|
|
|
%doc AUTHORS changelog.rst LICENSE* README.rst TODO examples
|
|
|
|
#%%doc doc/_build/html
|
2011-07-19 12:39:05 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|