From 960e0f330e586dac8c97df8902750ac54679e82858a13c1b5730f1168b0bdd44 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:36:20 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pamqp?expand=0&rev=16 --- python-pamqp.changes | 5 +++++ python-pamqp.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-pamqp.changes b/python-pamqp.changes index 9c49971..df8022f 100644 --- a/python-pamqp.changes +++ b/python-pamqp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 10:35:35 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Apr 26 10:04:09 UTC 2019 - pgajdos@suse.com diff --git a/python-pamqp.spec b/python-pamqp.spec index 8faeaba..6006350 100644 --- a/python-pamqp.spec +++ b/python-pamqp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pamqp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pamqp Version: 2.3.0 Release: 0 @@ -25,13 +26,14 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/gmr/pamqp Source: https://github.com/gmr/pamqp/archive/%{version}.tar.gz -BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python-unittest2 BuildArch: noarch +%if %{with python2} +BuildRequires: python-unittest2 +%endif %python_subpackages %description