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
|
2013-12-04 16:54:30 +05:30
|
|
|
export PYBUILD_NAME=python-gramps
|
2006-06-24 01:40:56 +05:30
|
|
|
|
2013-03-27 18:45:45 +05:30
|
|
|
%:
|
2013-12-04 16:54:30 +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
|
|
|
|
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-04 16:54:30 +05:30
|
|
|
python setup.py install --root=debian/python-gramps --install-layout=deb
|
2013-11-30 15:34:54 +05:30
|
|
|
# Remove duplicate copyright information
|
2013-12-04 16:54:30 +05:30
|
|
|
rm 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
|
2013-12-04 16:54:30 +05:30
|
|
|
rm debian/python-gramps/usr/share/doc/gramps/INSTALL
|
2013-11-30 15:34:54 +05:30
|
|
|
# Remove duplicate license information
|
2013-12-04 16:54:30 +05:30
|
|
|
rm debian/python-gramps/usr/share/doc/gramps/LICENSE
|