diff --git a/python-eventlet.spec b/python-eventlet.spec index 2a5ff91..66c95b7 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -23,7 +23,7 @@ Release: 0 Summary: Concurrent networking library for Python License: MIT 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 Patch0: 0001-Fix-SSL-connection-reset-errors.patch # 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: fdupes 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 Requires: netcfg Requires: python-greenlet >= 0.3 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%if %{python_version_nodots} < 34 +Requires: python-enum34 +%endif %python_subpackages %description @@ -78,12 +77,11 @@ sed -i "s|^#!.*||" eventlet/support/greendns.py # Fix non-executable script %fdupes %{buildroot}%{_prefix} %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS LICENSE NEWS README.rst +%license LICENSE +%doc AUTHORS NEWS README.rst %{python_sitelib}/* %files %{python_files doc} -%defattr(-,root,root,-) %doc build/sphinx/html examples %changelog