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

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Dec 28 11:01:08 UTC 2008


    Date: Sunday, December 28, 2008 @ 11:01:06
  Author: morph
Revision: 7203

  - added -dbg package, adding python-all-dbg to build-depends
  - uncapitalized short descriptions of all binary packages
* debian/rules
  - added -dbg building rules; thanks to Ezequiel Lara G?\195?\179mez for the (partial)
    patch; Closes: #470990

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

Modified: packages/pyinotify/trunk/debian/changelog
===================================================================
--- packages/pyinotify/trunk/debian/changelog	2008-12-28 07:41:02 UTC (rev 7202)
+++ packages/pyinotify/trunk/debian/changelog	2008-12-28 11:01:06 UTC (rev 7203)
@@ -1,4 +1,4 @@
-pyipyinotify (0.7.1-2) UNRELEASED; urgency=low
+pyinotify (0.7.1-2) UNRELEASED; urgency=low
 
   [ Piotr Ożarowski ]
   * Vcs-Svn, Vcs-Browser and Homepage fields added
@@ -6,10 +6,14 @@
   [ Sandro Tosi ]
   * debian/control
     - uniforming Vcs-Browser field
-  * debian/control
     - switch Vcs-Browser field to viewsvn
+    - added -dbg package, adding python-all-dbg to build-depends
+    - uncapitalized short descriptions of all binary packages
+  * debian/rules
+    - added -dbg building rules; thanks to Ezequiel Lara Gómez for the (partial)
+      patch; Closes: #470990
 
- -- Piotr Ożarowski <piotr at debian.org>  Sat,  6 Oct 2007 23:46:52 +0200
+ -- Sandro Tosi <morph at debian.org>  Sun, 28 Dec 2008 11:56:02 +0100
 
 pyinotify (0.7.1-1) unstable; urgency=low
   

Modified: packages/pyinotify/trunk/debian/control
===================================================================
--- packages/pyinotify/trunk/debian/control	2008-12-28 07:41:02 UTC (rev 7202)
+++ packages/pyinotify/trunk/debian/control	2008-12-28 11:01:06 UTC (rev 7203)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Mikhail Gusarov <dottedmag at dottedmag.net>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-support (>= 0.3), quilt (>= 0.40)
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), python-all-dbg, python-support (>= 0.3), quilt (>= 0.40)
 Standards-Version: 3.7.2
 Homepage: http://pyinotify.sourceforge.net/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyinotify/trunk/
@@ -16,7 +16,7 @@
 Replaces: python2.3-pyinotify (<< 0.5.2-1.1), python2.4-pyinotify (<< 0.5.2-1.1)
 Conflicts: python2.3-pyinotify (<< 0.5.2-1.1), python2.4-pyinotify (<< 0.5.2-1.1)
 XB-Python-Version: ${python:Versions}
-Description: Simple Linux inotify Python bindings
+Description: simple Linux inotify Python bindings
  pyinotify is a simple wrapper for the Linux inotify mechanism.
  .
  inotify is a Linux Kernel feature available since 2.6.13. inotify makes
@@ -27,10 +27,22 @@
 Section: doc
 Depends: ${python:Depends}
 Suggests: python-pyinotify
-Description: Simple Linux inotify Python bindings
+Description: simple Linux inotify Python bindings
  pyinotify is a simple wrapper for the Linux inotify mechanism.
  .
  inotify is a Linux Kernel feature available since 2.6.13. inotify makes
  it possible for applications to easily be notified of filesystem changes.
  .
  This package contains Inotify's documentation and examples.
+
+Package: python-pyinotify-dbg
+Architecture: any
+Priority: extra
+Depends: python-pyinotify (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, python-dbg
+Description: simple Linux inotify Python bindings (debug extension)
+ pyinotify is a simple wrapper for the Linux inotify mechanism.
+  .
+ inotify is a Linux Kernel feature available since 2.6.13. inotify makes
+ it possible for applications to easily be notified of filesystem changes.
+ .
+ This package contains Inotify's debug extension.

Modified: packages/pyinotify/trunk/debian/rules
===================================================================
--- packages/pyinotify/trunk/debian/rules	2008-12-28 07:41:02 UTC (rev 7202)
+++ packages/pyinotify/trunk/debian/rules	2008-12-28 11:01:06 UTC (rev 7203)
@@ -8,6 +8,7 @@
 # List of python versions this package will be compiled for.
 # This list has to match the package list in debian/control.
 PYVERS = $(shell pyversions -r)
+CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 
 configure: configure-stamp
 configure-stamp: patch
@@ -15,6 +16,9 @@
 	for python in $(PYVERS); do \
 	    "$${python}" setup.py config; \
 	done
+	for python in $(PYVERS); do \
+	    "$${python}-dbg" setup.py config; \
+	done
 	touch $@
 
 build:
@@ -27,6 +31,10 @@
 	for python in $(PYVERS); do \
 	    "$${python}" setup.py clean --all; \
 	done
+	for python in $(PYVERS); do \
+	    "$${python}-dbg" setup.py clean --all; \
+	done
+
 	$(MAKE) clean
 
 	dh_clean
@@ -45,6 +53,12 @@
 	    $$python setup.py build --force; \
 	    $$python setup.py install --root=$(CURDIR)/debian/python-pyinotify; \
 	done
+	for python in $(PYVERS); do \
+	    $$python-dbg setup.py build --force; \
+	    $$python-dbg setup.py install --root=$(CURDIR)/debian/python-pyinotify-dbg; \
+	done
+	find debian/python-*-dbg ! -type d ! -name '*_d.so' | xargs rm -f
+	find debian/python-*-dbg -depth -empty -exec rmdir {} \;
 
 # Installing documentation in html/ subdirectory.
 	cp -R doc html
@@ -57,7 +71,7 @@
 	dh_installexamples -i -Xautopath.py
 	dh_installchangelogs -i ChangeLog
 	dh_link -i
-	dh_strip -i
+	dh_strip -i --dbg-package=python-pyinotify-dbg
 	dh_compress -i -Xexamples
 	dh_fixperms -i
 	dh_pysupport -i
@@ -74,7 +88,7 @@
 	dh_installdocs -a
 	dh_installchangelogs -a ChangeLog
 	dh_link -a
-	dh_strip -a
+	dh_strip -a --dbg-package=python-pyinotify-dbg
 	dh_compress -a
 	dh_fixperms -a
 	dh_pysupport -a




More information about the Python-modules-commits mailing list