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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=TileStache
export PYBUILD_TEST_NOSE=1
PREFIX := $(CURDIR)/debian/tilestache/
%:
dh $@ \
--with python2 \
--buildsystem pybuild
override_dh_auto_test:
OFFLINE_TESTS=1 NO_DATABASE=1 dh_auto_test
override_dh_auto_install:
dh_auto_install
rm -rf $(PREFIX)/usr/share/tilestache
# rename the binaries
for p in tilestache-server.py tilestache-seed.py tilestache-render.py tilestache-list.py tilestache-compose.py tilestache-clean.py; do \
mv $(PREFIX)/usr/bin/$$p $(PREFIX)/usr/bin/$$(basename $$p .py); \
done
|