File python27-paramiko.spec of Package python-paramiko

# Created by pyp2rpm-3.2.3
%global pypi_name paramiko

Name:           python27-%{pypi_name}
Version:        2.4.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:  python27-devel
BuildRequires:  python27-setuptools

Requires:       python27-bcrypt >= 3.1.3
Requires:       python27-cryptography >= 1.5
Requires:       python27-pyasn1 >= 0.1.7
Requires:       python27-pynacl >= 1.0.1

%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).

%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
%py27_build

%install
%py27_install

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

%changelog
* Fri Mar 16 2018 Paul Howarth <paul@city-fan.org> - 2.4.1-1
- Update to 2.4.1

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

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