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
|
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYBUILD_NAME=m2crypto
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# bindings needed inplace for docs
export PYBUILD_AFTER_BUILD_python3=cp {build_dir}/M2Crypto/*.so M2Crypto/
export PYBUILD_TEST_ARGS=--ignore tests/test_ssl.py
export http_proxy=
export https_proxy=
# override settings from pybuild, unset them is needed for tests
%:
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
dh $@ --with python3 --buildsystem=pybuild
else
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
endif
override_dh_auto_install:
dh_auto_install
ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N doc debian/python-m2crypto-doc/usr/share/doc/python-m2crypto-doc/html
endif
override_dh_installdocs:
ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
rst2html -r 5 README.rst .pybuild/README.html
LC_LANG=C.UTF-8 links -dump .pybuild/README.html > .pybuild/README
endif
dh_installdocs -A .pybuild/README
|