forked from pool/python-paramiko-expect
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
b81c143da6
commit
12bddf4786
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user