[Python-modules-commits] r4633 - in packages/pyopenssl/trunk/debian (changelog control rules)

kitterma-guest at users.alioth.debian.org kitterma-guest at users.alioth.debian.org
Mon Feb 25 03:29:27 UTC 2008


    Date: Monday, February 25, 2008 @ 03:29:25
  Author: kitterma-guest
Revision: 4633

Add debug package (from Ubuntu).

Modified:
  packages/pyopenssl/trunk/debian/changelog
  packages/pyopenssl/trunk/debian/control
  packages/pyopenssl/trunk/debian/rules

Modified: packages/pyopenssl/trunk/debian/changelog
===================================================================
--- packages/pyopenssl/trunk/debian/changelog	2008-02-24 23:00:27 UTC (rev 4632)
+++ packages/pyopenssl/trunk/debian/changelog	2008-02-25 03:29:25 UTC (rev 4633)
@@ -1,3 +1,13 @@
+pyopenssl (0.6-4) UNRELEASED; urgency=low
+
+  * Add debug package (incorporate changes from Ubuntu)
+    - Add build-dep on python-all-dbg
+    - Suggest python-openssl-dbg
+    - Add building debug variants to debian/rules
+  * Add myself to uploaders
+
+ -- Scott Kitterman <scott at kitterman.com>  Sun, 24 Feb 2008 21:46:51 -0500
+
 pyopenssl (0.6-3) unstable; urgency=low
 
   [ Sandro Tosi ]

Modified: packages/pyopenssl/trunk/debian/control
===================================================================
--- packages/pyopenssl/trunk/debian/control	2008-02-24 23:00:27 UTC (rev 4632)
+++ packages/pyopenssl/trunk/debian/control	2008-02-25 03:29:25 UTC (rev 4633)
@@ -2,8 +2,8 @@
 Section: python
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Uploaders: Sandro Tosi <matrixhasu at gmail.com>
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-support (>= 0.6.4), libssl-dev (>= 0.9.8), dpatch
+Uploaders: Sandro Tosi <matrixhasu at gmail.com>, Scott Kitterman <scott at kitterman.com>
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all-dbg (>= 2.4.4-6), python-support (>= 0.6.4), libssl-dev (>= 0.9.8), dpatch
 Standards-Version: 3.7.3
 Homepage: http://pyopenssl.sourceforge.net/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pycg/trunk/
@@ -14,7 +14,7 @@
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
-Suggests: python-pyopenssl-doc
+Suggests: python-pyopenssl-doc, python-openssl-dbg
 Replaces: python2-pyopenssl, python2.3-pyopenssl (<< 0.6-2.3), python2.4-pyopenssl (<< 0.6-2.3)
 Conflicts: python2-pyopenssl, python2.3-pyopenssl (<< 0.6-2.3), python2.4-pyopenssl (<< 0.6-2.3)
 XB-Python-Version: ${python:Versions}
@@ -56,3 +56,20 @@
  (python-openssl-doc).
  .
  It can be safely removed from your system.
+
+Package: python-openssl-dbg
+Priority: extra
+Architecture: any
+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.
+

Modified: packages/pyopenssl/trunk/debian/rules
===================================================================
--- packages/pyopenssl/trunk/debian/rules	2008-02-24 23:00:27 UTC (rev 4632)
+++ packages/pyopenssl/trunk/debian/rules	2008-02-25 03:29:25 UTC (rev 4633)
@@ -14,6 +14,7 @@
 	set -e; \
 	for py in $(PYVERS); do  \
 	    $$py setup.py build; \
+	    $$py-dbg setup.py build; \
 	done
 
 	touch build-stamp
@@ -24,7 +25,9 @@
 	rm -f build-stamp
 
 	-for py in $(PYVERS); do \
-	    $$py setup.py clean --all; done
+	    $$py setup.py clean --all; \
+	    $$py-dbg setup.py clean --all; \
+	done
 	rm -rf build version.pyc
 
 	dh_clean
@@ -38,8 +41,13 @@
 
 	set -e; \
 	for py in $(PYVERS); do \
-	    $$py setup.py install --root=$(CURDIR)/debian/python-openssl; \
-	done
+	    echo "installing for $$py ..."; \
+ 	    $$py setup.py install --root=$(CURDIR)/debian/python-openssl; \
+	    echo "installing for $$py-dbg ..."; \
+	    $$py-dbg setup.py install --root=$(CURDIR)/debian/python-openssl-dbg; \
+ 	done
+	find debian/python-pyopenssl-dbg ! -type d ! -name '*_d.so' | xargs rm -f
+	find debian/python-pyopenssl-dbg -depth -empty -exec rmdir {} \;
 
 # Build architecture-independent files here.
 # Pass -i to all debhelper commands in this target to reduce clutter.
@@ -64,7 +72,9 @@
 	dh_installdocs -a
 	dh_installexamples -a
 	dh_installchangelogs ChangeLog -a
-	dh_strip -a
+	dh_strip -ppython-pyopenssl --dbg-package=python-pyopenssl-dbg
+	rm -rf debian/python-pyopenssl-dbg/usr/share/doc/python-pyopenssl-dbg
+	ln -s python-pyopenssl debian/python-pyopenssl-dbg/usr/share/doc/python-pyopenssl-dbg
 	dh_compress -a
 	dh_fixperms -a
 	dh_pysupport -a




More information about the Python-modules-commits mailing list