From: Jan Palus Date: Sun, 31 Mar 2019 18:29:25 +0000 (+0200) Subject: up to 2.4.2 X-Git-Tag: auto/th/python-paramiko-2.4.2-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=99d408b31de7d64f426ea94fe17db65fe3107476;p=packages%2Fpython-paramiko.git up to 2.4.2 - disable tests by default -- dependency on pytest-relaxed that is not compatible with current pytest and tests failed anyway due to some missing GSS stuff --- diff --git a/python-paramiko.spec b/python-paramiko.spec index 38ff5b7..4225a69 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -1,7 +1,7 @@ # # 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 @@ -9,31 +9,36 @@ 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 @@ -53,6 +58,8 @@ połączeń ze zdalnymi maszynami. 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 @@ -88,13 +95,11 @@ find demos -name '*.py' -type f | xargs sed -i -e '1s|#!.*python.*|#!%{_bindir}/ %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