| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
export DH_VERBOSE = 1 |
| 6 |
export PYBUILD_NAME = ananta |
| 7 |
|
| 8 |
export PY3DEFAULT = $(shell py3versions -d) |
| 9 |
export PYTHONPATH_BUILD = debian/python3-$(PYBUILD_NAME)/usr/lib/$(PY3DEFAULT)/dist-packages |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
override_dh_installman: |
| 15 |
PYTHONPATH=$(PYTHONPATH_BUILD) \ |
| 16 |
help2man -n "run a command on multiple SSH hosts in parallel" \ |
| 17 |
--version-string=$(DEB_VERSION_UPSTREAM) \ |
| 18 |
--no-info --no-discard-stderr debian/$(PYBUILD_NAME)/usr/bin/ananta > debian/ananta.1 |
| 19 |
dh_installman |
| 20 |
|
| 21 |
override_dh_install: |
| 22 |
dh_install |
| 23 |
mkdir -p debian/ananta/usr |
| 24 |
mv debian/python3-$(PYBUILD_NAME)/usr/bin debian/ananta/usr/ |
| 25 |
|
| 26 |
override_dh_fixperms: |
| 27 |
dh_fixperms |
| 28 |
find debian -name '*.py' -exec chmod -x {} + |