15
0
forked from pool/python-pamqp

Accepting request 796484 from devel:languages:python

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/796484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pamqp?expand=0&rev=6
This commit is contained in:
2020-04-23 16:35:07 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 23 10:35:35 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Fri Apr 26 10:04:09 UTC 2019 - pgajdos@suse.com

View File

@@ -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