15
0
Files
python-paramiko/python-paramiko.spec

63 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-paramiko
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
Name: python-paramiko
- Update to version 1.9.0: + #97 (with a little #93): Improve config parsing of ProxyCommand directives and provide a wrapper class to allow subprocess-driven proxy commands to be used as sock= arguments for SSHClient.connect. + #77: Allow SSHClient.connect() to take an explicit sock parameter overriding creation of an internal, implicit socket object. - Changes from version 1.8.1: + #90: Ensure that callbacks handed to SFTPClient.get() always fire at least once, even for zero-length files downloaded. Thanks to Github user @enB for the catch. + #85: Paramiko's test suite overrides unittest.TestCase.assertTrue/assertFalse to provide these modern assertions to Python 2.2/2.3, which lacked them. However on newer Pythons such as 2.7, this now causes deprecation warnings. The overrides have been patched to only execute when necessary. Thanks to @Arfrever for catch & patch. - Changes from version 1.8.0: + #17 ('ssh' 28): Fix spurious NoneType has no attribute 'error' and similar exceptions that crop up on interpreter exit. + 'ssh' 32: Raise a more useful error explaining which known_hosts key line was problematic, when encountering binascii issues decoding known host keys. Thanks to @thomasvs for catch & patch. + 'ssh' 33: Bring ssh_config parsing more in line with OpenSSH spec, re: order of setting overrides by Host specifiers. Specifically, the overrides now go by file order instead of automatically sorting by Host value length. In addition, the first value found per config key (e.g. Port, User etc) wins, instead of the last. Thanks to Jan Brauer for the contribution. + 'ssh' 36: Support new server two-factor authentication option (RequiredAuthentications2), at least re: combining key-based & password auth. Thanks to Github user bninja. + 'ssh' 11: When raising an exception for hosts not listed in OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=24
2012-12-10 08:30:27 +00:00
Version: 1.9.0
Release: 0
Url: http://www.lag.net/paramiko/
Summary: SSH2 protocol library
License: LGPL-2.1+
Group: Development/Languages/Python
- Update to version 1.9.0: + #97 (with a little #93): Improve config parsing of ProxyCommand directives and provide a wrapper class to allow subprocess-driven proxy commands to be used as sock= arguments for SSHClient.connect. + #77: Allow SSHClient.connect() to take an explicit sock parameter overriding creation of an internal, implicit socket object. - Changes from version 1.8.1: + #90: Ensure that callbacks handed to SFTPClient.get() always fire at least once, even for zero-length files downloaded. Thanks to Github user @enB for the catch. + #85: Paramiko's test suite overrides unittest.TestCase.assertTrue/assertFalse to provide these modern assertions to Python 2.2/2.3, which lacked them. However on newer Pythons such as 2.7, this now causes deprecation warnings. The overrides have been patched to only execute when necessary. Thanks to @Arfrever for catch & patch. - Changes from version 1.8.0: + #17 ('ssh' 28): Fix spurious NoneType has no attribute 'error' and similar exceptions that crop up on interpreter exit. + 'ssh' 32: Raise a more useful error explaining which known_hosts key line was problematic, when encountering binascii issues decoding known host keys. Thanks to @thomasvs for catch & patch. + 'ssh' 33: Bring ssh_config parsing more in line with OpenSSH spec, re: order of setting overrides by Host specifiers. Specifically, the overrides now go by file order instead of automatically sorting by Host value length. In addition, the first value found per config key (e.g. Port, User etc) wins, instead of the last. Thanks to Jan Brauer for the contribution. + 'ssh' 36: Support new server two-factor authentication option (RequiredAuthentications2), at least re: combining key-based & password auth. Thanks to Github user bninja. + 'ssh' 11: When raising an exception for hosts not listed in OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=24
2012-12-10 08:30:27 +00:00
Source: http://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-pycrypto >= 2.1
BuildRequires: unzip
Requires: python-pycrypto >= 2.1
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
This is a library for making SSH2 connections (client or server).
Emphasis is on using SSH2 as an alternative to SSL for making secure
connections between python scripts. All major ciphers and hash methods
are supported. SFTP client and server mode are both supported too.
%prep
%setup -q -n paramiko-%{version}
- Update to version 1.9.0: + #97 (with a little #93): Improve config parsing of ProxyCommand directives and provide a wrapper class to allow subprocess-driven proxy commands to be used as sock= arguments for SSHClient.connect. + #77: Allow SSHClient.connect() to take an explicit sock parameter overriding creation of an internal, implicit socket object. - Changes from version 1.8.1: + #90: Ensure that callbacks handed to SFTPClient.get() always fire at least once, even for zero-length files downloaded. Thanks to Github user @enB for the catch. + #85: Paramiko's test suite overrides unittest.TestCase.assertTrue/assertFalse to provide these modern assertions to Python 2.2/2.3, which lacked them. However on newer Pythons such as 2.7, this now causes deprecation warnings. The overrides have been patched to only execute when necessary. Thanks to @Arfrever for catch & patch. - Changes from version 1.8.0: + #17 ('ssh' 28): Fix spurious NoneType has no attribute 'error' and similar exceptions that crop up on interpreter exit. + 'ssh' 32: Raise a more useful error explaining which known_hosts key line was problematic, when encountering binascii issues decoding known host keys. Thanks to @thomasvs for catch & patch. + 'ssh' 33: Bring ssh_config parsing more in line with OpenSSH spec, re: order of setting overrides by Host specifiers. Specifically, the overrides now go by file order instead of automatically sorting by Host value length. In addition, the first value found per config key (e.g. Port, User etc) wins, instead of the last. Thanks to Jan Brauer for the contribution. + 'ssh' 36: Support new server two-factor authentication option (RequiredAuthentications2), at least re: combining key-based & password auth. Thanks to Github user bninja. + 'ssh' 11: When raising an exception for hosts not listed in OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=24
2012-12-10 08:30:27 +00:00
sed -i "/#!.*/d" demos/{demo_keygen,rforward,demo_simple,demo_sftp,demo}.py # Fix doc-file-dependency
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python test.py
%files
%defattr(-,root,root)
%doc LICENSE README demos docs
%{python_sitelib}/*
%changelog