2013-03-26 21:40:05 +05:30
|
|
|
#!/usr/bin/make -f
|
2013-11-30 15:34:54 +05:30
|
|
|
|
2014-02-05 00:08:10 +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 18:45:45 +05:30
|
|
|
%:
|
2014-02-05 00:34:11 +05:30
|
|
|
dh $@ --with python2
|
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
|
|
|
|
2014-02-05 00:34:11 +05:30
|
|
|
# Override of auto_build
|
|
|
|
override_dh_auto_build:
|
|
|
|
python setup.py build
|
|
|
|
|
2014-02-05 00:08:10 +05:30
|
|
|
# Override of auto_install to remove information from package
|
2013-11-30 15:34:54 +05:30
|
|
|
override_dh_auto_install:
|
2014-02-06 19:43:39 +05:30
|
|
|
#dh_auto_install
|
2014-02-05 00:08:10 +05:30
|
|
|
# Remove duplicate copyright information
|
|
|
|
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/COPYING
|
2013-11-30 15:34:54 +05:30
|
|
|
# Remove install file as it is not needed by package users
|
2014-02-06 19:43:39 +05:30
|
|
|
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/INSTALL
|
2013-11-30 15:34:54 +05:30
|
|
|
# Remove duplicate license information
|
2014-02-06 19:43:39 +05:30
|
|
|
#rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/LICENSE
|
|
|
|
python setup.py install --root=debian/python-gramps --install-layout=deb
|
2014-02-05 00:08:10 +05:30
|
|
|
|
|
|
|
# Make css style sheets and png icons non-executable
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms
|
|
|
|
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/css/Web_*.css
|
|
|
|
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/22x22/gramps*.png
|
|
|
|
chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/16x16/gramps*.png
|
2014-02-06 19:43:39 +05:30
|
|
|
|
|
|
|
# Avoid compressing COPYING file so that it can appear in the "About" dialog
|
|
|
|
override_dh_compress:
|
|
|
|
dh_compress -X COPYING
|