#!/usr/bin/make -f #DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/default.mk PYBUILD_NAME = pbbarcode %: LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="find tests -name '*.py' | xargs nosetests -v" \ dh_auto_test endif override_dh_install: mkdir -p debian/$(DEB_SOURCE)/usr/share/man/man1 rst2man --quiet \ doc/PbbarcodeFunctionalSpecification.rst \ > debian/$(DEB_SOURCE)/usr/share/man/man1/pbbarcode.1 dh_install override_dh_installdocs: dh_installdocs find debian -name "*.pyc" -delete