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.
|
|
|
|
export DH_VERBOSE=1
|
|
|
|
export DH_OPTIONS=-v
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-03-27 19:47:44 +05:30
|
|
|
%:
|
2015-06-19 19:43:58 +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
|
|
|
|
2014-04-20 13:48:21 +05:30
|
|
|
# Override of auto_build
|
2013-11-30 15:45:11 +05:30
|
|
|
override_dh_auto_build:
|
2015-06-18 18:32:25 +05:30
|
|
|
python3 setup.py build
|
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:
|
2014-04-20 13:48:21 +05:30
|
|
|
#dh_auto_install
|
2015-06-19 19:43:58 +05:30
|
|
|
python3 setup.py install --resourcepath=/usr/share --root=debian/python3-gramps --install-layout=deb
|
2014-04-20 13:48:21 +05:30
|
|
|
# Remove duplicate copyright information
|
2015-06-18 18:32:25 +05:30
|
|
|
rm $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/COPYING
|
2013-11-30 15:45:11 +05:30
|
|
|
# Remove install file as it is not needed by package users
|
2015-06-18 18:32:25 +05:30
|
|
|
rm $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/INSTALL
|
2013-11-30 15:45:11 +05:30
|
|
|
# Remove duplicate license information
|
2015-06-18 18:32:25 +05:30
|
|
|
rm $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/LICENSE
|
2015-06-19 19:43:58 +05:30
|
|
|
ln -s /usr/share/common-licenses/GPL-2 $(CURDIR)/debian/python3-gramps/usr/share/doc/gramps/COPYING
|
2014-04-20 13:48:21 +05:30
|
|
|
|
|
|
|
# Make css style sheets and png icons non-executable
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms
|
2015-05-28 23:06:24 +05:30
|
|
|
chmod a-x $(CURDIR)/debian/python3-gramps/usr/share/gramps/css/Web_*.css
|
2014-04-20 13:48:21 +05:30
|
|
|
|
|
|
|
# Avoid compressing COPYING file so that it can appear in the "About" dialog
|
|
|
|
override_dh_compress:
|
|
|
|
dh_compress -X COPYING
|