diff --git a/python-s3transfer.changes b/python-s3transfer.changes index fac2e7b..ae7aafb 100644 --- a/python-s3transfer.changes +++ b/python-s3transfer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 12:52:07 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Mar 10 09:45:34 UTC 2020 - Tomáš Chvátal diff --git a/python-s3transfer.spec b/python-s3transfer.spec index 5d255b6..e4860a2 100644 --- a/python-s3transfer.spec +++ b/python-s3transfer.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-s3transfer Version: 0.3.3 Release: 0 @@ -33,7 +34,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module urllib3} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with python2} BuildRequires: python2-futures >= 2.2.0 +%endif Requires: python-botocore <= 2.0.0 Requires: python-botocore >= 1.12.36 Requires: python-requests