From 12bddf47861f7f213d12676ed61f67f6f8b5924a9221e868b19b3790cb0ac077 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:28:59 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=4 --- python-paramiko-expect.changes | 5 +++++ python-paramiko-expect.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-paramiko-expect.changes b/python-paramiko-expect.changes index 0f0cb30..886509b 100644 --- a/python-paramiko-expect.changes +++ b/python-paramiko-expect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 11:28:50 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Apr 15 19:29:53 UTC 2019 - Erico Mendonca diff --git a/python-paramiko-expect.spec b/python-paramiko-expect.spec index 86a050b..2950699 100644 --- a/python-paramiko-expect.spec +++ b/python-paramiko-expect.spec @@ -1,7 +1,7 @@ # # spec file for package python-paramiko-expect # -# 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-paramiko-expect Version: 0.2.8 Release: 0 @@ -35,7 +36,9 @@ BuildArch: noarch BuildRequires: %{python_module contextlib2} BuildRequires: %{python_module paramiko >= 1.10.1} BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python-mock +%endif # /SECTION %python_subpackages