Simplify disabling of tests
[debian-pyxattr.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 # This has to be exported to make some magic below work.
7 export DH_OPTIONS
8
9 export PYBUILD_NAME = pyxattr
10 export PYBUILD_DISABLE = test
11
12 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
13 DPKG_EXPORT_BUILDFLAGS = 1
14 include /usr/share/dpkg/buildflags.mk
15
16 %:
17         dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
18
19 override_dh_auto_build:
20         dh_auto_build
21         PYTHONPATH=. http_proxy='127.0.0.1:9' make doc
22
23 override_dh_strip:
24         dh_strip -ppython-pyxattr --dbgsym-migration='python-pyxattr-dbg (<< 0.5.6-1~)'
25         dh_strip -ppython3-pyxattr --dbgsym-migration='python3-pyxattr-dbg (<< 0.5.6-1~)'
26
27 override_dh_installdocs:
28         dh_installdocs -A README.rst
29
30 override_dh_installchangelogs:
31         dh_installchangelogs -A NEWS