From 381b3cc0662611b2b13ff409331162be44c4e353a64ea704800a6e69745cabf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 24 Apr 2019 09:37:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=2 --- LICENSE | 21 +++++++++++++++++++++ python-paramiko-expect.spec | 27 ++++++++++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..944c8fa --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013 Fotis Gimian + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/python-paramiko-expect.spec b/python-paramiko-expect.spec index 4921127..86a050b 100644 --- a/python-paramiko-expect.spec +++ b/python-paramiko-expect.spec @@ -12,29 +12,31 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-paramiko-expect Version: 0.2.8 Release: 0 -License: MIT Summary: An expect-like extension for the Paramiko SSH library -Url: https://github.com/fgimian/paramiko-expect +License: MIT Group: Development/Languages/Python +URL: https://github.com/fgimian/paramiko-expect Source: https://files.pythonhosted.org/packages/source/p/paramiko-expect/paramiko-expect-%{version}.tar.gz -BuildRequires: python-rpm-macros +Source1: https://raw.githubusercontent.com/fgimian/paramiko-expect/master/LICENSE BuildRequires: %{python_module setuptools} -# SECTION test requirements -BuildRequires: %{python_module paramiko >= 1.10.1} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module pytest} -# /SECTION BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-paramiko >= 1.10.1 BuildArch: noarch - +# SECTION test requirements +BuildRequires: %{python_module contextlib2} +BuildRequires: %{python_module paramiko >= 1.10.1} +BuildRequires: %{python_module pytest} +BuildRequires: python-mock +# /SECTION %python_subpackages %description @@ -47,6 +49,7 @@ extended to support a transport in future for more flexibility). %prep %setup -q -n paramiko-expect-%{version} +cp %{SOURCE1} . %build %python_build @@ -57,10 +60,12 @@ extended to support a transport in future for more flexibility). %check export LANG=en_US.UTF-8 -%python_exec setup.py test +# Needs running ssh server with properly set keys +#%%pytest %files %{python_files} %doc README.rst +%license LICENSE %{python_sitelib}/* %changelog