From 1b7231f539283bd4597b695c5b46eaeb6c8d18cfe904994557219e2584207655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 11:57:08 +0000 Subject: [PATCH] - Fix condition for py2 only packages OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-core?expand=0&rev=23 --- python-google-api-core.changes | 5 +++++ python-google-api-core.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-google-api-core.changes b/python-google-api-core.changes index 830f920..b25d696 100644 --- a/python-google-api-core.changes +++ b/python-google-api-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 11:56:55 UTC 2020 - Tomáš Chvátal + +- Fix condition for py2 only packages + ------------------------------------------------------------------- Wed Apr 8 07:20:04 UTC 2020 - Marketa Calabkova diff --git a/python-google-api-core.spec b/python-google-api-core.spec index dc3a5d9..c7ca642 100644 --- a/python-google-api-core.spec +++ b/python-google-api-core.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-google-api-core Version: 1.16.0 Release: 0 @@ -48,7 +49,7 @@ Requires: python-setuptools >= 34.0.0 Requires: python-six >= 1.10.0 Suggests: python-grpcio-gcp >= 0.2.2 BuildArch: noarch -%ifpython2 +%if %{with python2} BuildRequires: python2-enum34 BuildRequires: python2-futures >= 3.2.0 %endif