gramps/debian/rules
2014-01-27 18:25:46 +01:00

26 lines
786 B
Makefile
Executable File

#!/usr/bin/make -f
# Remember to remove verbose option once testing is finished
DH_VERBOSE=1
export PYBUILD_NAME=gramps
%:
dh $@ --with python3 --buildsystem=pybuild
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# 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
# Need COPYING file into About dialog
#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