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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME=pyvcf
examplesdir=debian/python-$(PYBUILD_NAME)-examples/usr/share/doc/python-$(PYBUILD_NAME)-examples
helperdir=debian/$(PYBUILD_NAME)/usr
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_install:
dh_install
# move testdata to separate dir
mkdir -p $(examplesdir)
mv `find debian/python-$(PYBUILD_NAME) -type d -name test | head -n 1` $(examplesdir)
find debian/python3-$(PYBUILD_NAME) -type d -name test | xargs rm -rf
find $(examplesdir) -name "*.pyc" -delete
mkdir -p $(helperdir)
mv debian/python3-$(PYBUILD_NAME)/usr/bin $(helperdir)
# strip .py extension
for py in $(helperdir)/bin/*.py ; do \
mv $${py} $(helperdir)/bin/`basename $${py} .py` ; \
done
rm -rf debian/python-$(PYBUILD_NAME)/usr/bin
get-orig-source:
. debian/get-orig-source
|