rpms/python-ssl/EL-4 README.ssl, NONE, 1.1 python-ssl-64bit.patch, NONE, 1.1 python-ssl.spec, NONE, 1.1 sources, 1.1, 1.2

stevetraylen stevetraylen at fedoraproject.org
Thu Oct 15 20:01:16 UTC 2009


Author: stevetraylen

Update of /cvs/pkgs/rpms/python-ssl/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32673

Modified Files:
	sources 
Added Files:
	README.ssl python-ssl-64bit.patch python-ssl.spec 
Log Message:
First package. rhbz#527049



--- NEW FILE README.ssl ---
SSL wrapper for socket objects (2.3, 2.4, 2.5 compatible)

The old socket.ssl() support for TLS over sockets is being superseded in 
Python 2.6 by a new 'ssl' module. This package brings that module to 
older Python releases, 2.3.5 and up (it may also work on older versions 
of 2.3, but we haven't tried it).

It's quite similar to the 2.6 ssl module. There's no stand-alone 
documentation for this package; instead, just use the development branch 
documentation for the SSL module at 
http://docs.python.org/dev/library/ssl.html.

Version 1.0 had a problem with Python 2.5.1 -- the structure of the 
socket object changed from earlier versions.

Version 1.1 was missing various package metadata information.

Version 1.2 added more package metadata, and support for 
ssl.get_server_certificate(), and the PEM-to-DER encode/decode routines. 
Plus integrated Paul Moore's patch to setup.py for Windows. 
Plus added support for asyncore, and asyncore HTTPS server test.

Version 1.3 fixed a bug in the test suite.

Version 1.4 incorporated use of -static switch.

Version 1.5 fixed bug in Python version check affecting build on 
Python 2.5.0.

Version 1.7 (and 1.6) fixed some bugs with asyncore support 
(recv and send not being called on the SSLSocket class, wrong semantics 
for sendall).

Version 1.8 incorporated some code from Chris Stawarz to handle 
sockets which are set to non-blocking before negotiating the SSL session.

Version 1.9 makes ssl.SSLError a subtype of socket.error.

Version 1.10 fixes a bug in sendall().

Version 1.11 includes the MANIFEST file, and by default will turne 
unexpected EOFs occurring during a read into a regular EOF. It also 
removes the code for SSLFileStream, to use the regular socket 
module's _fileobject instead.

Version 1.12 fixes the bug in SSLSocket.accept() reported by 
Georg Brandl, and adds a test case for that fix.

Version 1.13 fixes a bug in calling do_handshake() automatically 
on non-blocking sockets. Thanks to Giampaolo Rodola. Now 
includes real asyncore test case.

Version 1.14 incorporates some fixes to naming (rename "recv_from" 
to "recvfrom" and "send_to" to "sendto"), and a fix to the 
asyncore test case to unregister the connection handler when the 
connection is closed. It also exposes the SSL shutdown via the 
"unwrap" method on an SSLSocket. It exposes "subjectPublicKey" 
in the data received from a peer cert.

Version 1.15 fixes a bug in write retries, where the output 
buffer has changed location because of garbage collection during the 
interim. It also provides the new flag, PROTOCOL_NOSSLv2, which 
selects SSL23, but disallows actual use of SSL2.

Authorship: A cast of dozens over the years have written the Python 
SSL support, including Marc-Alan Lemburg, Robin Dunn, GvR, Kalle Svensson,
Skip Montanaro, Mark Hammond, Martin von Loewis, Jeremy Hylton,
Andrew Kuchling, Georg Brandl, Bill Janssen, Chris Stawarz,
Neal Norwitz, and many others. Thanks to Paul Moore, David Bolen 
and Mark Hammond for help with the Windows side of the house. And 
it's all based on OpenSSL, which has its own cast of dozens!


python-ssl-64bit.patch:
 setup.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE python-ssl-64bit.patch ---
diff -uNr ssl-1.15.ORIG/setup.py ssl-1.15/setup.py
--- ssl-1.15.ORIG/setup.py	2009-10-02 20:02:10.864763790 +0200
+++ ssl-1.15/setup.py	2009-10-03 09:00:06.541685860 +0200
@@ -131,7 +131,8 @@
 
     ssl_libs = find_library_file(compiler, 'ssl',
                                  ['/usr/lib'],
-                                 ['/usr/local/lib',
+                                 ['/usr/lib64',
+                                  '/usr/local/lib',
                                   '/usr/local/ssl/lib',
                                   '/usr/contrib/ssl/lib/'
                                  ] )


--- NEW FILE python-ssl.spec ---
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-ssl
Version:        1.15
Release:        2%{?dist}
Summary:        SSL wrapper for socket objects (2.3, 2.4, 2.5 compatible)

Group:          Development/Libraries
License:        Python
URL:            http://pypi.python.org/pypi/ssl
Source0:        http://pypi.python.org/packages/source/s/ssl/ssl-%{version}.tar.gz
Source1:        README.ssl
Patch0:         %{name}-64bit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# This package is never needed for python 2.6 since
# ssl module is already present.
Requires: python < 2.6
BuildRequires:  python-devel < 2.6
BuildRequires:  openssl-devel

%description
SSL wrapper for socket objects (2.3, 2.4, 2.5 compatible)

The old socket.ssl() support for TLS over sockets is being superseded in 
Python 2.6 by a new 'ssl' module.  This package brings that module to older 
Python releases.

%prep
%setup -q -n ssl-%{version}
%patch0 -p1
cp -p %{SOURCE1} README


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/ssl/_ssl2.so
rm -rf $RPM_BUILD_ROOT%{python_sitearch}/../test
 
%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README
%{python_sitearch}/*

%changelog
* Tue Oct 13 2009 Steve Traylen <steve.traylen at cern.ch> 1.15-2
- Add -p to cp to preserve timestamps.
* Fri Oct 2 2009 Steve Traylen <steve.traylen at cern.ch> 1.15-1
- First Build




Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-ssl/EL-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	15 Oct 2009 17:19:56 -0000	1.1
+++ sources	15 Oct 2009 20:01:12 -0000	1.2
@@ -0,0 +1 @@
+81ea8a1175e437b4c769ae65b3290e0c  ssl-1.15.tar.gz




More information about the fedora-extras-commits mailing list