r13693 - in /desktop/unstable/pygobject/debian: changelog control.in rules

seb128 at users.alioth.debian.org seb128 at users.alioth.debian.org
Fri Nov 30 13:42:27 UTC 2007


Author: seb128
Date: Fri Nov 30 13:42:26 2007
New Revision: 13693

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=13693
Log:
  * debian/control.in:
    - Build-Depends on python-all-dbg
    - Conflicts,Provides,Replaces python-gobject-doc
    - list python-gobject-dbg package
  * debian/rules:
    - build dbg variant
    - run make check

Modified:
    desktop/unstable/pygobject/debian/changelog
    desktop/unstable/pygobject/debian/control.in
    desktop/unstable/pygobject/debian/rules

Modified: desktop/unstable/pygobject/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/pygobject/debian/changelog?rev=13693&op=diff
==============================================================================
--- desktop/unstable/pygobject/debian/changelog (original)
+++ desktop/unstable/pygobject/debian/changelog Fri Nov 30 13:42:26 2007
@@ -1,3 +1,15 @@
+pygobject (2.14.0-3) unstable; urgency=low
+
+  * debian/control.in:
+    - Build-Depends on python-all-dbg
+    - Conflicts,Provides,Replaces python-gobject-doc
+    - list python-gobject-dbg package
+  * debian/rules:
+    - build dbg variant
+    - run make check
+
+ -- Sebastien Bacher <seb128 at debian.org>  Fri, 30 Nov 2007 12:46:58 +0100
+
 pygobject (2.14.0-2) unstable; urgency=low
 
   * python-gobject-dev depends on libglib2.0-dev and libffi-dev.

Modified: desktop/unstable/pygobject/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/pygobject/debian/control.in?rev=13693&op=diff
==============================================================================
--- desktop/unstable/pygobject/debian/control.in (original)
+++ desktop/unstable/pygobject/debian/control.in Fri Nov 30 13:42:26 2007
@@ -12,7 +12,8 @@
                libffi-dev,
                xsltproc,
                docbook-xsl,
-               autotools-dev
+               autotools-dev,
+               python-all-dbg
 Build-Conflicts: python2.3-dev (<< 2.3.5)
 XS-Python-Version: >= 2.3
 Standards-Version: 3.7.2
@@ -24,6 +25,7 @@
          ${misc:Depends}
 Provides: ${python:Provides}
 XB-Python-Version: ${python:Versions}
+Suggests: python-gobject-dbg
 Conflicts: python-gtk2 (<< 2.10)
 Description: Python bindings for the GObject library
  GObject is an abstraction layer that allows to program with an object
@@ -41,7 +43,9 @@
          python-dev,
          libglib2.0-dev (>= 2.8.0),
          libffi-dev
-Conflicts: python-gtk2-dev (<< 2.10)
+Conflicts: python-gtk2-dev (<< 2.10), python-gobject-doc
+Replaces: python-gobject-doc
+Provides: python-gobject-doc
 Recommends: docbook-xsl
 Description: Development headers for the GObject python bindings
  GObject is an abstraction layer that allows to program with an object
@@ -50,3 +54,18 @@
  .
  This package contains the development headers needed to build
  other python bindings relying on pygobject.
+
+Package: python-gobject-dbg
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, python-dbg, python-gobject (= ${Source-Version})
+Conflicts: python-gtk2 (<< 2.10)
+Description: Python bindings for the GObject library (debug extension)
+ GObject is an abstraction layer that allows to program with an object
+ paradigm that is compatible with many languages. It is a part of
+ Glib,
+ the core library used to build GTK+ and GNOME.
+ .
+ This package contains the python bindings for GObject. It is
+ mostly
+ used by other bindings to map their GObjects to python objects.

Modified: desktop/unstable/pygobject/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/pygobject/debian/rules?rev=13693&op=diff
==============================================================================
--- desktop/unstable/pygobject/debian/rules (original)
+++ desktop/unstable/pygobject/debian/rules Fri Nov 30 13:42:26 2007
@@ -28,12 +28,26 @@
 			$(CURDIR)/configure $(configure_flags)
 	touch $@
 
+dbg-build-%/configure-stamp:
+	dh_testdir
+	mkdir -p dbg-build-$*
+	cd dbg-build-$* && \
+		PYTHON=/usr/bin/python$*-dbg CFLAGS="$(CFLAGS) -O0" \
+			$(CURDIR)/configure $(configure_flags)
+	touch $@
+
 build-%/build-stamp: build-%/configure-stamp
 	dh_testdir
 	$(MAKE) -C build-$*
+	$(MAKE) -C build-$* check
 	touch $@
 
-build: apply-patches $(PYVERS:%=build-%/build-stamp)
+dbg-build-%/build-stamp: dbg-build-%/configure-stamp
+	dh_testdir
+	$(MAKE) -C dbg-build-$*
+	touch $@
+
+build: apply-patches $(PYVERS:%=build-%/build-stamp) $(PYVERS:%=dbg-build-%/build-stamp)
 
 install-clean:
 	dh_testdir
@@ -45,17 +59,28 @@
 	dh_testroot
 	$(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/python-gobject-dev
 
-install: build install-clean $(PYVERS:%=install-%)
+dbg-install-%: dbg-build-%/build-stamp
+	dh_testdir
+	dh_testroot
+	$(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-gobject-dbg
+	find debian/python-gobject-dbg ! -type d ! -name '*.so' | xargs rm -f
+	find debian/python-gobject-dbg -depth -empty -exec rmdir {} \;
+
+install: build install-clean $(PYVERS:%=install-%) $(PYVERS:%=dbg-install-%)
 	dh_testdir
 	dh_testroot
 	find debian/python-gobject-dev -name \*.la -exec rm -f \{\} \;
 	mkdir -p debian/python-gobject/usr/lib
 	mv debian/python-gobject-dev/usr/lib/python* debian/python-gobject/usr/lib/
+	for i in $$(find debian/python-gobject-dbg -name '*.so'); do \
+		b=$$(basename $$i .so); \
+		mv $$i $$(dirname $$i)/$${b}_d.so; \
+	done
 
 clean:: reverse-patches
 	dh_testdir
 	dh_testroot
-	rm -Rf build-*
+	rm -Rf build-* dbg-build-*
 	-test -f config.sub && \
 	  test -r /usr/share/misc/config.sub && \
 	  cp -f /usr/share/misc/config.sub config.sub
@@ -87,7 +112,9 @@
 	dh_installdocs -a
 	dh_installexamples -a
 	dh_installchangelogs ChangeLog -a
-	dh_strip -a
+	dh_strip -ppython-gobject --dbg-package=python-gobject-dbg
+	rm -rf debian/python-gobject-dbg/usr/share/doc/python-gobject-dbg
+	ln -sf python-gobject debian/python-gobject-dbg/usr/share/doc/python-gobject-dbg
 	dh_link -a
 	dh_compress -a -X.py
 	dh_fixperms -a




More information about the pkg-gnome-commits mailing list