From d42395fe9e9827f44776642c2cea5277203e63c1369549a67e5adfa98846c9a1 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Thu, 2 Jan 2014 11:34:20 +0000 Subject: [PATCH] Accepting request 212619 from Cloud:OpenStack:Master - fix testsuite for SLE11 (bnc#855666) OBS-URL: https://build.opensuse.org/request/show/212619 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=25 --- bug-lp-1265482.diff | 11 +++++++++++ python-pyOpenSSL-doc.spec | 2 +- python-pyOpenSSL.changes | 5 +++++ python-pyOpenSSL.spec | 4 +++- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 bug-lp-1265482.diff diff --git a/bug-lp-1265482.diff b/bug-lp-1265482.diff new file mode 100644 index 0000000..6018bb4 --- /dev/null +++ b/bug-lp-1265482.diff @@ -0,0 +1,11 @@ +--- OpenSSL/test/test_crypto.py ++++ OpenSSL/test/test_crypto.py +@@ -608,7 +608,7 @@ + L{PKeyType.generate_key} generates an RSA key when passed + L{TYPE_RSA} as a type and a reasonable number of bits. + """ +- bits = 128 ++ bits = 2048 + key = PKey() + key.generate_key(TYPE_RSA, bits) + self.assertEqual(key.type(), TYPE_RSA) diff --git a/python-pyOpenSSL-doc.spec b/python-pyOpenSSL-doc.spec index 0641d2e..0f749de 100644 --- a/python-pyOpenSSL-doc.spec +++ b/python-pyOpenSSL-doc.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyOpenSSL-doc # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index ed728ae..b9797ea 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 2 11:17:23 UTC 2014 - dmueller@suse.com + +- fix testsuite for SLE11 (bnc#855666) + ------------------------------------------------------------------- Fri Sep 13 14:02:43 UTC 2013 - jmatejek@suse.com diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index 4219455..4236d1b 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyOpenSSL # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ Summary: Python wrapper module around the OpenSSL library License: Apache-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz +Patch0: bug-lp-1265482.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libopenssl-devel BuildRequires: python-devel @@ -44,6 +45,7 @@ High-level wrapper around a subset of the OpenSSL library, includes %prep %setup -q -n pyOpenSSL-%{version} +%patch0 %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build