LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-paramiko.spec of Package python-paramiko (Project home:lenovo-lico:lico-dep:5.1:el6)

# Created by pyp2rpm-3.2.3
%global pypi_name paramiko

Name:           python-%{pypi_name}
Version:        2.3.1
Release:        1%{?dist}
Summary:        SSH2 protocol library for python

License:        LGPL
URL:            https://github.com/paramiko/paramiko/
Source0:        https://pypi.io/packages/source/p/paramiko/paramiko-%{version}.tar.gz
Patch1:         paramiko-2.3.1-disable-gssapi-on-unsupported-version.patch
BuildArch:      noarch
 
BuildRequires:  epel-rpm-macros
BuildRequires:  python2-setuptools

%description
Paramiko (a combination of the Esperanto words for "paranoid" and "friend") is
a module for python 2.3 or greater 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 an
encrypted tunnel (this is how sftp works, for example).

%package -n     python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
 
Requires:       python2-bcrypt >= 3.1.3
Requires:       python2-cryptography >= 1.5
Requires:       python2-pyasn1 >= 0.1.7
Requires:       python2-pynacl >= 1.0.1

%description -n python2-%{pypi_name}
Paramiko (a combination of the Esperanto words for "paranoid" and "friend") is
a module for python 2.3 or greater 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 an
encrypted tunnel (this is how sftp works, for example).


%prep
%setup -n %{pypi_name}-%{version}
%patch1 -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

chmod a-x demos/*
sed -i -e '/^#!/,1d' demos/*

%build
%py2_build

%install
%py2_install


%files -n python2-%{pypi_name}
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%changelog
* Thu Jan 11 2018 <shiyf2@lenovo.com> - 2.3.1-2
- Remove weak deps, paramiko does not support recent gssapi (rhbz #1496148)

* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 2.3.1-1
- Initial package.