summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a1ef5441cc90aac41e5b61196bc5eb2e06a6fd58 (plain)
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
#!/usr/bin/make -f
# Should be include-links, but that somehow fails.
export DH_PYCENTRAL=nomove
export DEBVER=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
export CFLAGS=-Wno-write-strings -DCOMPAT_0_7

%:
	dh --with python-central $@

override_dh_auto_build:
	dh_auto_build
	python setup.py build_sphinx

override_dh_installdocs:
	dh_installdirs -ppython-apt-dev usr/share/doc/python-apt
	dh_installdirs -ppython-apt-doc usr/share/doc/python-apt
	dh_installdocs --link-doc=python-apt

override_dh_strip:
	dh_strip --dbg-package=python-apt-dbg
	
override_dh_compress:
	dh_compress -X.js -X_static/* -X _sources/* -X_sources/*/* -X.inv

override_dh_auto_test:
	set -e; for python in $(shell pyversions -r); do \
		$$python tests/test_all.py -q; \
	done;

override_dh_pycentral:
	dh_pycentral --exclude=migrate-0.8.py