forked from pool/python-eventlet
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eventlet?expand=0&rev=51
This commit is contained in:
@@ -23,7 +23,7 @@ Release: 0
|
|||||||
Summary: Concurrent networking library for Python
|
Summary: Concurrent networking library for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://eventlet.net
|
URL: http://eventlet.net
|
||||||
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
|
||||||
Patch0: 0001-Fix-SSL-connection-reset-errors.patch
|
Patch0: 0001-Fix-SSL-connection-reset-errors.patch
|
||||||
# PATCH-FIX-UPSTREAM PR-459.patch -- https://github.com/eventlet/eventlet/pull/459
|
# PATCH-FIX-UPSTREAM PR-459.patch -- https://github.com/eventlet/eventlet/pull/459
|
||||||
@@ -33,14 +33,13 @@ BuildRequires: %{python_module greenlet}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %python_version_nodots < 34
|
|
||||||
Requires: python-enum34
|
|
||||||
%endif
|
|
||||||
# eventlet parses /etc/protocols which is not available in normal build envs
|
# eventlet parses /etc/protocols which is not available in normal build envs
|
||||||
Requires: netcfg
|
Requires: netcfg
|
||||||
Requires: python-greenlet >= 0.3
|
Requires: python-greenlet >= 0.3
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{python_version_nodots} < 34
|
||||||
|
Requires: python-enum34
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -78,12 +77,11 @@ sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script
|
|||||||
%fdupes %{buildroot}%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc AUTHORS LICENSE NEWS README.rst
|
%doc AUTHORS NEWS README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc build/sphinx/html examples
|
%doc build/sphinx/html examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user