X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=debian%2Frules;h=209a1ff11bec20a89fc07c8b8e24462082a8a5da;hb=37009542edddb1a4cc46fae79c04db61b77b4447;hp=9f220d3849aae662787b464e1694527886eabb2f;hpb=a9acfbac048624e0ee35bb0401b974ba0bd2b244;p=pkg-rrdtool.git diff --git a/debian/rules b/debian/rules index 9f220d3..209a1ff 100755 --- a/debian/rules +++ b/debian/rules @@ -12,11 +12,7 @@ include /usr/share/quilt/quilt.make RUBY_VERS := 1.8 1.9 RUBY_DEFAULT_VERS := 1.8 -#Python versions to build for. The work-around-doko way. -PY_VERS := $(shell set -e; \ - for py in `pysupport-parseversions debian/pyversions`; do \ - if [ -x /usr/bin/python$$py ]; then echo $$py; fi; \ - done) +PY_VERS := $(shell pyversions -vr) #tcl version we're building for TCL_VERS := $(shell dpkg -s tcl-dev | grep '^Depends' \ @@ -75,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 @@ -90,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 @@ -144,7 +140,7 @@ install-common-stamp: build-arch-stamp make install DESTDIR=$(CURDIR)/debian/tmp # we don't want .txt and .pod documentation in the package rm -rf debian/tmp/usr/share/doc/rrdtool/txt - dh_install --sourcedir=$(CURDIR)/debian/tmp --list-missing + dh_install --sourcedir=$(CURDIR)/debian/tmp --fail-missing touch $@ @@ -167,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