[packages/python-eventlet] - updated to 0.23.0 - removed outdated deps patch, use sed hack to avoid python3-enum34 dependency
qboosh
qboosh at pld-linux.org
Sun Jul 29 19:11:40 CEST 2018
commit f78da2d83aae6b78344ca8ac71bb67f15e1bec06
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 29 19:13:26 2018 +0200
- updated to 0.23.0
- removed outdated deps patch, use sed hack to avoid python3-enum34 dependency
python-eventlet-deps.patch | 31 -------------------------------
python-eventlet.spec | 19 ++++++++++---------
2 files changed, 10 insertions(+), 40 deletions(-)
---
diff --git a/python-eventlet.spec b/python-eventlet.spec
index 5804e2c..2018150 100644
--- a/python-eventlet.spec
+++ b/python-eventlet.spec
@@ -8,17 +8,17 @@
Summary: Highly concurrent networking library for Python 2
Summary(pl.UTF-8): Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
Name: python-eventlet
-Version: 0.21.0
-Release: 2
+Version: 0.23.0
+Release: 1
License: MIT
Group: Development/Languages/Python
-#Source0Download: https://pypi.python.org/simple/eventlet/
+#Source0Download: https://pypi.org/simple/eventlet/
Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
-# Source0-md5: 92aaac4c0abaddff9329f55d8f5bcd76
-Patch0: %{name}-deps.patch
-URL: https://pypi.python.org/pypi/eventlet/
+# Source0-md5: 9b459a4d3b1365febd0d22cf71b9e7ce
+URL: https://pypi.org/project/eventlet/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
%if %{with python2}
BuildRequires: python-devel >= 1:2.6
BuildRequires: python-setuptools >= 5.4.1
@@ -109,7 +109,6 @@ Dokumentacja API modułu eventlet.
%prep
%setup -q -n eventlet-%{version}
-%patch0 -p1
%build
%if %{with python2}
@@ -126,7 +125,6 @@ Dokumentacja API modułu eventlet.
%if %{with doc}
%{__make} -C doc -j1 html
-%{__rm} -r doc/_build/html/_sources
%endifg
%install
@@ -140,6 +138,9 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%py3_install
+
+%if "%{py3_ver}" >= "3.4"
+%{__sed} -i -e '/^\[:python_version *< *"3\.4"]/,$ d' $RPM_BUILD_ROOT%{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info/requires.txt
%endif
%clean
@@ -164,5 +165,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc doc/_build/html/*
+%doc doc/_build/html/{_images,_static,modules,*.html,*.js}
%endif
diff --git a/python-eventlet-deps.patch b/python-eventlet-deps.patch
deleted file mode 100644
index 2509c80..0000000
--- a/python-eventlet-deps.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- eventlet-0.21.0/setup.py.orig 2017-04-06 00:33:03.000000000 +0200
-+++ eventlet-0.21.0/setup.py 2017-04-17 09:47:43.234992968 +0200
-@@ -1,11 +1,16 @@
- #!/usr/bin/env python
- import os
- import setuptools
-+import sys
-
-
- os.environ.setdefault('EVENTLET_IMPORT_VERSION_ONLY', '1')
- import eventlet
-
-+required = ["greenlet >= 0.3"]
-+if (sys.version_info.major, sys.version_info.minor) < (3, 4):
-+ required.append("enum34")
-+
- setuptools.setup(
- name='eventlet',
- version=eventlet.__version__,
-@@ -14,10 +19,7 @@
- author_email='eventletdev at lists.secondlife.com',
- url='http://eventlet.net',
- packages=setuptools.find_packages(exclude=['benchmarks', 'tests', 'tests.*']),
-- install_requires=(
-- 'enum-compat',
-- 'greenlet >= 0.3',
-- ),
-+ install_requires=required,
- zip_safe=False,
- long_description=open(
- os.path.join(
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-eventlet.git/commitdiff/f78da2d83aae6b78344ca8ac71bb67f15e1bec06
More information about the pld-cvs-commit
mailing list