diff --git a/bug-lp-1265482.diff b/bug-lp-1265482.diff index 6018bb4..b050b67 100644 --- a/bug-lp-1265482.diff +++ b/bug-lp-1265482.diff @@ -1,8 +1,10 @@ ---- OpenSSL/test/test_crypto.py +Index: OpenSSL/test/test_crypto.py +=================================================================== +--- OpenSSL/test/test_crypto.py.orig +++ 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. +@@ -627,7 +627,7 @@ class PKeyTests(TestCase): + :py:meth:`PKeyType.generate_key` generates an RSA key when passed + :py:data:`TYPE_RSA` as a type and a reasonable number of bits. """ - bits = 128 + bits = 2048 diff --git a/pyOpenSSL-0.13.1.tar.gz b/pyOpenSSL-0.13.1.tar.gz deleted file mode 100644 index e772d7c..0000000 --- a/pyOpenSSL-0.13.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba06ec710414f6dfe5566ec24c81882547c3e6fc48458d64315b73a0d5142fdb -size 254431 diff --git a/pyOpenSSL-0.15.1.tar.gz b/pyOpenSSL-0.15.1.tar.gz new file mode 100644 index 0000000..da14bed --- /dev/null +++ b/pyOpenSSL-0.15.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672 +size 149887 diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index 2fa9dc2..01a4ead 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Wed Apr 22 09:50:09 UTC 2015 - mcihar@suse.cz + +- Do not hardcode version in file list + +------------------------------------------------------------------- +Wed Apr 22 09:42:53 UTC 2015 - mcihar@suse.cz + +- udapte to 0.15.1 + * OpenSSL/SSL.py, OpenSSL/test/test_ssl.py: Fix a regression + present in 0.15, where when an error occurs and no errno() is set, + a KeyError is raised. This happens, for example, if + Connection.shutdown() is called when the underlying transport has + gone away. + * OpenSSL/rand.py, OpenSSL/SSL.py: APIs which previously accepted + filenames only as bytes now accept them as either bytes or + unicode (and respect sys.getfilesystemencoding()). + * OpenSSL/SSL.py: Add Cory Benfield's next-protocol-negotiation + (NPN) bindings. + * OpenSSL/SSL.py: Add ``Connection.recv_into``, mirroring the + builtin ``socket.recv_into``. Based on work from Cory Benfield. + * OpenSSL/test/test_ssl.py: Add tests for ``recv_into``. + * OpenSSL/crypto.py: Expose ``X509StoreContext`` for verifying certificates. + * OpenSSL/test/test_crypto.py: Add intermediate certificates for + * OpenSSL/SSL.py: ``Connection.shutdown`` now propagates errors from the + underlying socket. + * OpenSSL/SSL.py: Fixed a regression ``Context.check_privatekey`` + causing it to always succeed - even if it should fail. + * OpenSSL/crypto.py: Fixed a regression where calling ``load_pkcs7_data`` + with ``FILETYPE_ASN1`` would fail with a ``NameError``. + * OpenSSL/SSL.py: Fix a regression in which the first argument of + +------------------------------------------------------------------- +Mon Feb 24 12:58:58 UTC 2014 - mvyskocil@suse.com + +- update to 0.14 + * Support for TLSv1.1 and TLSv1.2 + * First-class support for PyPy + * New flags, such as MODE_RELEASE_BUFFERS and OP_NO_COMPRESSION + * Some APIs to access to the SSL session cache + * A variety of bug fixes for error handling cases + * Documentation has been converted from LaTeX + + python-pyOpenSSL-doc is now build from single spec file + * pyOpenSSL now depends on cryptography, so it became pure-python + module + + changed to noarch package, add proper dependencies + * Development moved to github + + changed Url tag respectivelly +- refreshed bug-lp-1265482.diff + ------------------------------------------------------------------- Thu Jan 2 11:17:23 UTC 2014 - dmueller@suse.com diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index 4236d1b..a5b5c1c 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyOpenSSL # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,31 +17,46 @@ Name: python-pyOpenSSL -Version: 0.13.1 +Version: 0.15.1 Release: 0 -Url: http://launchpad.net/pyopenssl +Url: https://github.com/pyca/pyopenssl 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 +BuildArch: noarch + +BuildRequires: python-Sphinx +BuildRequires: python-cryptography >= 0.2 BuildRequires: python-devel +BuildRequires: python-setuptools + +Requires: python-cryptography >= 0.2 + Provides: pyOpenSSL = %{version} Provides: python-openssl = %{version} Obsoletes: python-openssl < %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %description -High-level wrapper around a subset of the OpenSSL library, includes - * SSL.Connection objects, wrapping the methods of Python's portable - sockets - * Callbacks written in Python - * Extensive error-handling mechanism, mirroring OpenSSL's error codes -... and much more ;) +pyOpenSSL is a set of Python bindings for OpenSSL. It includes some low-level +cryptography APIs but is primarily focused on providing an API for using the +TLS protocol from Python. + +pyOpenSSL is now a pure-Python project with a dependency on a new project, +cryptography (), which provides (among +other things) a cffi-based interface to OpenSSL. + +%package doc +Summary: Documentation for %{name} +Group: Documentation/HTML + +%description doc +Provides documentation for %{name}. %prep %setup -q -n pyOpenSSL-%{version} @@ -50,12 +65,20 @@ High-level wrapper around a subset of the OpenSSL library, includes %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo + %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files -%defattr(-,root,root,-) -%doc LICENSE README TODO examples -%{python_sitearch}/* +%defattr(0644,root,root,0755) +%doc LICENSE README.rst TODO +%{python_sitelib}/OpenSSL/ +%{python_sitelib}/pyOpenSSL-%{version}-py*.egg-info/ + +%files doc +%defattr(0644,root,root,0755) +%doc build/sphinx/html/ +%doc examples/ %changelog