File: rules

package info (click to toggle)
python-mpd 3.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: python: 3,021; makefile: 187; sh: 9
file content (37 lines) | stat: -rwxr-xr-x 1,132 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

%:
	dh $@ --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_auto_test:
	set -e; for v in $$(py3versions -s); do \
		"$$v" -m unittest -v mpd.tests; \
	done

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