Accepting request 84081 from devel:languages:python
- Update to version 0.7.7: * Various bug fixes (upstream provides no further changes) - OBS-URL: https://build.opensuse.org/request/show/84081 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=10
This commit is contained in:
commit
75f5febcf2
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1c5bbf3469ecc3b7b0d50d43c22409d7f9222fe4f59cbd8f0fdf2d1feb2fafbe
|
|
||||||
size 490567
|
|
3
paramiko-1.7.7.1.zip
Normal file
3
paramiko-1.7.7.1.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:189853a8d96a53f8197b3be8dbd9c288ec17545e8b2c2d0a0883e8c5f9d7df02
|
||||||
|
size 1069179
|
@ -1,45 +0,0 @@
|
|||||||
=== modified file 'paramiko/sftp_server.py'
|
|
||||||
---
|
|
||||||
paramiko/sftp_server.py | 10 ++++++++--
|
|
||||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- a/paramiko/sftp_server.py
|
|
||||||
+++ b/paramiko/sftp_server.py
|
|
||||||
@@ -45,7 +45,7 @@ class SFTPServer (BaseSFTP, SubsystemHan
|
|
||||||
Use L{Transport.set_subsystem_handler} to activate this class.
|
|
||||||
"""
|
|
||||||
|
|
||||||
- def __init__(self, channel, name, server, sftp_si=SFTPServerInterface, *largs, **kwargs):
|
|
||||||
+ def __init__(self, channel, name, server, sftp_si=SFTPServerInterface, language=None, *largs, **kwargs):
|
|
||||||
"""
|
|
||||||
The constructor for SFTPServer is meant to be called from within the
|
|
||||||
L{Transport} as a subsystem handler. C{server} and any additional
|
|
||||||
@@ -62,6 +62,9 @@ class SFTPServer (BaseSFTP, SubsystemHan
|
|
||||||
@param sftp_si: a subclass of L{SFTPServerInterface} to use for handling
|
|
||||||
individual requests.
|
|
||||||
@type sftp_si: class
|
|
||||||
+ @param language: RFC 1766-compliant language code; errors given to the
|
|
||||||
+ client should be in this language.
|
|
||||||
+ @type language: str
|
|
||||||
"""
|
|
||||||
BaseSFTP.__init__(self)
|
|
||||||
SubsystemHandler.__init__(self, channel, name, server)
|
|
||||||
@@ -73,6 +76,9 @@ class SFTPServer (BaseSFTP, SubsystemHan
|
|
||||||
self.file_table = { }
|
|
||||||
self.folder_table = { }
|
|
||||||
self.server = sftp_si(server, *largs, **kwargs)
|
|
||||||
+ if language in (None, 'C'):
|
|
||||||
+ language = ''
|
|
||||||
+ self.language = language
|
|
||||||
|
|
||||||
def _log(self, level, msg):
|
|
||||||
if issubclass(type(msg), list):
|
|
||||||
@@ -209,7 +215,7 @@ class SFTPServer (BaseSFTP, SubsystemHan
|
|
||||||
except IndexError:
|
|
||||||
desc = 'Unknown'
|
|
||||||
# some clients expect a "langauge" tag at the end (but don't mind it being blank)
|
|
||||||
- self._response(request_number, CMD_STATUS, code, desc, '')
|
|
||||||
+ self._response(request_number, CMD_STATUS, code, desc, self.language)
|
|
||||||
|
|
||||||
def _open_folder(self, request_number, path):
|
|
||||||
resp = self.server.list_folder(path)
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 20 14:30:25 UTC 2011 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.7.7:
|
||||||
|
* Various bug fixes (upstream provides no further changes)
|
||||||
|
-
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 5 08:20:00 UTC 2010 - nix@opensuse.org
|
Tue Oct 5 08:20:00 UTC 2010 - nix@opensuse.org
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-paramiko (Version 1.7.6)
|
# spec file for package python-paramiko
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,59 +15,47 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-paramiko
|
Name: python-paramiko
|
||||||
Version: 1.7.6
|
Version: 1.7.7.1
|
||||||
Release: 2
|
Release: 0
|
||||||
Summary: SSH2 Module for Python
|
|
||||||
Source: http://www.lag.net/paramiko/download/paramiko-%{version}.tar.bz2
|
|
||||||
Patch1: http://launchpadlibrarian.net/14343610/paramiko_language_tag-v2.diff
|
|
||||||
Url: http://www.lag.net/paramiko/
|
Url: http://www.lag.net/paramiko/
|
||||||
Group: Development/Libraries/Python
|
Summary: SSH2 protocol library
|
||||||
License: LGPLv2.1
|
License: LGPL-2.1+
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: http://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.zip
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: python-crypto >= 2.1
|
BuildRequires: unzip
|
||||||
Provides: paramiko = %{version}-%{release}
|
Requires: python-pycrypto >= 2.1
|
||||||
%if %suse_version > 1120
|
%if 0%{?suse_version}
|
||||||
|
%py_requires
|
||||||
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%py_requires
|
%endif
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Paramiko is a module for python 2.2 (or higher) that implements the
|
This is a library for making SSH2 connections (client or server).
|
||||||
SSH2 protocol for secure (encrypted and authenticated) connections to
|
Emphasis is on using SSH2 as an alternative to SSL for making secure
|
||||||
remote machines.
|
connections between python scripts. All major ciphers and hash methods
|
||||||
|
are supported. SFTP client and server mode are both supported too.
|
||||||
Unlike SSL (aka TLS), the SSH2 protocol does not require hierarchical
|
|
||||||
certificates signed by a powerful central authority. you may know SSH2
|
|
||||||
as the protocol that replaced telnet and rsh for secure access to
|
|
||||||
remote shells, but the protocol also includes the ability to open
|
|
||||||
arbitrary channels to remote services across the encrypted tunnel --
|
|
||||||
this is how sftp works, for example.
|
|
||||||
|
|
||||||
It is written entirely in python (no C or platform-dependent code) and
|
|
||||||
is released under the GNU LGPL (lesser GPL).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "paramiko-%{version}"
|
%setup -q -n paramiko-%{version}
|
||||||
%patch1 -p1
|
sed -i "1d" demos/{rforward,demo_simple,demo_sftp,demo}.py # Fix doc-file-dependency
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__python ./setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" --record-rpm=files.lst
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
%files
|
||||||
%__rm -rf "%{buildroot}"
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%files -f files.lst
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc LICENSE README demos docs
|
%doc LICENSE README demos docs
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user