1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME = freecontact
Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description)
%:
dh $@ --with python2,python3 --buildsystem=pybuild --builddirectory=$(CURDIR)/builddir
override_dh_gencontrol:
dh_gencontrol -- '-VDescription=$(Description)'
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/test/test01.py" \
dh_auto_test || true
|