From dbdf3d20f3f01f1400f2a6184ef519745c4c40adfdf7e2851c8fee5d464d6bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Mar 2020 10:25:33 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=25 --- python-cloudpickle.changes | 5 +++++ python-cloudpickle.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-cloudpickle.changes b/python-cloudpickle.changes index d38870f..f743587 100644 --- a/python-cloudpickle.changes +++ b/python-cloudpickle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 16 10:25:19 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Dec 19 11:53:07 CET 2019 - Matej Cepl diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index db01040..a621c56 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -1,7 +1,7 @@ # # spec file for package python-cloudpickle # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-cloudpickle Version: 1.2.2 Release: 0 Summary: Extended pickling support for Python objects License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/cloudpipe/cloudpickle Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-%{version}.tar.gz BuildRequires: %{python_module curses} @@ -35,13 +35,18 @@ BuildRequires: %{python_module scipy} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tornado} BuildRequires: fdupes -BuildRequires: python-futures BuildRequires: python-rpm-macros Requires: python-curses Requires: python-numpy >= 1.8.2 Requires: python-scipy Requires: python-tornado BuildArch: noarch +%if %{with python2} +BuildRequires: python-futures +%endif +%ifpython2 +Requires: python-futures +%endif %python_subpackages %description