2006-06-24 01:40:56 +05:30
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2014-04-20 13:48:21 +05:30
|
|
|
# Uncomment this to turn on verbose mode.
|
2018-02-19 11:58:36 +05:30
|
|
|
#export DH_VERBOSE=1
|
|
|
|
#export DH_OPTIONS=-v
|
|
|
|
export PYBUILD_NAME=gramps
|
|
|
|
export PYBUILD_INSTALL_ARGS_python3=--resourcepath=/usr/share --force
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-03-27 19:47:44 +05:30
|
|
|
%:
|
2015-06-19 19:49:27 +05:30
|
|
|
dh $@ --with python3 --buildsystem=pybuild
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2018-02-19 12:04:16 +05:30
|
|
|
# Override auto test to enable nose tests
|
2013-11-30 15:45:11 +05:30
|
|
|
override_dh_auto_test:
|
2018-02-19 11:58:36 +05:30
|
|
|
HOME=$(CURDIR)/build \
|
|
|
|
nosetests3 -vv \
|
|
|
|
--exclude=TestcaseGenerator \
|
|
|
|
--exclude=test4_arbitrary_uncode_path \
|
|
|
|
--exclude-dir=gramps/plugins/test/ \
|
|
|
|
gramps
|
2013-11-30 15:45:11 +05:30
|
|
|
|
2014-04-20 13:48:21 +05:30
|
|
|
# Override of auto_install to remove information from package
|
2013-11-30 15:45:11 +05:30
|
|
|
override_dh_auto_install:
|
2018-02-19 11:58:36 +05:30
|
|
|
dh_installchangelogs NEWS
|
|
|
|
dh_auto_install
|
2013-11-30 15:45:11 +05:30
|
|
|
# Remove install file as it is not needed by package users
|
2018-02-19 11:58:36 +05:30
|
|
|
rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/INSTALL
|
|
|
|
# Remove NEWS file as it is now installed as the changelog
|
|
|
|
rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/NEWS
|
|
|
|
#Remove license information in COPYING file & link to system license
|
|
|
|
rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING
|
|
|
|
ln -s /usr/share/common-licenses/GPL-2 $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING
|
2014-04-20 13:48:21 +05:30
|
|
|
|
2018-02-19 11:58:36 +05:30
|
|
|
# Fix clean target
|
|
|
|
override_dh_clean:
|
|
|
|
rm -rf data/tips.xml
|
|
|
|
rm -rf gramps/plugins/lib/holidays.xml
|
|
|
|
rm -rf po/.intltool-merge-cache
|
|
|
|
dh_clean
|