From fa85f03f7f90dd1ea0f1fbd2720c32ed3fa2d2506797e04f51a4120a37d2ca0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 22 Apr 2020 10:05:41 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cassandra-driver?expand=0&rev=37 --- python-cassandra-driver.changes | 5 +++++ python-cassandra-driver.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-cassandra-driver.changes b/python-cassandra-driver.changes index 21489d9..bf470a1 100644 --- a/python-cassandra-driver.changes +++ b/python-cassandra-driver.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 22 10:05:27 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Apr 7 09:05:31 UTC 2020 - Dirk Mueller diff --git a/python-cassandra-driver.spec b/python-cassandra-driver.spec index c6380b3..f6ef353 100644 --- a/python-cassandra-driver.spec +++ b/python-cassandra-driver.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-cassandra-driver Version: 3.23.0 Release: 0 @@ -42,7 +43,6 @@ BuildRequires: %{python_module sure} BuildRequires: fdupes BuildRequires: libev-devel BuildRequires: python-rpm-macros -BuildRequires: python2-futures Requires: python-Cython Requires: python-blist Requires: python-geomet >= 0.1 @@ -50,6 +50,9 @@ Requires: python-six >= 1.9 Recommends: python-Twisted Recommends: python-eventlet Recommends: python-gevent +%if %{with python2} +BuildRequires: python2-futures +%endif %ifpython2 Requires: python2-futures %endif