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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
export DH_VERBOSE=1
VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
# for backport on stable without bpo
WITH_SPHINXDOC = $(shell if [ -x /usr/bin/dh_sphinxdoc ]; then echo "--with sphinxdoc"; fi)
get-orig-source:
uscan --force-download --upstream-version $(VERSION)
override_dh_auto_clean:
dh_auto_clean
rm -rf build
rm -f lib/taurus/qt/qtgui/resource/*.rcc
rm -f lib/taurus/qt/qtgui/resource/*.qrc
rm -rf doc/source/devel/api
rm -f doc/source/devel/catalog.html
rm -f lib/taurus/qt/qtgui/resource/catalog.html
override_dh_auto_build:
dh_auto_build -- --no-doc --with-extra-widgets
python setup.py build_doc --external-img-tools
override_dh_auto_install:
dh_auto_install -- --skip-build --no-doc
dh_numpy
override_dh_installdocs:
dh_installdocs
# Replace duplicate files with symlinks
rdfind -outputname /dev/null -makesymlinks true debian/python-taurus-doc
# Fix those symlinks to make them relative
symlinks -r -s -c debian/python-taurus-doc
%:
dh $@ --with python2 $(WITH_SPHINXDOC)
.PHONY: get-orig-source
|