forked from pool/python-eventlet
Accepting request 521055 from devel:languages:python:singlespec-staging
- remove dependency on metapackage "enum-compat" in favor of specifying this requirement the usual way via RPM requirement conditional on version - singlespec auto-conversion OBS-URL: https://build.opensuse.org/request/show/521055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=36
This commit is contained in:
committed by
Git OBS Bridge
parent
b045d045bc
commit
1d253b8902
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 5 09:30:33 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- remove dependency on metapackage "enum-compat" in favor of
|
||||
specifying this requirement the usual way via RPM requirement
|
||||
conditional on version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 24 13:38:29 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- singlespec auto-conversion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 18:10:38 UTC 2017 - dmueller@suse.com
|
||||
|
||||
@@ -246,3 +258,4 @@ Fri Nov 26 14:44:42 UTC 2010 - seife+obs@b1-systems.com
|
||||
|
||||
- initial package (version 0.9.9)
|
||||
|
||||
|
||||
|
@@ -16,26 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-eventlet
|
||||
Version: 0.20.1
|
||||
Release: 0
|
||||
Url: http://eventlet.net
|
||||
Summary: Highly concurrent networking library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-greenlet
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python-enum-compat
|
||||
Requires: python-greenlet >= 0.3
|
||||
%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
|
||||
BuildArch: noarch
|
||||
Url: http://eventlet.net
|
||||
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module greenlet}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %python_version_nodots < 34
|
||||
Requires: python-enum34
|
||||
%endif
|
||||
Requires: python-greenlet >= 0.3
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Eventlet is a concurrent networking library for Python that allows you to
|
||||
@@ -56,24 +57,24 @@ Requires: %{name} = %{version}
|
||||
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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n eventlet-%{version}
|
||||
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 setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
%python_build
|
||||
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS LICENSE NEWS README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%files %{python_files doc}
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html examples
|
||||
|
||||
|
Reference in New Issue
Block a user