14
0

- Do not generate sphinx docu, it is online and now we have only

python3 Sphinx anyway
- Update to 0.25.0:
  * Support for new python and ssl
- Remove patches that are in upstream release:
  * 0001-IMPORTANT-late-import-in-use_hub-thread-race-caused-.patch
  * 0001-ssl-connect-used-non-monotonic-time.time-for-timeout.patch
  * 0002-Fix-for-Python-3.7-506.patch
  * 0003-Fix-compatibility-with-Python-3.7-ssl.SSLSocket-531.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=60
This commit is contained in:
Tomáš Chvátal
2019-06-07 12:27:52 +00:00
committed by Git OBS Bridge
parent 82c5a213c9
commit 4dd14d9320
8 changed files with 29 additions and 1078 deletions

View File

@@ -18,26 +18,22 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet
Version: 0.24.1
Version: 0.25.0
Release: 0
Summary: Concurrent networking library for Python
License: MIT
Group: Development/Languages/Python
URL: http://eventlet.net
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
# PATCH-FIX-UPSTREAM 0001-IMPORTANT-late-import-in-use_hub-thread-race-caused-.patch -- https://github.com/eventlet/eventlet/commit/77bccbe48d4d9a46982b2e0503e76784e76b066a
Patch0: 0001-IMPORTANT-late-import-in-use_hub-thread-race-caused-.patch
# PATCH-FIX-UPSTREAM 0001-ssl-connect-used-non-monotonic-time.time-for-timeout.patch -- https://github.com/eventlet/eventlet/commit/a28a275393d3c3ae3c3a5341cc4764fad21be3e5
Patch1: 0001-ssl-connect-used-non-monotonic-time.time-for-timeout.patch
# PATCH-FIX-UPSTREAM 0002-Fix-for-Python-3.7-506.patch -- https://github.com/eventlet/eventlet/commit/cf47cb518db3e0dbdd48473fb40cf9f6ecd50e07
Patch2: 0002-Fix-for-Python-3.7-506.patch
# PATCH-FIX-UPSTREAM 0003-Fix-compatibility-with-Python-3.7-ssl.SSLSocket-531.patch -- https://github.com/eventlet/eventlet/commit/a915bb642dd6cd4e92c959addff30509977a637c
Patch3: 0003-Fix-compatibility-with-Python-3.7-ssl.SSLSocket-531.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module greenlet}
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module greenlet >= 0.3}
BuildRequires: %{python_module monotonic >= 1.4}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
# eventlet parses /etc/protocols which is not available in normal build envs
Requires: netcfg
@@ -45,6 +41,7 @@ Requires: python-dnspython >= 1.15.0
Requires: python-greenlet >= 0.3
Requires: python-monotonic >= 1.4
Requires: python-six >= 1.10.0
Obsoletes: python-doc
BuildArch: noarch
%if %{python_version_nodots} < 34
Requires: python-enum34
@@ -61,38 +58,24 @@ to threading, but provide the benefits of non-blocking I/O. The event dispatch
is implicit, which means Eventlet can be used from the Python
interpreter, or as part of a larger application.
%package doc
Summary: Documentation for the Eventlet concurrent networking library
Group: Development/Libraries/Python
Requires: %{name} = %{version}
%description doc
Documentation for Eventlet, which is a concurrent networking library
for Python that allows changing how code is run.
%prep
%setup -q -n eventlet-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i '/enum.compat/d' setup.py # crude way to drop the strange "enum-compat" requirement
sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
%build
%python_build
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# 400 out of 600 tests either fail or error out
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
%files %{python_files}
%license LICENSE
%doc AUTHORS NEWS README.rst
%{python_sitelib}/*
%files %{python_files doc}
%doc build/sphinx/html examples
%changelog