r15141 - in /desktop/experimental/pygtk/debian: changelog control control.in copyright rules

pochu-guest at users.alioth.debian.org pochu-guest at users.alioth.debian.org
Fri Mar 14 18:42:38 UTC 2008


Author: pochu-guest
Date: Fri Mar 14 18:42:38 2008
New Revision: 15141

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=15141
Log:
* Build a debug package, stolen from the Ubuntu package (Closes: #470805):
  - debian/control.in:
    + Add python-gtk2-dbg and python-glade2-dbg packages.
    + Build-Depend on python-all-dbg to build the debug packages.
  - debian/rules:
    + Add the magic to build the debug packages.
* debian/control,
  debian/rules:
  - Run make check on build, taken from the Ubuntu package.
  - Build-Depend on xvfb.
* debian/control.in:
  - s/python/Python/ in python-gtk2-doc description. Thanks lintian.
  - Move the Homepage to its own field in the source stanza.
  - Add Vcs-Browser and Vcs-Svn fields.
  - Update Standards-Version to 3.7.3.
* debian/copyright:
  - Add Copyright holders.

Modified:
    desktop/experimental/pygtk/debian/changelog
    desktop/experimental/pygtk/debian/control
    desktop/experimental/pygtk/debian/control.in
    desktop/experimental/pygtk/debian/copyright
    desktop/experimental/pygtk/debian/rules

Modified: desktop/experimental/pygtk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/changelog?rev=15141&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/changelog (original)
+++ desktop/experimental/pygtk/debian/changelog Fri Mar 14 18:42:38 2008
@@ -1,3 +1,25 @@
+pygtk (2.12.1-2) experimental; urgency=low
+
+  * Build a debug package, stolen from the Ubuntu package (Closes: #470805):
+    - debian/control.in:
+      + Add python-gtk2-dbg and python-glade2-dbg packages.
+      + Build-Depend on python-all-dbg to build the debug packages.
+    - debian/rules:
+      + Add the magic to build the debug packages.
+  * debian/control,
+    debian/rules:
+    - Run make check on build, taken from the Ubuntu package.
+    - Build-Depend on xvfb.
+  * debian/control.in:
+    - s/python/Python/ in python-gtk2-doc description. Thanks lintian.
+    - Move the Homepage to its own field in the source stanza.
+    - Add Vcs-Browser and Vcs-Svn fields.
+    - Update Standards-Version to 3.7.3.
+  * debian/copyright:
+    - Add Copyright holders.
+
+ -- Emilio Pozuelo Monfort <pochu at ubuntu.com>  Fri, 14 Mar 2008 19:42:26 +0100
+
 pygtk (2.12.1-1) unstable; urgency=low
 
   * New upstream release.

Modified: desktop/experimental/pygtk/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/control?rev=15141&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/control (original)
+++ desktop/experimental/pygtk/debian/control Fri Mar 14 18:42:38 2008
@@ -3,12 +3,13 @@
 Priority: optional
 Maintainer: Sebastien Bacher <seb128 at debian.org>
 Uploaders: Torsten Landschoff <torsten at debian.org>,
-           Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Josselin Mouette <joss at debian.org>, Loic Minier <lool at dooz.org>
+           Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Emilio Pozuelo Monfort <pochu at ubuntu.com>, Josselin Mouette <joss at debian.org>, Loic Minier <lool at dooz.org>
 Build-Depends: debhelper (>= 5),
                python-support (>= 0.7.6),
                gnome-pkg-tools (>= 0.10),
                cdbs,
                python-all-dev (>= 2.3.5-11),
+               python-all-dbg,
                libgtk2.0-dev (>= 2.12.0),
                libglib2.0-dev (>= 2.8.0),
                libpango1.0-dev (>= 1.16.0),
@@ -19,9 +20,13 @@
                python-gobject-dev (>= 2.14.0),
                xsltproc,
                docbook-xsl,
-               autotools-dev
+               autotools-dev,
+               xvfb
 XS-Python-Version: >= 2.3
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/experimental/pygtk/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/experimental/pygtk/
+Homepage: http://www.pygtk.org/
 
 Package: python-gtk2
 Architecture: any
@@ -31,7 +36,8 @@
 Python-Depends: python-numeric (>= 24.2-3),
                 python-cairo (>= 1.0.2-1.1),
                 python-gobject (>= 2.14.0)
-Suggests: python-gtk2-doc
+Suggests: python-gtk2-doc,
+          python-gtk2-dbg
 Provides: ${python:Provides}
 XB-Python-Version: ${python:Versions}
 Conflicts: python-gdk-imlib,
@@ -46,7 +52,7 @@
  programs. This package contains the bindings for the version 2.0
  of that toolkit.
  .
- URL: http://www.daa.com.au/~james/software/pygtk/
+ This package contains the bindings.
 
 Package: python-gtk2-dev
 Architecture: all
@@ -72,8 +78,6 @@
 Description: GTK+ bindings: devel files
  This archive contains files that allow you to build wrappers for addon
  that interoperate python-gtk2 (pygtk).
- .
- URL: http://www.daa.com.au/~james/software/pygtk/
 
 Package: python-glade2
 Architecture: any
@@ -94,8 +98,6 @@
  makes it very easy to create a user interface. In the target 
  application you just need to load the interface description from 
  the .glade file instead of constructing the GUI at runtime.
- .
- URL: http://www.daa.com.au/~james/software/pygtk/
 
 Package: python-gtk2-doc
 Architecture: all
@@ -106,7 +108,7 @@
 Suggests: devhelp, python-glade2
 Description: Python bindings for the GTK+ widget set - documentation
  This package contains the documentation and API reference for the 
- python bindings of the Pango, ATK, GDK, GTK+ and Glade libraries.
+ Python bindings of the Pango, ATK, GDK, GTK+ and Glade libraries.
  It is well structured and easy to use.
  .
  The documentation can be browsed with the devhelp documentation 
@@ -114,3 +116,34 @@
  .
  This package also provides several examples showing how to use these 
  bindings to build simple GUI applications.
+
+Package: python-gtk2-dbg
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+	 python-dbg,
+         python-gtk2 (= ${binary:Version}),
+         python-numeric-dbg,
+         python-cairo-dbg,
+         python-gobject-dbg
+Description: Python bindings for the GTK+ widget set - debugging symbols
+ PyGTK lets you to easily create programs with the GTK+ graphical 
+ interface using the Python programming language.
+ .
+ This archive contains debugging symbols to debug GTK+ Python applications
+
+Package: python-glade2-dbg
+Architecture: any
+Priority: extra
+Depends: python-glade2 (= ${binary:Version}),
+         python-dbg,
+         python-gtk2-dbg,
+         ${shlibs:Depends}
+Description: GTK+ bindings: Glade support (debug extension)
+ Contains bindings for the glade library from use within Python. Glade
+ makes it very easy to create a user interface. In the target 
+ application you just need to load the interface description from 
+ the .glade file instead of constructing the GUI at runtime.
+ .
+ This package contains the extension built for the Python debug interpreter.

Modified: desktop/experimental/pygtk/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/control.in?rev=15141&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/control.in (original)
+++ desktop/experimental/pygtk/debian/control.in Fri Mar 14 18:42:38 2008
@@ -9,6 +9,7 @@
                gnome-pkg-tools (>= 0.10),
                cdbs,
                python-all-dev (>= 2.3.5-11),
+               python-all-dbg,
                libgtk2.0-dev (>= 2.12.0),
                libglib2.0-dev (>= 2.8.0),
                libpango1.0-dev (>= 1.16.0),
@@ -19,9 +20,13 @@
                python-gobject-dev (>= 2.14.0),
                xsltproc,
                docbook-xsl,
-               autotools-dev
+               autotools-dev,
+               xvfb
 XS-Python-Version: >= 2.3
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/experimental/pygtk/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/experimental/pygtk/
+Homepage: http://www.pygtk.org/
 
 Package: python-gtk2
 Architecture: any
@@ -31,7 +36,8 @@
 Python-Depends: python-numeric (>= 24.2-3),
                 python-cairo (>= 1.0.2-1.1),
                 python-gobject (>= 2.14.0)
-Suggests: python-gtk2-doc
+Suggests: python-gtk2-doc,
+          python-gtk2-dbg
 Provides: ${python:Provides}
 XB-Python-Version: ${python:Versions}
 Conflicts: python-gdk-imlib,
@@ -46,7 +52,7 @@
  programs. This package contains the bindings for the version 2.0
  of that toolkit.
  .
- URL: http://www.daa.com.au/~james/software/pygtk/
+ This package contains the bindings.
 
 Package: python-gtk2-dev
 Architecture: all
@@ -72,8 +78,6 @@
 Description: GTK+ bindings: devel files
  This archive contains files that allow you to build wrappers for addon
  that interoperate python-gtk2 (pygtk).
- .
- URL: http://www.daa.com.au/~james/software/pygtk/
 
 Package: python-glade2
 Architecture: any
@@ -94,8 +98,6 @@
  makes it very easy to create a user interface. In the target 
  application you just need to load the interface description from 
  the .glade file instead of constructing the GUI at runtime.
- .
- URL: http://www.daa.com.au/~james/software/pygtk/
 
 Package: python-gtk2-doc
 Architecture: all
@@ -106,7 +108,7 @@
 Suggests: devhelp, python-glade2
 Description: Python bindings for the GTK+ widget set - documentation
  This package contains the documentation and API reference for the 
- python bindings of the Pango, ATK, GDK, GTK+ and Glade libraries.
+ Python bindings of the Pango, ATK, GDK, GTK+ and Glade libraries.
  It is well structured and easy to use.
  .
  The documentation can be browsed with the devhelp documentation 
@@ -114,3 +116,34 @@
  .
  This package also provides several examples showing how to use these 
  bindings to build simple GUI applications.
+
+Package: python-gtk2-dbg
+Architecture: any
+Priority: extra
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+	 python-dbg,
+         python-gtk2 (= ${binary:Version}),
+         python-numeric-dbg,
+         python-cairo-dbg,
+         python-gobject-dbg
+Description: Python bindings for the GTK+ widget set - debugging symbols
+ PyGTK lets you to easily create programs with the GTK+ graphical 
+ interface using the Python programming language.
+ .
+ This archive contains debugging symbols to debug GTK+ Python applications
+
+Package: python-glade2-dbg
+Architecture: any
+Priority: extra
+Depends: python-glade2 (= ${binary:Version}),
+         python-dbg,
+         python-gtk2-dbg,
+         ${shlibs:Depends}
+Description: GTK+ bindings: Glade support (debug extension)
+ Contains bindings for the glade library from use within Python. Glade
+ makes it very easy to create a user interface. In the target 
+ application you just need to load the interface description from 
+ the .glade file instead of constructing the GUI at runtime.
+ .
+ This package contains the extension built for the Python debug interpreter.

Modified: desktop/experimental/pygtk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/copyright?rev=15141&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/copyright (original)
+++ desktop/experimental/pygtk/debian/copyright Fri Mar 14 18:42:38 2008
@@ -5,6 +5,12 @@
         <http://ftp.gnome.org/pub/GNOME/sources/pygtk/>
 
 Upstream Author: James Henstridge <james at daa.com.au>
+
+Copyright (C) 1998-2006  James Henstridge
+Copyright (C) 2004-2006  Johan Dahlin
+Copyright (C) 2005-2006  John Finlay
+Copyright (C) 2005       Gustavo Carneiro
+Copyright (C) 2007       Gian Mario Tagliaretti
 
 Copyright:
 

Modified: desktop/experimental/pygtk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/pygtk/debian/rules?rev=15141&op=diff
==============================================================================
--- desktop/experimental/pygtk/debian/rules (original)
+++ desktop/experimental/pygtk/debian/rules Fri Mar 14 18:42:38 2008
@@ -18,6 +18,8 @@
 PYVERS := $(shell pyversions --requested --version debian/control)
 PYDEFAULTVER := $(shell pyversions --default --version)
 
+.PRECIOUS: build-%/configure-stamp dbg-build-%/configure-stamp
+
 build-%/configure-stamp:
 	dh_testdir
 	mkdir -p build-$*
@@ -29,9 +31,23 @@
 build-%/build-stamp: build-%/configure-stamp
 	dh_testdir
 	$(MAKE) -C build-$*
+	xvfb-run $(MAKE) -C build-$* check
 	touch $@
 
-build: apply-patches $(PYVERS:%=build-%/build-stamp)
+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 $@
+
+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
@@ -59,7 +75,16 @@
 	mkdir debian/tmp/usr/include/python$*
 	mv debian/tmp/usr/include/pygtk-2.0 debian/tmp/usr/include/python$*
 
-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-gtk2-dbg
+	find debian/python-gtk2-dbg ! -type d ! -name '*.so' | xargs rm -f
+	find debian/python-gtk2-dbg -depth -empty -exec rmdir {} \;
+	mkdir -p debian/python-glade2-dbg/usr/lib/python$*/site-packages/gtk-2.0/gtk
+	mv debian/python-gtk2-dbg/usr/lib/python$*/site-packages/gtk-2.0/gtk/glade.so debian/python-glade2-dbg/usr/lib/python$*/site-packages/gtk-2.0/gtk/
+
+install: build install-clean $(PYVERS:%=install-%) $(PYVERS:%=dbg-install-%)
 	# check that all builds with various Python runtimes produced the same
 	# *.defs files and codegen (or fail)
 	for v in $(PYVERS); do \
@@ -85,12 +110,16 @@
 	# install rtupdate script to handle Python default runtime change
 	install -d debian/python-gtk2-dev/usr/share/python/runtime.d
 	install debian/python-gtk2-dev.rtupdate debian/python-gtk2-dev/usr/share/python/runtime.d
+	for i in $$(find debian/python-*-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 debian/tmp-*
-	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
@@ -125,7 +154,8 @@
 	dh_installdocs -s
 	dh_installexamples -s
 	dh_installchangelogs ChangeLog -s
-	dh_strip -s
+	dh_strip -ppython-gtk2 --dbg-package=python-gtk2-dbg
+	dh_strip -ppython-glade2 --dbg-package=python-glade2-dbg
 	dh_link -s
 	dh_compress -s -X.py -X.glade
 	dh_fixperms -s




More information about the pkg-gnome-commits mailing list