14
0

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:
Jan Matejek
2017-09-05 09:39:53 +00:00
committed by Git OBS Bridge
parent b045d045bc
commit 1d253b8902
2 changed files with 33 additions and 19 deletions

View File

@@ -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 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) - initial package (version 0.9.9)

View File

@@ -16,26 +16,27 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eventlet Name: python-eventlet
Version: 0.20.1 Version: 0.20.1
Release: 0 Release: 0
Url: http://eventlet.net
Summary: Highly concurrent networking library Summary: Highly concurrent networking library
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.io/packages/source/e/eventlet/eventlet-%{version}.tar.gz Url: http://eventlet.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
BuildRequires: python-Sphinx BuildRequires: %{python_module Sphinx}
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-greenlet BuildRequires: %{python_module greenlet}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
Requires: python-enum-compat BuildRequires: python-rpm-macros
Requires: python-greenlet >= 0.3 %if %python_version_nodots < 34
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 Requires: python-enum34
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif %endif
Requires: python-greenlet >= 0.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description %description
Eventlet is a concurrent networking library for Python that allows you to 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 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. for Python that allows you to change how you run your code, not how you write it.
%prep %prep
%setup -q -n eventlet-%{version} %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 sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
%build %build
python setup.py build %python_build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS LICENSE NEWS README.rst %doc AUTHORS LICENSE NEWS README.rst
%{python_sitelib}/* %{python_sitelib}/*
%files doc %files %{python_files doc}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc build/sphinx/html examples %doc build/sphinx/html examples