File: rules

package info (click to toggle)
python-mpd 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 432 kB
  • sloc: python: 2,354; makefile: 178; sh: 12
file content (37 lines) | stat: -rwxr-xr-x 1,135 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
27
28
29
30
31
32
33
34
35
36
37
#!/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_installdocs:
	dh_installdocs -ppython-mpd-doc --doc-main-package=python-mpd-doc
	dh_installdocs --remaining-packages

override_dh_installexamples:
	dh_installexamples -ppython-mpd-doc --doc-main-package=python-mpd-doc
	dh_installexamples --remaining-packages

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/python*/dist-packages/mpd/test.py
	rm -f debian/tmp/usr/lib/python*/dist-packages/mpd/*.py[co]
	rm -fr debian/tmp/usr/lib/python*/dist-packages/mpd/__pycache__
	rm -fr debian/tmp/usr/share/devhelp/books/python-mpd2/_static
	dh_install

override_dh_missing:
	dh_missing --fail-missing