Package: pyopenssl
Version: 0.13-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

Upstream pyOpenSSL supports Python 3.2 as described here:

    http://pypi.python.org/pypi/pyOpenSSL/0.13

This patch enhances the packaging to build and install the Python 3 versions
of the package (normal and debug).

Thank you for your consideration.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-23-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIbBAEBCAAGBQJPjyq8AAoJEBJutWOnSwa/tFgP90Cy9D07zDu7ooibz/1dYamc
ykBG8JAbYQCAI7VT503rLezz7WPRjjVE4Bl6tUaUNLxIr2hrXTmpQLAWA1qZMIw2
MvgWV3J5KtzTYHtoaOlvDNIEIjUKqsAiPq5ZoYTs54yWF7Mq7Sb1oORnUAFQmLqS
6LiUsl6Ar3z0gPbLfdxyTce1y78CveYs7nygGCIXkRUDlk81VAzThzCdWXnDjHS9
GCEdXVjs9ms40RAp1zUKfutKU43bd2cGPOxxAufUxcpeHclweIE10+d5ZCZC6Yeg
KJzLHM7jf6KiIv9tg4G/QU0qwbv/OQZVL/4EgXXytBDS8y7UMr6eruXJoNiaixHn
IiBLwRIs+MQr/g6wyVeHH7vZo8vHI6VikK/NKNgZM8w9hNyT1HJPncdQuAYw9vHm
l5hjm9JP3prpJpzXkUTXAS+g7iXzl4pyZifrV2GwXMiMXn8LtNXFvDVsqTj/++3f
L7sGfoJl1w6rfcJNogLl8TaJpvtPzPVr2nfEzhTEgb5k81MoYa5qKqhbF+3MDhPP
nyrt+4PJQcbuKPRYvXKgVxfsNvTnZfm7o5t8mAvH8WCxX/wIKvoFs9F/M5xCEBpb
o+FlZlpCK0M6487lYKi71a+GzOZVtSu8cYllvZE8FKY8D4CMES/ZfmgjrxWR6BP6
MK5Egx+pHcmy4SbW+ug=
=cOKE
-----END PGP SIGNATURE-----
=== modified file 'debian/changelog'
--- debian/changelog	2011-09-11 16:46:29 +0000
+++ debian/changelog	2012-04-18 19:07:59 +0000
@@ -1,3 +1,9 @@
+pyopenssl (0.13-2) UNRELEASED; urgency=low
+
+  * Enable the Python 3 version of the package.
+
+ -- Barry Warsaw <ba...@python.org>  Wed, 18 Apr 2012 15:07:31 -0400
+
 pyopenssl (0.13-1) unstable; urgency=low
 
   * New upstream release

=== modified file 'debian/control'
--- debian/control	2011-08-15 18:44:39 +0000
+++ debian/control	2012-04-18 19:39:17 +0000
@@ -3,18 +3,19 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
 Uploaders: Sandro Tosi <mo...@debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.5.4-1~), python-all-dbg (>= 2.5.4-1~), python-support (>= 0.6.4), libssl-dev (>= 0.9.8), tex4ht, w3m, texlive-latex-base, texlive-latex-recommended, openssl
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.5.4-1~), python-all-dbg (>= 2.5.4-1~), python3-all-dev, python3-all-dbg, python-support (>= 0.6.4), libssl-dev (>= 0.9.8), tex4ht, w3m, texlive-latex-base, texlive-latex-recommended, openssl
 Standards-Version: 3.9.2
 Homepage: http://launchpad.net/pyopenssl
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyopenssl/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyopenssl/trunk/
 XS-Python-Version: all
+X-Python3-Version: >= 3.2
 
 Package: python-openssl
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Suggests: python-openssl-doc, python-openssl-dbg
-Description: Python wrapper around the OpenSSL library
+Description: Python 2 wrapper around the OpenSSL library
  High-level wrapper around a subset of the OpenSSL library, includes
  .
    * SSL.Connection objects, wrapping the methods of Python's portable
@@ -30,7 +31,7 @@
 Section: doc
 Architecture: all
 Depends: ${misc:Depends}
-Suggests: python-openssl
+Suggests: python-openssl, python3-openssl
 Description: Python wrapper around the OpenSSL library (documentation package)
  High-level wrapper around a subset of the OpenSSL library, includes
  .
@@ -50,16 +51,52 @@
 Section: debug
 Architecture: any
 Depends: ${misc:Depends}, python-openssl (= ${binary:Version}), python-dbg, ${shlibs:Depends}
