forked from pool/python-paramiko-expect
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
926e069d23
commit
381b3cc066
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -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.
|
@@ -12,29 +12,31 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-paramiko-expect
|
Name: python-paramiko-expect
|
||||||
Version: 0.2.8
|
Version: 0.2.8
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
|
||||||
Summary: An expect-like extension for the Paramiko SSH library
|
Summary: An expect-like extension for the Paramiko SSH library
|
||||||
Url: https://github.com/fgimian/paramiko-expect
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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
|
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}
|
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: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-paramiko >= 1.10.1
|
Requires: python-paramiko >= 1.10.1
|
||||||
BuildArch: noarch
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -47,6 +49,7 @@ extended to support a transport in future for more flexibility).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n paramiko-expect-%{version}
|
%setup -q -n paramiko-expect-%{version}
|
||||||
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -57,10 +60,12 @@ extended to support a transport in future for more flexibility).
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_exec setup.py test
|
# Needs running ssh server with properly set keys
|
||||||
|
#%%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user