]> git.pld-linux.org Git - packages/python-paramiko.git/commitdiff
up to 2.4.2 auto/th/python-paramiko-2.4.2-1
authorJan Palus <atler@pld-linux.org>
Sun, 31 Mar 2019 18:29:25 +0000 (20:29 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 31 Mar 2019 18:29:25 +0000 (20:29 +0200)
- 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

python-paramiko.spec

index 38ff5b725e64442c7c648bf7939de502f27e5dc2..4225a6903311c2fb7df8f15fada223b50e77b192 100644 (file)
@@ -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
This page took 0.290968 seconds and 4 git commands to generate.