#!/usr/bin/make -f # -*- makefile -*- # # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=logilab-common PACKAGE3:=python3-logilab-common %: dh $@ --with python3 --buildsystem=pybuild override_dh_auto_install: dh_auto_install # rename logilab-pytest and its man page for python3k mv debian/$(PACKAGE3)/usr/bin/logilab-pytest debian/$(PACKAGE3)/usr/bin/logilab-pytest3 sed -i 's/python -u/python3 -u/' debian/$(PACKAGE3)/usr/bin/logilab-pytest3 install -D docs/logilab-pytest.1 debian/$(PACKAGE3)/usr/share/man/man1/logilab-pytest3.1 sed -i 's/logilab-pytest/logilab-pytest3/' debian/$(PACKAGE3)/usr/share/man/man1/logilab-pytest3.1 gzip debian/$(PACKAGE3)/usr/share/man/man1/logilab-pytest3.1 override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) tox -e py3 endif