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 DH_VERBOSE = 1
export PYBUILD_NAME=soxr
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CMAKE_ARGS := -DCMAKE_VERBOSE_MAKEFILE=ON
export DEB_CXXFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2
export PYBUILD_TEST_ARGS=-v
%:
dh $@ --buildsystem=pybuild
execute_before_dh_sphinxdoc:
PYTHONPATH=$(shell pybuild --print build_dir -p $$(py3versions -dv) | awk -F:\ '{ print $$2}') \
http_proxy='http://127.0.0.1:9/' python3 -m sphinx -d debian/doctrees \
-N -bhtml docs/ debian/python-soxr-doc/usr/share/doc/python-soxr-doc/html
# Fix lintian privacy-breach-generic
find debian/python-soxr-doc/ -name '*.html' -exec sed -i 's/.*https:\/\/img\.shields\.io\/.*//g' {} \;
#Fix lintian font-in-non-font-package / package-installs-python-pycache-dir /extra-license-file
find debian/python-soxr-doc/ -type d -name webfonts -exec rm -r {} +
find debian/python-soxr-doc/ -type d -name __pycache__ -exec rm -r {} +
find debian/python-soxr-doc/ -name 'LICENSE.txt' -exec rm -r {} +
|