X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/24b3d57bcf320d9d7a90a40d5f6176b1f087ab3e..dad564fa66dd0ab52058f25a0eaf6a8e5b3c4316:/debian/rules diff --git a/debian/rules b/debian/rules index 35c429b..04d6f4e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,70 +1,10 @@ #! /usr/bin/make -f +%:; dh $@ --parallel --with python2 -export DH_COMPAT = 4 +export PYTHONS := $(shell pyversions -r) -DEFVERSION = 2.4 -VERSIONS = $(DEFVERSION) 2.3 2.5 - -build: build-stamp - -build-stamp: - for v in $(VERSIONS); do python$$v setup.py build; done - touch build-stamp - -clean: - dh_clean - make clean - rm -rf build build-stamp - -install: build - dh_clean - for v in $(VERSIONS); do \ - python$$v setup.py build; \ - python$$v setup.py install --root=debian/python$$v-catacomb; \ - done - mkdir -p debian/python-catacomb - mkdir -p debian/python-catacomb-bin/usr/bin - mv debian/python$(DEFVERSION)-catacomb/usr/bin/* \ - debian/python-catacomb-bin/usr/bin - for v in $(VERSIONS); do \ - rm -rf debian/python$$v-catacomb/usr/bin; \ - done - -binary-indep: install - dh_testdir -i - dh_testroot -i - dh_compress -i - dh_installdocs -i - dh_python -i - dh_gencontrol -i - dh_fixperms -i - dh_installdeb -i - dh_md5sums -i - dh_builddeb -i - -binary-arch: install - dh_testdir -a - dh_testroot -a - dh_compress -a - dh_installdocs -a - dh_strip -a - dh_shlibdeps -a - dh_python -a - dh_gencontrol -a - dh_fixperms -a - dh_installdeb -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-indep binary-arch - -source: - rm -rf dist/*.tar.gz dist/=deb= - python$(DEFVERSION) setup.py sdist - mkdir dist/=deb= - cd dist/=deb=; tar xvfz ../*.tar.gz - d=`pwd`; cd ..; dpkg-source -i -i'/\.svn/' -b $$d/dist/=deb=/* - rm -rf dist/=deb= - -.PHONY: binary binary-arch binary-indep clean install source build +override_dh_auto_test: + dh_auto_test -- OPTS-check=-V +override_dh_auto_install: + dh_auto_install -- prefix=/usr