~ubuntu-branches/ubuntu/utopic/gramps/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Ross Gammon
  • Date: 2014-06-17 17:21:59 UTC
  • mto: (39.1.10 sid)
  • mto: This revision was merged to the branch mainline in revision 49.
  • Revision ID: package-import@ubuntu.com-20140617172159-p726lth3zkhpvkvw
Tags: upstream-4.0.4+dfsg
ImportĀ upstreamĀ versionĀ 4.0.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
export DH_VERBOSE=1
 
5
export DH_OPTIONS=-v
 
6
 
 
7
%:
 
8
        dh $@ --with python2
 
9
 
 
10
# Override auto test because upstream do not use the standard unittest discover
 
11
override_dh_auto_test:
 
12
 
 
13
# Override of auto_build
 
14
override_dh_auto_build:
 
15
        python setup.py build
 
16
 
 
17
# Override of auto_install to remove information from package
 
18
override_dh_auto_install:
 
19
        #dh_auto_install
 
20
        # Remove duplicate copyright information
 
21
        #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/COPYING
 
22
        # Remove install file as it is not needed by package users
 
23
        #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/INSTALL
 
24
        # Remove duplicate license information
 
25
        #rm $(CURDIR)/debian/python-gramps/usr/share/doc/gramps/LICENSE
 
26
        python setup.py install --root=debian/python-gramps --install-layout=deb
 
27
 
 
28
# Make css style sheets and png icons non-executable
 
29
override_dh_fixperms:
 
30
        dh_fixperms
 
31
        chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/css/Web_*.css
 
32
        chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/22x22/gramps*.png
 
33
        chmod a-x $(CURDIR)/debian/python-gramps/usr/share/gramps/images/16x16/gramps*.png
 
34
 
 
35
# Avoid compressing COPYING file so that it can appear in the "About" dialog
 
36
override_dh_compress:
 
37
        dh_compress -X COPYING