~ubuntu-branches/ubuntu/saucy/gnucash/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot, Dmitry Smirnov, Sébastien Villemot
  • Date: 2012-03-05 20:44:44 UTC
  • mfrom: (2.5.16 sid)
  • Revision ID: package-import@ubuntu.com-20120305204444-cvmgjgx36oxilhfq
Tags: 1:2.4.10-2
[ Dmitry Smirnov ]
* Removing obsolete lintian override
* Removing remnants of dh_make template to clean-up debian/rules
* Removing useless debian/gnucash-common.dirs
* Build-time generation of missing man pages
* Use dh-autoreconf to update toolchain
* Update to recommended debhelper compat level 9
* Fix short description of gnucash-common
* Introducing --as-needed to reduce overlinking
* debian/copyright: rewrite from scratch using machine-readable format 1.0

[ Sébastien Villemot ]
* Bump to Standards-Version 3.9.3, no changes needed
* Set myself as Maintainer. Add Dmitry Smirnov to Uploaders. (Closes: #639584)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
export DH_VERBOSE=1
5
5
 
6
 
# This has to be exported to make some magic below work.
7
 
export DH_OPTIONS=
8
 
 
9
6
# Avoid some error messages when running "make install"
10
7
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
11
8
 
12
9
# Hack for Gnucash build system
13
10
export BUILDING_FROM_SVN=false
14
11
 
15
 
# Enable hardening flags, see:
16
 
# - http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags
17
 
# - http://lists.debian.org/debian-devel-announce/2011/09/msg00001.html
18
 
# Reminder: remove these lines when debhelper compat level is upgraded to 9
19
 
DPKG_EXPORT_BUILDFLAGS = 1
20
 
-include /usr/share/dpkg/buildflags.mk
 
12
# reduce overlinking
 
13
LDFLAGS+= -Wl,--as-needed
21
14
 
22
15
%:
23
 
        dh $@ --parallel --with python2
 
16
        dh $@ --parallel --with python2,autoreconf
24
17
 
25
18
override_dh_auto_clean:
26
19
        find . -type l -exec rm -v \{\} \;
27
20
        rm -fv debian/gnucash-icon-32x32.xpm
28
21
        dh_auto_clean
29
22
 
 
23
override_dh_autoreconf:
 
24
        dh_autoreconf --as-needed
 
25
 
30
26
override_dh_auto_configure:
31
27
        dh_auto_configure -- \
32
 
                --libdir=/usr/lib/gnucash \
33
 
                --libexecdir=/usr/lib \
 
28
                --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/gnucash \
34
29
                --infodir=/noinst \
35
30
                --mandir=/noinst \
36
31
                --docdir=/noinst \
51
46
 
52
47
override_dh_install:
53
48
        convert src/pixmaps/gnucash-icon-32x32.png debian/gnucash-icon-32x32.xpm
 
49
        # generate man pages
 
50
        find debian/tmp/usr/bin/ -type f -executable -execdir \
 
51
                sh -c 'pod2man -s1 --stderr --utf8 {} "../../{}.1"; [ -s "../../{}.1" ] || rm "../../{}.1"' \;
54
52
        find debian/tmp/usr/lib -name \*.la -exec rm -v \{\} \;
55
53
        rm -rf debian/tmp/usr/share/gnucash/doc # --docdir option of configure broken in 2.4 series; fixed in trunk in r20736
56
54
        dh_install