Code

Build Python dbg modules into rrdtool-dbg.
authorBernd Zeimetz <bernd@bzed.de>
Mon, 1 Jun 2009 11:22:07 +0000 (13:22 +0200)
committerBernd Zeimetz <bernd@bzed.de>
Mon, 1 Jun 2009 11:22:07 +0000 (13:22 +0200)
debian/control
debian/rules

index 7d056cf331e1241a78cc27997cb1414ab201708e..4c4fa9cbd505ef1d1c39ba9160edcdaeb8cfbb84 100644 (file)
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 5.0.38), groff, autotools-dev, quilt,
  libxml2-dev,
  tcl-dev,
  perl (>= 5.8.0),
- python-all-dev (>= 2.3.5-10), python-support (>= 0.4),
+ python-all-dev (>= 2.3.5-10), python-all-dbg (>= 2.3.5-10),
+ python-support (>= 0.7.1),
  ruby1.8, ruby1.8-dev, ruby1.9, ruby1.9-dev
 Homepage: http://oss.oetiker.ch/rrdtool/
 Vcs-Browser: http://git.snow-crash.org/?p=pkg-rrdtool.git;a=summary
@@ -39,10 +40,12 @@ Package: rrdtool-dbg
 Architecture: any
 Priority: extra
 Section: debug
-Depends: rrdtool (= ${binary:Version}), librrd4 (= ${binary:Version})
+Depends: rrdtool (= ${binary:Version}), librrd4 (= ${binary:Version}),
+ ${python:Depends}, ${misc:Depends}
 Recommends: librrds-perl (= ${binary:Version}),
  rrdtool-tcl (= ${binary:Version}), python-rrdtool (= ${binary:Version}),
- librrd-ruby1.8 (= ${binary:Version}), librrd-ruby1.9 (= ${binary:Version})
+ librrd-ruby1.8 (= ${binary:Version}), librrd-ruby1.9 (= ${binary:Version}),
+ python-all-dbg
 Description: Time-series data storage and display system (debugging symbols)
  The Round Robin Database Tool (RRDtool) is a system to store and display
  time-series data (e.g. network bandwidth, machine-room temperature,
index cce2ae287370bd2420d7ad5d2a8dac9508b802a3..209a1ff11bec20a89fc07c8b8e24462082a8a5da 100755 (executable)
@@ -71,7 +71,7 @@ endif
 
 build: build-arch build-indep 
 
-build-arch: build-arch-stamp $(PY_VERS:%=build-python%)
+build-arch: build-arch-stamp $(PY_VERS:%=build-python%) $(PY_VERS:%=build-python%-dbg)
 build-arch-stamp: config.status 
        make
        #Fix library path to tcl bindings
@@ -86,7 +86,7 @@ build-arch-stamp: config.status
 build-python%: build-arch-stamp
        set -e ;\
         cd bindings/python ;\
-        BUILDLIBDIR=../../src/.libs LIBDIR=../../src/.libs python$* setup.py build
+        BUILDLIBDIR=../../src/.libs LIBDIR=../../src/.libs python$* setup.py build ;\
        touch $@
 
 build-indep: build-arch-stamp
@@ -163,7 +163,8 @@ install-python%: install-common-stamp
        dh_testroot
        set -e ;\
         cd bindings/python ;\
-        python$* setup.py install --root=$(CURDIR)/debian/python-rrdtool
+        python$* setup.py install --root=$(CURDIR)/debian/python-rrdtool ;\
+        python$*-dbg setup.py install --root=$(CURDIR)/debian/rrdtool-dbg
 
 
 binary-indep: build-indep install-indep