From f123e7182b5b2bf6b36d2589cbcc4efc35402980234bca5c8c6cd99daaa67699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 12:52:18 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-s3transfer?expand=0&rev=17 --- python-s3transfer.changes | 5 +++++ python-s3transfer.spec | 3 +++ 2 files changed, 8 insertions(+) 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