The following commit has been merged in the master branch:
commit cca3ffe86222c2af6d8046b83fc0abae749d021e
Author: Antonio Valentino <antonio.valent...@tiscali.it>
Date:   Thu Feb 23 21:22:41 2012 +0100

    Provide -dbg package

diff --git a/debian/changelog b/debian/changelog
index 875ed18..6135450 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,9 @@ pyepr (0.6-1) unstable; urgency=low
   * Call dh_numpy for an appropriate managements of dependency from
     numpy
   * Honor nodoc and noopt DEB_BUILD_OPTIONS
+  * Provide -dbg package
 
- -- Antonio Valentino <antonio.valent...@tiscali.it>  Thu, 23 Feb 2012 
20:30:14 +0100
+ -- Antonio Valentino <antonio.valent...@tiscali.it>  Thu, 23 Feb 2012 
21:35:40 +0100
 
 pyepr (0.5-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index b287858..9943a6f 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
 Uploaders: Antonio Valentino <antonio.valent...@tiscali.it>
-Build-Depends: python-all-dev, debhelper (>= 8.1),
-               cython (>= 0.13), python-numpy, libepr-api2-dev (>= 2.2),
+Build-Depends: python-all-dev, python-all-dbg, debhelper (>= 8.1.0~),
+               cython (>= 0.13), cython-dbg, python-numpy, python-numpy-dbg,
+               libepr-api2-dev (>= 2.2),
                python-sphinx (>= 1.0), texlive-latex-extra
 Standards-Version: 3.9.2
 Homepage: http://avalentino.github.com/pyepr
@@ -27,3 +28,25 @@ Description: Python ENVISAT Product Reader API
  to the data either on a geophysical (decoded, ready-to-use pixel
  samples) or on a raw data layer. The raw data access makes it possible
  to read any data field contained in a product file.
+
+Package: python-epr-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends},
+         ${sphinxdoc:Depends}, python-epr (= ${binary:Version})
+X-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Recommends: python-numpy-dbg
+Description: Python ENVISAT Product Reader API (debug extension)
+ PyEPR provides Python bindings for the ENVISAT Product Reader C API
+ (EPR API) for reading satellite data from ENVISAT ESA (European Space
+ Agency) mission.
+ .
+ PyEPR, as well as the EPR API for C, supports ENVISAT MERIS, AATSR
+ Level 1B and Level 2 and also ASAR data products. It provides access
+ to the data either on a geophysical (decoded, ready-to-use pixel
+ samples) or on a raw data layer. The raw data access makes it possible
+ to read any data field contained in a product file.
+ .
+ This package contains the extension built for the Python debug interpreter.
diff --git a/debian/rules b/debian/rules
index ade5c8f..eab8e30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+#PYVERS = $(shell pyversions -r -v)
+
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 export CFLAGS ?= -O0
 endif
@@ -30,9 +32,22 @@ override_dh_auto_clean:
 
 # suppress dh_auto_test since it requires a large download
 override_dh_auto_test:
-
+#ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+#      set -e -x;\
+#      for py in $(PYVERS); do \
+#              PYTHONPATH=$(CURDIR)/build/lib.*-$$py python$$py 
test/test_all.py ;\
+#              PYTHONPATH=$(CURDIR)/build/lib.*-$$py-pydebug python$$py-dbg 
test/test_all.py ;\
+#      done
+#endif
 
 override_dh_install:
+       # Install everything excluding the *_d.so debug extensions to python-epr
+       dh_install -X"*_d.so" "debian/tmp/*" -p python-epr
+
+       # Install the debug extensions to python-epr-dbg
+       dh_install "debian/tmp/usr/lib/python*/*-packages/*_d.so" -p 
python-epr-dbg
+
+       # Continue with regular dh_install
        dh_install
        dh_numpy
 

-- 
Python ENVISAT Product Reader API

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to