2006-06-24 01:40:56 +05:30
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2013-11-30 15:45:11 +05:30
|
|
|
# Remember to remove verbose option once testing is finished
|
|
|
|
DH_VERBOSE=1
|
|
|
|
export PYBUILD_NAME=gramps
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-03-27 19:47:44 +05:30
|
|
|
%:
|
2013-11-30 15:45:11 +05:30
|
|
|
dh $@ --with python3 --buildsystem=pybuild
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-11-30 15:45:11 +05:30
|
|
|
# Override auto test because upstream do not use the standard unittest discover
|
|
|
|
override_dh_auto_test:
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-11-30 15:45:11 +05:30
|
|
|
# Override of auto_build to force python 3
|
|
|
|
override_dh_auto_build:
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
# Override of auto_install to force python 3
|
|
|
|
override_dh_auto_install:
|
|
|
|
python3 setup.py install --root=debian/gramps --install-layout=deb
|
|
|
|
# Remove duplicate copyright information
|
|
|
|
rm debian/gramps/usr/share/doc/gramps/COPYING
|
|
|
|
# Remove install file as it is not needed by package users
|
|
|
|
rm debian/gramps/usr/share/doc/gramps/INSTALL
|
|
|
|
# Remove duplicate license information
|
|
|
|
rm debian/gramps/usr/share/doc/gramps/LICENSE
|