| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
export PYBUILD_NAME=soxr |
| 4 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 5 |
export CMAKE_ARGS := -DCMAKE_VERBOSE_MAKEFILE=ON |
| 6 |
export DEB_CXXFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2 |
| 7 |
export PYBUILD_TEST_ARGS=-v |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_before_dh_sphinxdoc: |
| 13 |
PYTHONPATH=$(shell pybuild --print build_dir -p $$(py3versions -dv) | awk -F:\ '{ print $$2}') \ |
| 14 |
http_proxy='http://127.0.0.1:9/' python3 -m sphinx -d debian/doctrees \ |
| 15 |
-N -bhtml docs/ debian/python-soxr-doc/usr/share/doc/python-soxr-doc/html |
| 16 |
# Fix lintian privacy-breach-generic |
| 17 |
find debian/python-soxr-doc/ -name '*.html' -exec sed -i 's/.*https:\/\/img\.shields\.io\/.*//g' {} \; |
| 18 |
#Fix lintian font-in-non-font-package / package-installs-python-pycache-dir /extra-license-file |
| 19 |
find debian/python-soxr-doc/ -type d -name webfonts -exec rm -r {} + |
| 20 |
find debian/python-soxr-doc/ -type d -name __pycache__ -exec rm -r {} + |
| 21 |
find debian/python-soxr-doc/ -name 'LICENSE.txt' -delete |