3f290d2
%if 0%{?fedora} > 15
3f290d2
    %global with_python3 1
3f290d2
%endif
3f290d2
75c8171
%global srcname paramiko
Shahms King 6de5a2d
Shahms King 6de5a2d
Name:           python-paramiko
bdf2dca
Version:        1.15.1
3f290d2
Release:        5%{?dist}
75c8171
Summary:        SSH2 protocol library for python
Shahms King 6de5a2d
Shahms King 6de5a2d
Group:          Development/Libraries
e5e8e78
# No version specified.
e5e8e78
License:        LGPLv2+
1327efb
URL:            https://github.com/paramiko/paramiko/
1327efb
Source0:        http://pypi.python.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
Shahms King 6de5a2d
Shahms King 6de5a2d
BuildArch:      noarch
739aeb2
739aeb2
BuildRequires: python-setuptools
0341bf5
BuildRequires: python-crypto >= 2.1
0341bf5
BuildRequires: python-ecdsa
7f11329
BuildRequires: python-devel
0341bf5
Requires:      python-crypto >= 2.1
0341bf5
Requires:      python-ecdsa
Shahms King 6de5a2d
7f11329
%global paramiko_desc \
7f11329
Paramiko (a combination of the esperanto words for "paranoid" and "friend") is\
7f11329
a module for python 2.3 or greater that implements the SSH2 protocol for secure\
7f11329
(encrypted and authenticated) connections to remote machines. Unlike SSL (aka\
7f11329
TLS), the SSH2 protocol does not require heirarchical certificates signed by a\
7f11329
powerful central authority. You may know SSH2 as the protocol that replaced\
7f11329
telnet and rsh for secure access to remote shells, but the protocol also\
7f11329
includes the ability to open arbitrary channels to remote services across an\
7f11329
encrypted tunnel. (This is how sftp works, for example.)\
7f11329
Shahms King 6de5a2d
%description
7f11329
%{paramiko_desc}
7f11329
7f11329
%if 0%{?with_python3}
7f11329
%package -n python3-%{srcname}
7f11329
Summary:        SSH2 protocol library for python
7f11329
BuildRequires: python3-setuptools
7f11329
BuildRequires: python3-crypto >= 2.1
7f11329
BuildRequires: python3-ecdsa
7f11329
BuildRequires: python3-devel
7f11329
Requires:      python3-crypto >= 2.1
7f11329
Requires:      python3-ecdsa
7f11329
%description -n python3-%{srcname}
7f11329
%{paramiko_desc}
7f11329
7f11329
This is the python3 build.
7f11329
%endif
Shahms King 6de5a2d
Shahms King 6de5a2d
%prep
Shahms King 6de5a2d
%setup -q -n %{srcname}-%{version}
75c8171
8a1e89e
%{__chmod} a-x demos/*
e51d373
%{__sed} -i -e '/^#!/,1d' demos/*
1dd8751
%if 0%{?with_python3}
1dd8751
    rm -rf %{py3dir}
1dd8751
    cp -a . %{py3dir}
1dd8751
%endif
Shahms King 6de5a2d
Shahms King 6de5a2d
%build
7f11329
%{__python2} setup.py build
7f11329
7f11329
%if 0%{?with_python3}
c6761c3
    pushd %{py3dir}
7f11329
    %{__python3} setup.py build
c6761c3
    popd
7f11329
%endif
Shahms King 6de5a2d
Shahms King 6de5a2d
%install
7f11329
%{__python2} setup.py install --skip-build --root %{buildroot}
7f11329
%if 0%{?with_python3}
c6761c3
    pushd %{py3dir}
7f11329
    %{__python3} setup.py install --skip-build --root %{buildroot}
c6761c3
    popd
7f11329
%endif
75c8171
75c8171
%check
7f11329
%{__python2} ./test.py --no-sftp --no-big-file
7f11329
%if 0%{?with_python3}
c6761c3
    pushd %{py3dir}
7f11329
    %{__python3} ./test.py --no-sftp --no-big-file
c6761c3
    popd
7f11329
%endif
Shahms King 6de5a2d
Shahms King 6de5a2d
%files
8a1e89e
%doc LICENSE PKG-INFO README docs/ demos/
7f11329
%{python2_sitelib}/*
7f11329
7f11329
%if 0%{?with_python3}
7f11329
%files -n python3-%{srcname}
7f11329
%doc LICENSE PKG-INFO README docs/ demos/
7f11329
%{python3_sitelib}/*
7f11329
%endif
Shahms King 6de5a2d
Shahms King 6de5a2d
%changelog
3f290d2
* Mon Nov 24 2014 Athmane Madjoudj <athmane@fedoraproject.org> 1.15.1-5
3f290d2
- Add conditional to exclude EL since does not have py3
3f290d2
1dd8751
* Sat Nov 15 2014 Athmane Madjoudj <athmane@fedoraproject.org> 1.15.1-4
1dd8751
- py3dir creation should be in prep section
1dd8751
c6761c3
* Fri Nov 14 2014 Athmane Madjoudj <athmane@fedoraproject.org> 1.15.1-3
c6761c3
- Build each pkg in a clean dir
c6761c3
7f11329
* Fri Nov 14 2014 Athmane Madjoudj <athmane@fedoraproject.org> 1.15.1-2
7f11329
- Add support for python3
7f11329
- Add BR -devel for python macros.
7f11329
bdf2dca
* Fri Oct 17 2014 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.15.1-1
bdf2dca
- Update to 1.15.1
bdf2dca
9b09e72
* Fri Jun 13 2014 Orion Poplawski <orion@cora.nwra.com> - 1.12.4-1
9b09e72
- Update to 1.12.4
9b09e72
6ba6328
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12.2-2
6ba6328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6ba6328
0341bf5
* Tue Feb 25 2014 Orion Poplawski <orion@cora.nwra.com> - 1.12.2-1
0341bf5
- Update to 1.12.2
0341bf5
52283d3
* Wed Jan 22 2014 Orion Poplawski <orion@cora.nwra.com> - 1.11.3-1
52283d3
- Update to 1.11.3
52283d3
8a99947
* Mon Oct 21 2013 Orion Poplawski <orion@cora.nwra.com> - 1.11.0-1
8a99947
- Update to 1.11.0
8a99947
729b740
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-2
729b740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
729b740
e2582f7
* Thu May  9 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.10.1-1
e2582f7
- Update to 1.10.1
e2582f7
916589b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
916589b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
916589b
1327efb
* Wed Jan  2 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.9.0-1
1327efb
- Update to 1.9.0
1327efb
7288f20
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.7.1-3
7288f20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7288f20
e807a94
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.7.1-2
e807a94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e807a94
e51d373
* Wed Jul  6 2011 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.7.1-1
e51d373
- v1.7.7.1 (George) 21may11
e51d373
- -------------------------
e51d373
-   * Make the verification phase of SFTP.put optional (Larry Wright)
e51d373
-   * Patches to fix AIX support (anonymous)
e51d373
-   * Patch from Michele Bertoldi to allow compression to be turned on in the
e51d373
-     client constructor.
e51d373
-   * Patch from Shad Sharma to raise an exception if the transport isn't active
e51d373
-     when you try to open a new channel.
e51d373
-   * Stop leaking file descriptors in the SSH agent (John Adams)
e51d373
-   * More fixes for Windows address family support (Andrew Bennetts)
e51d373
-   * Use Crypto.Random rather than Crypto.Util.RandomPool
e51d373
-     (Gary van der Merwe, #271791)
e51d373
-   * Support for openssl keys (tehfink)
e51d373
-   * Fix multi-process support by calling Random.atfork (sugarc0de)
e51d373
25ae2e3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-4
25ae2e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
25ae2e3
75c8171
* Tue Jan 4 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.7.6-3
75c8171
- Patch to address deprecation warning from pycrypto
75c8171
- Simplify build as shown in new python guidelines
75c8171
- Enable test suite
75c8171
e189ea2
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.6-2
e189ea2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e189ea2
924db7f
* Mon Nov  2 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.6-1
924db7f
- v1.7.6 (Fanny) 1nov09
924db7f
- ---------------------
924db7f
-  * fixed bugs 411099 (sftp chdir isn't unicode-safe), 363163 & 411910 (more
924db7f
-    IPv6 problems on windows), 413850 (race when server closes the channel),
924db7f
-    426925 (support port numbers in host keys)
924db7f
10225f4
* Tue Oct 13 2009 Jeremy Katz <katzj@fedoraproject.org> - 1.7.5-2
10225f4
- Fix race condition (#526341)
10225f4
9b69d81
* Thu Jul 23 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.5-1
9b69d81
- v1.7.5 (Ernest) 19jul09
9b69d81
- -----------------------
9b69d81
-  * added support for ARC4 cipher and CTR block chaining (Denis Bernard)
9b69d81
-  * made transport threads daemonize, to fix python 2.6 atexit behavior
9b69d81
-  * support unicode hostnames, and IP6 addresses (Maxime Ripard, Shikhar
9b69d81
-    Bhushan)
9b69d81
-  * various small bug fixes
9b69d81
7f9e09d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-5
7f9e09d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7f9e09d
8a1e89e
* Mon Feb 16 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.4-4
8a1e89e
- Add demos as documentation. BZ#485742
8a1e89e
0450af6
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.7.4-3
0450af6
- Rebuild for Python 2.6
0450af6
e5e8e78
* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.4-2
e5e8e78
- fix license tag
e5e8e78
5bdb7a1
* Sun Jul  6 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.4-1
5bdb7a1
- Update to 1.7.4
5bdb7a1
008c83e
* Mon Mar 24 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.3-1
008c83e
- Update to 1.7.3.
008c83e
d6067ba
* Tue Jan 22 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.2-1
d6067ba
- Update to 1.7.2.
d6067ba
- Remove upstreamed patch.
d6067ba
739aeb2
* Mon Jan 14 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-3
739aeb2
- Update to latest Python packaging guidelines.
739aeb2
- Apply patch that fixes insecure use of RandomPool.
739aeb2
f175887
* Thu Jul 19 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-2
f175887
- Bump rev
f175887
3a49ea4
* Thu Jul 19 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.7.1-1
3a49ea4
- Update to 1.7.1
3a49ea4
81f93b6
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 1.6.4-1
81f93b6
- Update to 1.6.4
81f93b6
- Upstream is now shipping tarballs
81f93b6
- Bump for python 2.5 in devel
81f93b6
aad5769
* Mon Oct  9 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.6.2-1
aad5769
- Update to 1.6.2
aad5769
Shahms King 83493dd
* Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> 1.6.1-3
Shahms King 83493dd
- Rebuild for FC6
Shahms King 83493dd
Shahms King 2dad15e
* Fri Aug 11 2006 Shahms E. King <shahms@shahms.com> 1.6.1-2
Shahms King 2dad15e
- Include, don't ghost .pyo files per new guidelines
Shahms King 2dad15e
Shahms King 731de2e
* Tue Aug 08 2006 Shahms E. King <shahms@shahms.com> 1.6.1-1
Shahms King 731de2e
- Update to new upstream version
Shahms King 731de2e
Shahms King 8c334ed
* Fri Jun 02 2006 Shahms E. King <shahms@shahms.com> 1.6-1
Shahms King 8c334ed
- Update to new upstream version
Shahms King 8c334ed
- ghost the .pyo files
Shahms King 8c334ed
Shahms King 3dc819c
* Fri May 05 2006 Shahms E. King <shahms@shahms.com> 1.5.4-2
Shahms King 3dc819c
- Fix source line and rebuild
Shahms King 3dc819c
Shahms King 5ac2fb1
* Fri May 05 2006 Shahms E. King <shahms@shahms.com> 1.5.4-1
Shahms King 5ac2fb1
- Update to new upstream version
Shahms King 5ac2fb1
Shahms King 6de5a2d
* Wed Apr 12 2006 Shahms E. King <shahms@shahms.com> 1.5.3-1
Shahms King 6de5a2d
  - Initial package