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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
export PYBUILD_NAME = pylibacl
export PYBUILD_DISABLE = test
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
# Also build the documentation
override_dh_auto_build:
dh_auto_build
PYTHONPATH=. http_proxy='127.0.0.1:9' make doc
# ... and clean it
override_dh_auto_clean:
dh_auto_clean
$(MAKE) clean
override_dh_strip:
dh_strip -ppython3-pylibacl --dbg-package=python3-pylibacl-dbg
override_dh_installdocs:
dh_installdocs --link-doc=python3-pylibacl -ppython3-pylibacl-dbg
dh_installdocs -A --remaining-packages README.md
override_dh_installchangelogs:
dh_installchangelogs -A NEWS
|