1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
export PYBUILD_NAME=podcastparser
export PYBUILD_VERBOSE=1
export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" --date "@$(SOURCE_DATE_EPOCH)")
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_installdocs:
(cd doc ; SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" $(MAKE) html)
(cd doc ; SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" $(MAKE) man)
dh_installdocs
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
PYTHON=python3 make test
endif
|