From 742a86067e9b8fc693cf458f20649d6fb5193d56 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Jun 28 2011 12:57:10 +0000 Subject: New upstream release --- diff --git a/.gitignore b/.gitignore index 03d4011..16ad487 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ pyOpenSSL-0.9.tar.gz /pyOpenSSL-0.10.tar.gz +/pyOpenSSL-0.12.tar.gz diff --git a/pyOpenSSL-py2.7-memoryview.patch b/pyOpenSSL-py2.7-memoryview.patch deleted file mode 100644 index 271b725..0000000 --- a/pyOpenSSL-py2.7-memoryview.patch +++ /dev/null @@ -1,35 +0,0 @@ -Index: pyOpenSSL-0.10/src/ssl/connection.c -=================================================================== ---- pyOpenSSL-0.10.orig/src/ssl/connection.c -+++ pyOpenSSL-0.10/src/ssl/connection.c -@@ -369,17 +369,20 @@ has been sent.\n\ - @param buf: The string to send\n\ - @param flags: (optional) Included for compatability with the socket\n\ - API, the value is ignored\n\ --@return: The number of bytes written\n\ -+@return: None\n\ - "; - static PyObject * - ssl_Connection_sendall(ssl_ConnectionObj *self, PyObject *args) - { -+ Py_buffer pbuf; - char *buf; - int len, ret, err, flags; - PyObject *pyret = Py_None; - -- if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags)) -+ if (!PyArg_ParseTuple(args, "s*|i:sendall", &pbuf, &flags)) - return NULL; -+ buf = pbuf.buf; -+ len = pbuf.len; - - do { - MY_BEGIN_ALLOW_THREADS(self->tstate) -@@ -405,6 +408,7 @@ ssl_Connection_sendall(ssl_ConnectionObj - break; - } - } while (len > 0); -+ PyBuffer_Release(&pbuf); - - Py_XINCREF(pyret); - return pyret; diff --git a/pyOpenSSL.spec b/pyOpenSSL.spec index 4923a01..42c2797 100644 --- a/pyOpenSSL.spec +++ b/pyOpenSSL.spec @@ -1,15 +1,13 @@ Summary: Python wrapper module around the OpenSSL library Name: pyOpenSSL -Version: 0.10 -Release: 3%{?dist} +Version: 0.12 +Release: 1%{?dist} Source0: http://pypi.python.org/packages/source/p/pyOpenSSL/%{name}-%{version}.tar.gz # Fedora specific patches Patch2: pyOpenSSL-elinks.patch Patch3: pyOpenSSL-nopdfout.patch -# Submitted upstream: https://bugs.launchpad.net/pyopenssl/+bug/686804 -Patch4: pyOpenSSL-py2.7-memoryview.patch License: LGPLv2+ Group: Development/Libraries Url: http://pyopenssl.sourceforge.net/ @@ -33,12 +31,9 @@ High-level wrapper around a subset of the OpenSSL library, includes among others %setup -q %patch2 -p1 -b .elinks %patch3 -p1 -b .nopdfout -# This is necessary on python-2.7+ but works on python-2.6+ -%if 0%{?fedora} >= 13 || 0%{?rhel} >= 5 -%patch4 -p1 -b .py2.7 -%endif + # Fix permissions for debuginfo package -%{__chmod} -x src/ssl/connection.c +%{__chmod} -x OpenSSL/ssl/connection.c %build CFLAGS="%{optflags} -fno-strict-aliasing" %{__python} setup.py build @@ -57,6 +52,9 @@ find doc/ -name pyOpenSSL.\* %{python_sitearch}/%{name}*.egg-info %changelog +* Tue Jun 28 2011 Tomas Mraz - 0.12-1 +- New upstream release + * Tue Feb 08 2011 Fedora Release Engineering - 0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 0e2f1fb..4ec148e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -34db8056ec53ce80c7f5fc58bee9f093 pyOpenSSL-0.10.tar.gz +60a7bbb6160950823eddcbba2cbcb0d6 pyOpenSSL-0.12.tar.gz