From a3a514d0f407d72e0337f20c86a27abf449cc15ee5c8b7951bd30be1e0a4e3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 23 Apr 2020 10:39:56 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=7 --- python-oci-sdk.changes | 5 +++++ python-oci-sdk.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-oci-sdk.changes b/python-oci-sdk.changes index 248bdc0..64fb9a8 100644 --- a/python-oci-sdk.changes +++ b/python-oci-sdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 10:38:47 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Mar 16 10:41:25 UTC 2020 - John Paul Adrian Glaubitz diff --git a/python-oci-sdk.spec b/python-oci-sdk.spec index 02c0aa9..d3fca83 100644 --- a/python-oci-sdk.spec +++ b/python-oci-sdk.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-oci-sdk Version: 2.11.0 Release: 0 @@ -55,7 +56,7 @@ BuildRequires: %{python_module pytz >= 2016.10} BuildRequires: %{python_module requests} BuildRequires: %{python_module six} BuildRequires: %{python_module vcrpy} -%ifpython2 +%if %{with python2} BuildRequires: python-configparser >= 3.5.0 %endif # /SECTION