[python26-m2crypto/el5/master: 59/78] - Update to m2crypto-0.20 - Fix incorrect merge in HTTPS CONNNECT proxy support

gholms gholms at fedoraproject.org
Wed Feb 23 00:30:13 UTC 2011


commit 9628323da8455fef26d137b2dbc499c45b3f1407
Author: Miloslav Trmac <mitr at fedoraproject.org>
Date:   Tue Aug 11 12:41:04 2009 +0000

    - Update to m2crypto-0.20
    - Fix incorrect merge in HTTPS CONNNECT proxy support

 .cvsignore                               |    2 +-
 m2crypto-0.18-gcc_macros.patch           |   11 --------
 m2crypto-0.19.1-close-HTTPResponse.patch |   42 ------------------------------
 m2crypto-0.19.1-locking.patch            |   13 ---------
 m2crypto-0.19.1-no-dns-in-altname.patch  |   25 -----------------
 m2crypto-0.19.1-ssl-selector.patch       |   24 -----------------
 m2crypto-0.20-gcc_macros.patch           |   11 ++++++++
 m2crypto-0.20-merge.patch                |   29 ++++++++++++++++++++
 m2crypto.spec                            |   26 +++++++-----------
 sources                                  |    2 +-
 10 files changed, 52 insertions(+), 133 deletions(-)
---
diff --git a/.cvsignore b/.cvsignore
index 6dfa789..e92d686 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-M2Crypto-0.19.1.tar.gz
+M2Crypto-0.20.tar.gz
diff --git a/m2crypto-0.20-gcc_macros.patch b/m2crypto-0.20-gcc_macros.patch
new file mode 100644
index 0000000..630205d
--- /dev/null
+++ b/m2crypto-0.20-gcc_macros.patch
@@ -0,0 +1,11 @@
+diff -up M2Crypto-0.20/SWIG/_m2crypto.i.gcc_macros M2Crypto-0.20/SWIG/_m2crypto.i
+--- M2Crypto-0.20/SWIG/_m2crypto.i.gcc_macros	2009-08-11 05:05:22.000000000 +0200
++++ M2Crypto-0.20/SWIG/_m2crypto.i	2009-08-11 13:24:52.943706097 +0200
+@@ -4,6 +4,7 @@
+  * Portions created by Open Source Applications Foundation (OSAF) are
+  * Copyright (C) 2004-2006 OSAF. All Rights Reserved.
+  */
++%import "gcc_macros.h"
+ 
+ %module(threads=1) _m2crypto
+ /* We really don't need threadblock (PyGILState_Ensure() etc.) anywhere.
diff --git a/m2crypto-0.20-merge.patch b/m2crypto-0.20-merge.patch
new file mode 100644
index 0000000..8fd5f3f
--- /dev/null
+++ b/m2crypto-0.20-merge.patch
@@ -0,0 +1,29 @@
+diff -up M2Crypto-0.20/M2Crypto/httpslib.py.merge M2Crypto-0.20/M2Crypto/httpslib.py
+--- M2Crypto-0.20/M2Crypto/httpslib.py.merge	2009-08-11 13:38:10.538989545 +0200
++++ M2Crypto-0.20/M2Crypto/httpslib.py	2009-08-11 13:46:59.310956095 +0200
+@@ -4,7 +4,7 @@ Copyright (c) 1999-2004 Ng Pheng Siong. 
+ 
+ import string, sys
+ import socket
+-from urlparse import urlsplit
++from urlparse import urlsplit, urlunsplit
+ import base64
+ 
+ from httplib import *
+@@ -122,7 +122,7 @@ class ProxyHTTPSConnection(HTTPSConnecti
+     def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
+         #putrequest is called before connect, so can interpret url and get
+         #real host/port to be used to make CONNECT request to proxy
+-        proto, netloc, path, query, fraqment = urlsplit(url)
++        proto, netloc, path, query, fragment = urlsplit(url)
+         if not proto:
+             raise ValueError, "unknown URL type: %s" % url
+         
+@@ -144,6 +144,7 @@ class ProxyHTTPSConnection(HTTPSConnecti
+ 
+         self._real_host = host
+         self._real_port = int(port)
++        rest = urlunsplit((None, None, path, query, fragment))
+         HTTPSConnection.putrequest(self, method, rest, skip_host, skip_accept_encoding)
+ 
+     def putheader(self, header, value):
diff --git a/m2crypto.spec b/m2crypto.spec
index dc83739..7788fed 100644
--- a/m2crypto.spec
+++ b/m2crypto.spec
@@ -5,22 +5,15 @@
 
 Summary: Support for using OpenSSL in python scripts
 Name: m2crypto
-Version: 0.19.1
-Release: 10
+Version: 0.20
+Release: 1
 Source0: http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
 # https://bugzilla.osafoundation.org/show_bug.cgi?id=2341
 Patch0: m2crypto-0.18-timeouts.patch
 # This is only precautionary, it does fix anything - not sent upstream
-Patch1: m2crypto-0.18-gcc_macros.patch
-# https://bugzilla.osafoundation.org/show_bug.cgi?id=12718
-Patch2: m2crypto-0.19.1-close-HTTPResponse.patch
-# Half in upstream SVN
-# Half is https://bugzilla.osafoundation.org/show_bug.cgi?id=12760
-Patch3: m2crypto-0.19.1-ssl-selector.patch
-# https://bugzilla.osafoundation.org/show_bug.cgi?id=9605
-Patch4: m2crypto-0.19.1-no-dns-in-altname.patch
-# https://bugzilla.osafoundation.org/show_bug.cgi?id=12847
-Patch5: m2crypto-0.19.1-locking.patch
+Patch1: m2crypto-0.20-gcc_macros.patch
+# https://bugzilla.osafoundation.org/show_bug.cgi?id=12857
+Patch2: m2crypto-0.20-merge.patch
 License: MIT
 Group: System Environment/Libraries
 URL: http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
@@ -36,10 +29,7 @@ This package allows you to call OpenSSL functions from python scripts.
 %setup -q -n M2Crypto-%{version}
 %patch0 -p1
 %patch1 -p1 -b .gcc_macros
-%patch2 -p1
-%patch3 -p1
-%patch4 -p0
-%patch5 -p0
+%patch2 -p1 -b .merge
 
 # Red Hat opensslconf.h #includes an architecture-specific file, but SWIG
 # doesn't follow the #include.
@@ -102,6 +92,10 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/M2Crypto-*.egg-info
 
 %changelog
+* Tue Aug 11 2009 Miloslav Trmač <mitr at volny.cz> - 0.20-1
+- Update to m2crypto-0.20
+- Fix incorrect merge in HTTPS CONNNECT proxy support
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.19.1-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
diff --git a/sources b/sources
index bd453a6..59178c3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c92286fdf0a75f017e72122c2832d5ff  M2Crypto-0.19.1.tar.gz
+43a4d958a6c892a37ca02ffcc650b66b  M2Crypto-0.20.tar.gz


More information about the scm-commits mailing list