| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
export PYBUILD_NAME=flask-session |
| 4 |
%: |
| 5 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 6 |
#tests are failing for reasons as yet unknown. |
| 7 |
override_dh_auto_test: |
| 8 |
# Build sphinx HTML documentation |
| 9 |
override_dh_auto_build: |
| 10 |
dh_auto_build |
| 11 |
PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -d debian/doctrees -N -bhtml docs/ debian/html |
| 12 |
# Fix privacy-breach-generic |
| 13 |
execute_before_dh_sphinxdoc: |
| 14 |
find debian/python-flask-session-doc/ -name '*.html' -exec sed -i 's/src=/""/g' {} \; |
| 15 |
find debian/python-flask-session-doc/ -name '*.html' -exec sed -i 's/<link rel=/""/g' {} \; |
| 16 |
find debian/python-flask-session-doc/ -name '*.js' -delete |
| 17 |
#Fix duplicate-files |
| 18 |
jdupes -rl debian/python-flask-session-doc/usr |
| 19 |
|
| 20 |
#fix package-contains-empty-director |
| 21 |
override_dh_link: |
| 22 |
dh_link |
| 23 |
find debian/python-flask-session-doc/ -type d -empty -delete |
| 24 |
|