2008-09-30 02:50:30 +00:00
|
|
|
#
|
2011-09-21 09:12:24 +00:00
|
|
|
# spec file for package python-paramiko
|
2008-09-30 02:50:30 +00:00
|
|
|
#
|
2011-09-21 09:12:24 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-30 02:50:30 +00:00
|
|
|
#
|
|
|
|
# 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
|
2011-09-21 09:12:24 +00:00
|
|
|
Version: 1.7.7.1
|
|
|
|
Release: 0
|
2008-09-30 02:50:30 +00:00
|
|
|
Url: http://www.lag.net/paramiko/
|
2011-09-21 09:12:24 +00:00
|
|
|
Summary: SSH2 protocol library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.zip
|
2008-09-30 02:50:30 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python-devel
|
2011-09-21 09:12:24 +00:00
|
|
|
BuildRequires: unzip
|
|
|
|
Requires: python-pycrypto >= 2.1
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%py_requires
|
|
|
|
%if 0%{?suse_version} > 1110
|
2010-09-17 23:45:34 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2011-09-21 09:12:24 +00:00
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2008-09-30 02:50:30 +00:00
|
|
|
|
|
|
|
%description
|
2011-09-21 09:12:24 +00:00
|
|
|
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.
|
2008-09-30 02:50:30 +00:00
|
|
|
|
|
|
|
%prep
|
2011-09-21 09:12:24 +00:00
|
|
|
%setup -q -n paramiko-%{version}
|
|
|
|
sed -i "1d" demos/{rforward,demo_simple,demo_sftp,demo}.py # Fix doc-file-dependency
|
2008-09-30 02:50:30 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-21 09:12:24 +00:00
|
|
|
python setup.py build
|
2008-09-30 02:50:30 +00:00
|
|
|
|
|
|
|
%install
|
2011-09-21 09:12:24 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2008-09-30 02:50:30 +00:00
|
|
|
|
2011-09-21 09:12:24 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2008-09-30 02:50:30 +00:00
|
|
|
%doc LICENSE README demos docs
|
2011-09-21 09:12:24 +00:00
|
|
|
%{python_sitelib}/*
|
2008-09-30 02:50:30 +00:00
|
|
|
|
|
|
|
%changelog
|