Accepting request 648723 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/648723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=40
This commit is contained in:
Dominique Leuenberger 2018-11-18 22:21:24 +00:00 committed by Git OBS Bridge
commit 0459510aef
3 changed files with 20 additions and 0 deletions

13
disable-gssapi.patch Normal file
View File

@ -0,0 +1,13 @@
Index: paramiko-2.4.2/paramiko/ssh_gss.py
===================================================================
--- paramiko-2.4.2.orig/paramiko/ssh_gss.py
+++ paramiko-2.4.2/paramiko/ssh_gss.py
@@ -53,7 +53,7 @@ try:
import gssapi
GSS_EXCEPTIONS = (gssapi.GSSException,)
-except (ImportError, OSError):
+except (ImportError, OSError, AttributeError):
try:
import pywintypes
import sspicon

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 13 11:47:43 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>
- add disable-gssapi.patch - workaround for boo#1115769
-------------------------------------------------------------------
Fri Oct 5 08:26:46 UTC 2018 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@ -29,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/p/paramiko/parami
# certificates needed by testsuite
Source1: cert_support.tar.gz
Patch0: paramiko-test_extend_timeout.patch
Patch1: disable-gssapi.patch
BuildRequires: %{python_module PyNaCl >= 1.0.1}
BuildRequires: %{python_module bcrypt >= 3.1.3}
BuildRequires: %{python_module cryptography >= 1.1}
@ -71,6 +72,7 @@ This package contains the documentation.
%prep
%setup -q -n paramiko-%{version}
%patch0 -p1
%patch1 -p1
# Fix non-executable script rpmlint issue:
find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
tar xvzf %{SOURCE1} -C tests/