SPECS: python-ssl.spec (NEW) - backport of SSL module from Python 2.6

arekm arekm at pld-linux.org
Sat Oct 6 19:43:29 CEST 2007


Author: arekm                        Date: Sat Oct  6 17:43:29 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- backport of SSL module from Python 2.6

---- Files affected:
SPECS:
   python-ssl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-ssl.spec
diff -u /dev/null SPECS/python-ssl.spec:1.1
--- /dev/null	Sat Oct  6 19:43:29 2007
+++ SPECS/python-ssl.spec	Sat Oct  6 19:43:24 2007
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%define		module	ssl
+Summary:	SSL wrapper for socket objects from Python 2.6
+Name:		python-%{module}
+Version:	1.5
+Release:	1
+License:	PSF
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/s/ssl/ssl-%{version}.tar.gz
+# Source0-md5:	ef2fff1da3df0ca10746bd5e9ea02765
+Patch0:		%{name}-check.patch
+URL:		http://docs.python.org/dev/library/ssl.html
+BuildRequires:	krb5-devel
+BuildRequires:	openssl-devel >= 0.9.7d
+BuildRequires:	python-devel < 1:2.6
+BuildRequires:	python-devel >= 1:2.5
+%pyrequires_eq	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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. The only significant
+difference is that the ssl.SSLError exception does not inherit from
+socket.error, as it does in Python 2.6, because socket.error is not
+exposed at the C level in Python 2.3.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p1
+
+%build
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python setup.py install \
+	--root=$RPM_BUILD_ROOT \
+	--install-lib=%{py_sitedir} \
+	--optimize=2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/ssl/*.so
+%{py_sitedir}/ssl/*.py[oc]
+%{py_sitedir}/*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/10/06 17:43:24  arekm
+- backport of SSL module from Python 2.6
+
================================================================


More information about the pld-cvs-commit mailing list