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
|
|
|
|
2017-09-05 09:39:53 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2010-12-04 15:53:00 +00:00
|
|
|
Name: python-eventlet
|
2017-12-14 12:26:04 +00:00
|
|
|
Version: 0.20.0
|
2012-11-23 11:00:07 +00:00
|
|
|
Release: 0
|
2017-09-06 07:26:00 +00:00
|
|
|
Summary: Concurrent networking library for Python
|
2010-12-04 15:53:00 +00:00
|
|
|
License: MIT
|
2011-09-02 11:41:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-09-05 09:39:53 +00:00
|
|
|
Url: http://eventlet.net
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
2017-11-26 16:03:18 +00:00
|
|
|
Patch0: 0001-Fix-SSL-connection-reset-errors.patch
|
2017-09-05 09:39:53 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module greenlet}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-10-06 08:09:41 +00:00
|
|
|
BuildRequires: fdupes
|
2017-09-05 09:39:53 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %python_version_nodots < 34
|
|
|
|
Requires: python-enum34
|
|
|
|
%endif
|
2015-01-08 17:34:56 +00:00
|
|
|
Requires: python-greenlet >= 0.3
|
2017-09-05 09:39:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-04 15:53:00 +00:00
|
|
|
BuildArch: noarch
|
2017-09-05 09:39:53 +00:00
|
|
|
%python_subpackages
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%description
|
2017-09-06 07:26:00 +00:00
|
|
|
Eventlet is a concurrent networking library for Python that allows
|
|
|
|
changing how code is run.
|
2011-09-02 11:41:27 +00:00
|
|
|
|
2017-09-06 07:26:00 +00:00
|
|
|
It uses epoll or libevent for scalable non-blocking I/O. Coroutines
|
2011-09-02 11:41:27 +00:00
|
|
|
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
|
2017-09-06 07:26:00 +00:00
|
|
|
is implicit, which means Eventlet can be used from the Python
|
|
|
|
interpreter, or as part of a larger application.
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%package doc
|
2017-09-06 07:26:00 +00:00
|
|
|
Summary: Documentation for the Eventlet concurrent networking library
|
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
|
2017-09-06 07:26:00 +00:00
|
|
|
for Python that allows changing how code is run.
|
2014-10-08 09:50:08 +00:00
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n eventlet-%{version}
|
2017-11-26 16:03:18 +00:00
|
|
|
%patch0 -p1
|
2017-12-14 12:26:04 +00:00
|
|
|
sed -i '/enum.compat/d' setup.py # crude way to drop the strange "enum-compat" requirement
|
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
|
2017-09-05 09:39:53 +00:00
|
|
|
%python_build
|
|
|
|
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2010-12-04 15:53:00 +00:00
|
|
|
|
|
|
|
%install
|
2017-09-05 09:39:53 +00:00
|
|
|
%python_install
|
2017-10-06 08:09:41 +00:00
|
|
|
%fdupes %{buildroot}%{_prefix}
|
2010-12-04 15:53:00 +00:00
|
|
|
|
2017-09-05 09:39:53 +00:00
|
|
|
%files %{python_files}
|
2011-09-02 11:41:27 +00:00
|
|
|
%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
|
|
|
|
2017-09-05 09:39:53 +00:00
|
|
|
%files %{python_files doc}
|
2012-11-23 11:00:07 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc build/sphinx/html examples
|
|
|
|
|
2010-12-04 15:53:00 +00:00
|
|
|
%changelog
|