-Description: Python wrapper around the OpenSSL library (debug extension)
- 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
- .
- A lot of the object methods do nothing more than calling a
- corresponding function in the OpenSSL library.
- .
- This package contains the debug extension for python-openssl.
+Description: Python 2 wrapper around the OpenSSL library (debug extension)
+ 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
+ .
+ A lot of the object methods do nothing more than calling a
+ corresponding function in the OpenSSL library.
+ .
+ This package contains the debug extension for python-openssl.
+
+Package: python3-openssl
+Architecture: any
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: python-openssl-doc, python-openssl-dbg
+Description: Python 3 wrapper around the OpenSSL library
+ 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
+ .
+ A lot of the object methods do nothing more than calling a
+ corresponding function in the OpenSSL library.
+
+Package: python3-openssl-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Depends: ${misc:Depends}, python3-openssl (= ${binary:Version}), python3-dbg, ${shlibs:Depends}
+Description: Python 3 wrapper around the OpenSSL library (debug extension)
+ 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
+ .
+ A lot of the object methods do nothing more than calling a
+ corresponding function in the OpenSSL library.
+ .
+ This package contains the debug extension for python-openssl.
+

=== added file 'debian/python-pyopenssl-dbg.install'
--- debian/python-pyopenssl-dbg.install	1970-01-01 00:00:00 +0000
+++ debian/python-pyopenssl-dbg.install	2012-04-18 20:51:10 +0000
@@ -0,0 +1,1 @@
+usr/lib/python2*

=== added file 'debian/python-pyopenssl.install'
--- debian/python-pyopenssl.install	1970-01-01 00:00:00 +0000
+++ debian/python-pyopenssl.install	2012-04-18 20:12:33 +0000
@@ -0,0 +1,1 @@
+usr/lib/python2*

=== added file 'debian/python3-pyopenssl-dbg.install'
--- debian/python3-pyopenssl-dbg.install	1970-01-01 00:00:00 +0000
+++ debian/python3-pyopenssl-dbg.install	2012-04-18 19:44:30 +0000
@@ -0,0 +1,1 @@
+usr/lib/python3

=== added file 'debian/python3-pyopenssl.install'
--- debian/python3-pyopenssl.install	1970-01-01 00:00:00 +0000
+++ debian/python3-pyopenssl.install	2012-04-18 19:43:38 +0000
@@ -0,0 +1,1 @@
+usr/lib/python3

=== modified file 'debian/rules'
--- debian/rules	2011-08-15 18:44:39 +0000
+++ debian/rules	2012-04-18 20:30:21 +0000
@@ -3,7 +3,9 @@
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 
-PYVERS := $(shell pyversions -r -v)
+PY2VERS := $(shell pyversions -r -v)
+PY3VERS := $(shell py3versions -r -v)
+PYVERS := $(PY2VERS) $(PY3VERS)
 
 build: build-arch build-indep
 build-arch: build-stamp
@@ -54,12 +56,19 @@
 	dh_installdirs
 
 	set -e; \
-	for py in $(PYVERS); do \
+	for py in $(PY2VERS); do \
 	    echo "installing for python$$py ..."; \
  	    python$$py setup.py install --root=$(CURDIR)/debian/python-openssl --install-layout=deb; \
 	    echo "installing for python$$py-dbg ..."; \
 	    python$$py-dbg setup.py install --root=$(CURDIR)/debian/python-openssl-dbg --install-layout=deb; \
  	done
+	set -e; \
+	for py in $(PY3VERS); do \
+	    echo "installing for python$$py ..."; \
+ 	    python$$py setup.py install --root=$(CURDIR)/debian/python3-openssl --install-layout=deb; \
+	    echo "installing for python$$py-dbg ..."; \
+	    python$$py-dbg setup.py install --root=$(CURDIR)/debian/python3-openssl-dbg --install-layout=deb; \
+ 	done
 	find debian/python-openssl-dbg ! -type d ! -name '*_d.so' | xargs rm -f
 	find debian/python-openssl-dbg -depth -empty -exec rmdir {} \;
 
@@ -74,6 +83,7 @@
 	dh_compress -i
 	dh_fixperms -i
 	dh_pysupport -i
+	dh_python3 -i
 	dh_installdeb -i
 	dh_gencontrol -i
 	dh_md5sums -i
@@ -92,6 +102,7 @@
 	dh_compress -a
 	dh_fixperms -a
 	dh_pysupport -a
+	dh_python3 -a
 	dh_makeshlibs -a
 	dh_installdeb -a
 	dh_shlibdeps -a

Reply via email to