File: rules

package info (click to toggle)
python-mpd 0.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 356 kB
  • ctags: 241
  • sloc: python: 1,240; makefile: 170; sh: 12
file content (26 lines) | stat: -rwxr-xr-x 803 bytes parent folder | download
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
#!/usr/bin/make -f

export PYBUILD_DISABLE=test

%:
	dh $@  --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	make -C doc devhelp
	# re-compress for reproducibility
	gunzip doc/_build/devhelp/python-mpd2.devhelp.gz
	gzip --best --no-name doc/_build/devhelp/python-mpd2.devhelp
	make -C doc html

override_dh_installchangelogs:
	dh_installchangelogs doc/changes.rst

override_dh_install:
	install -d debian/tmp/usr/share/devhelp/books
	cp -a doc/_build/devhelp debian/tmp/usr/share/devhelp/books/python-mpd2
	rm -f debian/tmp/usr/lib/*/dist-packages/mpd_test.py
	rm -f debian/tmp/usr/lib/*/dist-packages/*.py[co]
	rm -fr debian/tmp/usr/lib/*/dist-packages/__pycache__
	rm -fr debian/tmp/usr/share/devhelp/books/python-mpd2/_static
	dh_install --fail-missing