diff --git a/disable-gssapi.patch b/disable-gssapi.patch new file mode 100644 index 0000000..839c816 --- /dev/null +++ b/disable-gssapi.patch @@ -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 diff --git a/python-paramiko.changes b/python-paramiko.changes index 85e0741..18e87f5 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 13 11:47:43 UTC 2018 - Ondřej Súkup + +- add disable-gssapi.patch - workaround for boo#1115769 + ------------------------------------------------------------------- Fri Oct 5 08:26:46 UTC 2018 - Ondřej Súkup diff --git a/python-paramiko.spec b/python-paramiko.spec index dc46652..7f54ff5 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -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/