From edebee43d17641d8e4a577c2e702e402c9bdd90ce8b70d37730d1a214ca80c84 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 30 Sep 2008 02:50:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + paramiko-1.7.4.tar.bz2 | 3 ++ paramiko_language_tag-v2.diff | 45 +++++++++++++++++++++ python-paramiko.changes | 6 +++ python-paramiko.spec | 74 +++++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 152 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 paramiko-1.7.4.tar.bz2 create mode 100644 paramiko_language_tag-v2.diff create mode 100644 python-paramiko.changes create mode 100644 python-paramiko.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/paramiko-1.7.4.tar.bz2 b/paramiko-1.7.4.tar.bz2 new file mode 100644 index 0000000..8d2159e --- /dev/null +++ b/paramiko-1.7.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae12ea0cd24e7e7090a6fed7c4bacd15c5611bae67f4d18aacbd48fa6a7ce1a2 +size 486434 diff --git a/paramiko_language_tag-v2.diff b/paramiko_language_tag-v2.diff new file mode 100644 index 0000000..513a525 --- /dev/null +++ b/paramiko_language_tag-v2.diff @@ -0,0 +1,45 @@ +=== 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) diff --git a/python-paramiko.changes b/python-paramiko.changes new file mode 100644 index 0000000..4af0ca2 --- /dev/null +++ b/python-paramiko.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Sep 24 11:44:21 CEST 2008 - kssingvo@suse.de + +- initial version 1.7.4 required from bzr + based on python-paramiko from openSUSE BuildService: + devel:languages:python/openSUSE_Factory diff --git a/python-paramiko.spec b/python-paramiko.spec new file mode 100644 index 0000000..a485a1a --- /dev/null +++ b/python-paramiko.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-paramiko (Version 1.7.4) +# +# Copyright (c) 2008 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/ +# + +# norootforbuild + + +Name: python-paramiko +Version: 1.7.4 +Release: 1 +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/ +Group: Development/Libraries/Python +License: LGPL v2.1 only +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +Requires: python-crypto >= 1.9 +Provides: paramiko = %{version}-%{release} +%py_requires + +%description +Paramiko is a module for python 2.2 (or higher) that implements the +SSH2 protocol for secure (encrypted and authenticated) connections to +remote machines. + +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 +%setup -q -n "paramiko-%{version}" +%patch1 -p1 + +%build +%__python ./setup.py build + +%install +%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" --record-rpm=files.lst + +%clean +%__rm -rf "%{buildroot}" + +%files -f files.lst +%defattr(-,root,root) +%doc LICENSE README demos docs + +%changelog +* Wed Sep 24 2008 kssingvo@suse.de +- initial version 1.7.4 required from bzr + based on python-paramiko from openSUSE BuildService: + devel:languages:python/openSUSE_Factory diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4