2013-03-26 21:40:05 +05:30
|
|
|
#!/usr/bin/make -f
|
2013-11-30 15:34:54 +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 18:45:45 +05:30
|
|
|
%:
|
2013-12-03 21:44:10 +05:30
|
|
|
dh $@ --with python --buildsystem=pybuild
|
2013-11-30 15:34:54 +05:30
|
|
|
|
|
|
|
# Override auto test because upstream do not use the standard unittest discover
|
|
|
|
override_dh_auto_test:
|
2010-03-10 15:15:30 +05:30
|
|
|
|
2013-11-30 15:34:54 +05:30
|
|
|
# Override of auto_build to force python 3
|
|
|
|
override_dh_auto_build:
|
2013-12-03 21:44:10 +05:30
|
|
|
python setup.py build
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-11-30 15:34:54 +05:30
|
|
|
# Override of auto_install to force python 3
|
|
|
|
override_dh_auto_install:
|
2013-12-03 21:44:10 +05:30
|
|
|
python setup.py install --root=debian/gramps --install-layout=deb
|
2013-11-30 15:34:54 +05:30
|
|
|
# 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
|