[Python-modules-commits] r2665 - in /packages/psycopg2/trunk/debian: changelog control rules

kitterma-guest at users.alioth.debian.org kitterma-guest at users.alioth.debian.org
Tue Jul 3 20:56:29 UTC 2007


Author: kitterma-guest
Date: Tue Jul  3 20:56:29 2007
New Revision: 2665

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=2665
Log:
Build a python-psycopg-dbg package

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

Modified: packages/psycopg2/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/psycopg2/trunk/debian/changelog?rev=2665&op=diff
==============================================================================
--- packages/psycopg2/trunk/debian/changelog (original)
+++ packages/psycopg2/trunk/debian/changelog Tue Jul  3 20:56:29 2007
@@ -1,3 +1,9 @@
+psycopg2 (2.0.6-2) unstable; urgency=low
+
+  * Build a python-psycopg-dbg package
+
+ -- Scott Kitterman <scott at kitterman.com>  Tue, 03 Ju1 2007 16:55:48 -0400
+
 psycopg2 (2.0.6-1) unstable; urgency=low
 
   * New upstream release.

Modified: packages/psycopg2/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/psycopg2/trunk/debian/control?rev=2665&op=diff
==============================================================================
--- packages/psycopg2/trunk/debian/control (original)
+++ packages/psycopg2/trunk/debian/control Tue Jul  3 20:56:29 2007
@@ -1,7 +1,7 @@
 Source: psycopg2
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python-central (>= 0.5.0), python (>= 2.3.5-7), python-egenix-mx-base-dev, autoconf, libpq-dev
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python-all-dbg, python-central (>= 0.5.0), python (>= 2.3.5-7), python-egenix-mx-base-dev, autoconf, libpq-dev
 Build-Depends-Indep: zope-debhelper (>= 0.3.4)
 Maintainer: Fabio Tranchitella <kobold at debian.org>
 Standards-Version: 3.7.2.1
@@ -27,6 +27,20 @@
  psycopg 2 also provides full asycronous operations for the really brave
  programmer.
 
+Package: python-psycopg2-dbg
+Priority: extra
+Architecture: any
+Section: python
+Depends: python-psycopg2 (= ${Source-Version}), python-dbg, python-egenix-mxdatetime-dbg, ${shlibs:Depends}
+Description: Python module for PostgreSQL (debug extension)
+ psycopg is a PostgreSQL database adapter for the Python programming language
+ (just like pygresql and popy.) This is version 2, a complete rewrite of the
+ original code to provide new-style classes for connection and cursor objects
+ and other sweet candies. Like the original, psycopg 2 was written with the
+ aim of being very small and fast, and stable as a rock.
+ .
+ This package contains the extensions built for the python debug interpreter.
+
 Package: zope-psycopgda2
 Architecture: all
 Section: python

Modified: packages/psycopg2/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/psycopg2/trunk/debian/rules?rev=2665&op=diff
==============================================================================
--- packages/psycopg2/trunk/debian/rules (original)
+++ packages/psycopg2/trunk/debian/rules Tue Jul  3 20:56:29 2007
@@ -16,6 +16,9 @@
 	for python in $(PYVERS); do \
 		$$python setup.py build ; \
 	done
+	for python in $(PYVERS); do \
+		$$python-dbg setup.py build ; \
+	done
 	touch build-stamp
 
 clean: configure
@@ -33,9 +36,16 @@
 	dh_clean -k
 	dh_installdirs
 	# psycopg2
-	for python in $(PYVERS); \
-        do $$python setup.py install --root=$(CURDIR)/debian/python-psycopg2 --no-compile; \
-    done
+	for python in $(PYVERS); do \
+            $$python setup.py install \
+		--root=$(CURDIR)/debian/python-psycopg2 --no-compile; \
+	done
+	for python in $(PYVERS); do \
+	    $$python-dbg setup.py install \
+		--root=$(CURDIR)/debian/python-psycopg2-dbg --no-compile; \
+	done
+	find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f
+	find debian/python-*-dbg -depth -empty -exec rmdir {} \;
 
 install-indep: build
 	# Zope package
@@ -65,7 +75,9 @@
 	dh_installdocs -a README AUTHORS doc tests
 	dh_installchangelogs -a ChangeLog
 	dh_link -a
-	dh_strip -a
+	dh_strip -ppython-psycopg2 --dbg-package=python-psycopg2-dbg
+	rm -rf debian/python-psycopg2-dbg/usr/share/doc/python-psycopg2-dbg
+	ln -s python-psycopg2 debian/python-psycopg2-dbg/usr/share/doc/python-psycopg2-dbg
 	dh_compress -a
 	dh_fixperms -a
 	dh_makeshlibs -a




More information about the Python-modules-commits mailing list