diff --git a/debian/rules b/debian/rules
index db29a2455dfef68d8c1fc1676ecb820c17226d13..8856b128c257b6e760ee414c31c8f610b2c3aedd 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
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
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
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
+ find $(CURDIR)/debian/rrdtool-dbg -type f -name '*.egg-info' -print0 |\
+ xargs -0r rm -f
binary-indep: build-indep install-indep
dh_installdocs -a
echo 'tcl:Depends=tcl$(TCL_VERS) | tclsh' >> debian/rrdtool-tcl.substvars
dh_pysupport -ppython-rrdtool
+ dh_pysupport -prrdtool-dbg
dh_perl -a
dh_installman -a
dh_link -a