2010-12-04 15:53:00 +00:00
|
|
|
#
|
2011-02-03 08:43:01 +00:00
|
|
|
# spec file for package python-eventlet
|
2010-12-04 15:53:00 +00:00
|
|
|
#
|
2017-01-12 08:13:07 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-12-04 15:53:00 +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
|
2011-09-02 11:41:27 +00:00
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
2010-12-04 15:53:00 +00:00
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-05 15:03:51 +00:00
|
|
|
|
2011-09-02 11:41:27 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2011-09-05 15:03:51 +00:00
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
Name: python-eventlet
|
2017-01-12 08:13:07 +00:00
|
|
|
Version: 0.20.1
|
2012-11-23 11:00:07 +00:00
|
|
|
Release: 0
|
2011-09-02 11:41:27 +00:00
|
|
|
Url: http://eventlet.net
|
2010-12-04 15:53:00 +00:00
|
|
|
Summary: Highly concurrent networking library
|
|
|
|
License: MIT
|
2011-09-02 11:41:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-12-03 18:20:10 +00:00
|
|
|
Source: https://pypi.io/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
2010-12-04 15:53:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-23 11:00:07 +00:00
|
|
|
BuildRequires: python-Sphinx
|
2011-09-02 11:41:27 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-greenlet
|
2013-10-24 11:05:32 +00:00
|
|
|
BuildRequires: python-setuptools
|
2017-01-12 13:20:06 +00:00
|
|
|
Requires: python-enum-compat
|
2015-01-08 17:34:56 +00:00
|
|
|
Requires: python-greenlet >= 0.3
|
2012-11-23 11:00:07 +00:00
|
|
|
%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
|
2010-12-04 15:53:00 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2011-09-02 11:41:27 +00:00
|
|
|
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.
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%package doc
|
2011-09-02 11:41:27 +00:00
|
|
|
Summary: Highly concurrent networking library - Documentation
|
2010-12-04 15:53:00 +00:00
|
|
|
Group: Development/Libraries/Python
|
2011-09-02 11:41:27 +00:00
|
|
|
Requires: %{name} = %{version}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%description doc
|
2014-10-08 09:50:08 +00:00
|
|
|
Documentation for Eventlet, which is a concurrent networking library
|
|
|
|
for Python that allows you to change how you run your code, not how you write it.
|
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n eventlet-%{version}
|
2012-11-23 11:00:07 +00:00
|
|
|
sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-02 11:41:27 +00:00
|
|
|
python setup.py build
|
2012-11-23 11:00:07 +00:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%install
|
2011-09-02 11:41:27 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2011-09-02 11:41:27 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-01-08 17:34:56 +00:00
|
|
|
%doc AUTHORS LICENSE NEWS README.rst
|
2011-09-02 11:41:27 +00:00
|
|
|
%{python_sitelib}/*
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2012-11-23 11:00:07 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc build/sphinx/html examples
|
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
%changelog
|