1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
export PYBUILD_NAME=itango
# Disabling tests to prevent unittest loader from misinterpreting the
# itango/ directory as a test module, which leads to a _FailedTest error.
# The upstream package does not provide test files, causing the unittest to fail.
export PYBUILD_DISABLE=test
# sphinxdoc is available only when building the arch-all packages
WITH_SPHINXDOC = $(shell if [ -x /usr/bin/dh_sphinxdoc ]; then echo "--with sphinxdoc"; fi)
%:
dh $@ --with python3 $(WITH_SPHINXDOC) --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman doc/ build/man
cp build/man/itango.1 build/man/itango3.1
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/ build/sphinx/html
override_dh_auto_clean:
dh_auto_clean
rm -rf build
rm -rf *.egg-info
|