#
# Conditional build:
%bcond_with apidocs # API docs packaging # Docs gone since 2.0.1 ?
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
Summary: SSH2 protocol for Python 2
Summary(pl.UTF-8): Obsługa protokołu SSH2 w Pythonie 2
Name: python-%{module}
-Version: 2.0.1
-Release: 4
+Version: 2.4.2
+Release: 1
License: LGPL v2.1+
Group: Libraries/Python
#Source0Download: https://pypi.python.org/simple/paramiko/
Source0: https://github.com/paramiko/paramiko/archive/%{version}.tar.gz
-# Source0-md5: 24ee7e64682c2368176607fa23c39a5e
+# Source0-md5: 7de566f1b0a65c59c635ccce7469604b
URL: https://github.com/paramiko/paramiko/
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.710
%if %{with python2}
-BuildRequires: python-cryptography >= 1.1
+BuildRequires: python-PyNaCl >= 1.0.1
+BuildRequires: python-bcrypt >= 3.1.3
+BuildRequires: python-cryptography >= 1.5
BuildRequires: python-devel >= 1:2.6
BuildRequires: python-pyasn1 >= 0.1.7
-
+%{?with_tests:BuildRequires: python-pytest}
%endif
%if %{with python3}
-BuildRequires: python3-cryptography >= 1.1
+BuildRequires: python3-PyNaCl >= 1.0.1
+BuildRequires: python3-bcrypt >= 3.1.3
+BuildRequires: python3-cryptography >= 1.5
BuildRequires: python3-devel >= 1:3.2
BuildRequires: python3-pyasn1 >= 0.1.7
-
+%{?with_tests:BuildRequires: python3-pytest}
%endif
-Requires: python-cryptography >= 1.1
-Requires: python-modules >= 1:2.6
+Requires: python-PyNaCl >= 1.0.1
+Requires: python-bcrypt >= 3.1.3
+Requires: python-cryptography >= 1.5
Requires: python-pyasn1 >= 0.1.7
BuildArch: noarch
Summary: SSH2 protocol for Python 3
Summary(pl.UTF-8): Obsługa protokołu SSH2 w Pythonie 3
Group: Libraries/Python
+Requires: python3-PyNaCl >= 1.0.1
+Requires: python3-bcrypt >= 3.1.3
Requires: python3-cryptography >= 1.1
Requires: python3-modules >= 1:3.2
Requires: python3-pyasn1 >= 0.1.7
%build
%if %{with python2}
-%py_build
-%{?with_tests:LC_ALL=C.UTF-8 %{__python} test.py}
+%py_build %{?with_tests:test}
%endif
%if %{with python3}
-%py3_build
-%{?with_tests:LC_ALL=C.UTF-8 %{__python3} test.py}
+%py3_build %{?with_tests:test}
%endif
%install