~ubuntu-branches/ubuntu/saucy/dossizola/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2010-11-05 16:16:25 UTC
  • Revision ID: james.westby@ubuntu.com-20101105161625-sih2fme049kwo4th
Tags: 1.0-8.3
* Non-maintainer upload.
  - Move to packaging format "3.0 (quilt)" due to desktop image files.
  - NMU approved by maintainer, see #549545.
* debian/compat
  - Update obsolete 5 to 8.
* debian/control
  - (Build-Depends): Add autotools-dev due to config.{sub,guess}.
    Update to debhelper 8.
  - (Depends) update tag "Source-Version" to "source:Version"
    to correct binNMU. Patch tanks to Lior Kaplan <kaplan@debian.org>
    (normal; Closes: #435939).
  - (Homepage): New field.
  - (Standards-Version): Update to 3.9.1.
  - Package dossizola
    + (Depends): Add ${misc:Depends} (Lintian).
  - Package dossizola-data
    + (Depends): New. Add ${misc:Depends} (Lintian).
    + (Description): Extend (Lintian).
* debian/copyright
  - Point to GPL-2, save as UTF-8, add copyright years (Lintian).
  - Add FSF preamble (Lintian).
  - Point URL to canonical Sourceforge project.
* debian/dossizola.{desktop,png,xcf}
  - New. Supplied by Stéphane Blondon <stephane.blondon@gmail.com>.
    (minor; Closes: #573870).
* debian/dossizola.sgml
  - (refnamediv): Fix bad whatis entry. Must be same as <refmeta> (Lintian).
* debian/rules
  - (PACKAGE, PKGDIR, SHAREROOTDIR, ICONDIR, DESKTOPDIR): New variables.
  - (binary-indep): Comment out dh_installchangelogs because upsream
    ChangeLog is empty (Lintian).
  - (clean): Cann makefile only if it exists. Delete Makefile.
  - (configure-stamp): use latest config.{sub,guess}
    (wishlist, FTBFS avr32; Closes: #549545).
  - (install): Change obsolete "dh_clean -k" to "dh_prep" (Lintian).
    Add install commands for *.desktop file and icons.
* debian/preinst
  - Add "set -e" (Lintian).
* debian/source/{format,include-binaries}
  - New files.
* debian/watch
  - New file (Lintian).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# This has to be exported to make some magic below work.
10
10
export DH_OPTIONS
11
11
 
 
12
PACKAGE         = dossizola
 
13
PKGDIR          = $(shell pwd)/debian/$(PACKAGE)
 
14
SHAREROOTDIR    = $(PKGDIR)/usr/share
 
15
DESKTOPDIR      = $(SHAREROOTDIR)/applications
 
16
ICONDIR         = $(SHAREROOTDIR)/icons
 
17
 
12
18
# DEB_BUILD_OPTIONS handling
13
19
CFLAGS = -g # -Wall
14
20
INSTALL = install
33
39
 
34
40
configure-stamp:
35
41
        dh_testdir
 
42
 
 
43
        cp -vf /usr/share/misc/config.sub .
 
44
        cp -vf /usr/share/misc/config.guess .
 
45
 
36
46
        CFLAGS="${CFLAGS}" ./configure --datadir=/usr/share/games --bindir=/usr/games
37
47
 
38
48
        touch configure-stamp
50
60
        dh_testdir
51
61
        dh_testroot
52
62
        rm -f build-stamp configure-stamp
53
 
 
54
 
        -$(MAKE) distclean
55
 
 
 
63
        [ ! -f Makefile ] || $(MAKE) clean
 
64
        rm -f config.cache config.status config.log
 
65
        rm -f Makefile
56
66
        dh_clean
57
67
 
58
68
install: DH_OPTIONS=
59
69
install: build
60
70
        dh_testdir
61
71
        dh_testroot
62
 
        dh_clean -k
 
72
        dh_prep
63
73
        dh_installdirs
64
74
 
65
75
        $(MAKE) install \
69
79
                INSTALL_PROGRAM="${INSTALL_PROGRAM}"
70
80
 
71
81
        dh_movefiles
 
82
 
 
83
        install -m 644 -D debian/$(PACKAGE).desktop $(DESKTOPDIR)/$(PACKAGE).desktop
 
84
        install -m 644 -D debian/$(PACKAGE).png $(ICONDIR)/$(PACKAGE).png
 
85
 
72
86
        test -z `find ${tmpdir} -type f`
73
87
 
74
88
# Build architecture-independent files here.
80
94
        dh_installdocs AUTHORS README TODO
81
95
#       dh_installexamples
82
96
        dh_installmenu
83
 
        dh_installchangelogs ChangeLog
 
97
        dh_installchangelogs # ChangeLog
84
98
        dh_compress
85
99
        dh_fixperms
86
100
        dh_installdeb