~ubuntu-branches/ubuntu/raring/lsb/raring-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lawrence
  • Date: 2005-03-27 21:42:24 UTC
  • mto: (1.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050327214224-ptr2vsz557dpai0d
Tags: 2.0-7
Fix Replaces line to use the correct version in lsb-base.
(Closes: #301694, RC; Closes: #301747)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
7
7
 
8
 
# This is the debhelper compatibility version to use.
9
 
export DH_COMPAT=3
10
 
 
11
8
# These are used for cross-compiling and for saving the configure script
12
9
# from having to guess our platform (since we know it already)
13
10
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
11
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
12
DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
15
13
 
16
14
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
17
15
        CFLAGS += -g
20
18
        INSTALL_PROGRAM += -s
21
19
endif
22
20
 
 
21
# Map Debian architectures to LSB architectures
 
22
lsbarch=${DEB_BUILD_ARCH}
 
23
ifeq (${lsbarch}, i386)
 
24
        lsbarch=ia32
 
25
endif
 
26
ifeq (${lsbarch}, powerpc)
 
27
        lsbarch=ppc32
 
28
endif
 
29
 
23
30
configure: configure-stamp
24
31
configure-stamp:
25
32
        dh_testdir
29
36
 
30
37
build: build-stamp
31
38
 
32
 
build-stamp: configure-stamp 
 
39
build-stamp: configure-stamp
33
40
        dh_testdir
34
41
 
35
42
        # Add here commands to compile the package.
41
48
clean:
42
49
        dh_testdir
43
50
        dh_testroot
44
 
        rm -f build-stamp configure-stamp *.py[co]
 
51
        rm -f build-stamp configure-stamp *.py[co] debian/lsb*substvars
45
52
 
46
53
        # Add here commands to clean up after the build process.
47
54
        -$(MAKE) clean
56
63
 
57
64
        # Add here commands to install the package into debian/lsb.
58
65
        #$(MAKE) install DESTDIR=$(CURDIR)/debian/lsb
59
 
        # IA32 spec:
60
 
        ln -s ld-linux.so.2 debian/lsb/lib/ld-lsb.so.1
61
 
        cp initdutils.py install_initd remove_initd debian/lsb/usr/lib/lsb
62
 
        cp init-functions debian/lsb/lib/lsb
 
66
        cp initdutils.py install_initd remove_initd debian/lsb-core/usr/lib/lsb
 
67
        cp init-functions debian/lsb-base/lib/lsb
63
68
 
64
69
# Build architecture-independent files here.
65
70
binary-indep: build install
66
 
# We have nothing to do by default.
 
71
        dh_testdir
 
72
        dh_testroot
 
73
        dh_installdebconf -i
 
74
        dh_installdocs -i
 
75
#       dh_installlogrotate
 
76
#       dh_installemacsen
 
77
#       dh_installpam
 
78
#       dh_installmime
 
79
#       dh_installinit
 
80
        dh_installcron -i
 
81
        dh_installman -i
 
82
        dh_installinfo -i
 
83
#       dh_undocumented
 
84
        dh_installchangelogs -i
 
85
        dh_link -i
 
86
        dh_strip -i
 
87
        dh_compress -i
 
88
        dh_fixperms -i
 
89
#       dh_makeshlibs
 
90
        dh_installdeb -i
 
91
#       dh_perl
 
92
        dh_shlibdeps -i
 
93
        dh_gencontrol -i
 
94
        dh_md5sums -i
 
95
        dh_builddeb -i
67
96
 
68
97
# Build architecture-dependent files here.
69
98
binary-arch: build install
70
99
        dh_testdir
71
100
        dh_testroot
72
 
        dh_installdebconf       
73
 
        dh_installdocs
74
 
        dh_installexamples
75
 
        dh_installmenu
 
101
        dh_installdebconf -a
 
102
        dh_installdocs -a
 
103
        dh_installexamples -a init-skeleton
 
104
        dh_installmenu -a
76
105
#       dh_installlogrotate
77
106
#       dh_installemacsen
78
107
#       dh_installpam
79
108
#       dh_installmime
80
109
#       dh_installinit
81
 
        dh_installcron
82
 
        dh_installman lsb.8
83
 
        dh_installinfo
 
110
        dh_installcron -a
 
111
        dh_installman -a lsb.8
 
112
        dh_installinfo -a
84
113
#       dh_undocumented
85
 
        dh_installchangelogs 
86
 
        dh_link
87
 
        dh_strip
88
 
        dh_compress
89
 
        dh_fixperms
 
114
        dh_installchangelogs -a
 
115
        @[ ${DEB_BUILD_ARCH} = 'amd64' ] && mkdir -p debian/lsb-core/lib64 && echo >> debian/lsb-core.substvars "depends=ia32-libs" || true
 
116
        dh_link -a
 
117
        dh_strip -a
 
118
        dh_compress -a
 
119
        dh_fixperms -a
90
120
#       dh_makeshlibs
91
 
        dh_installdeb
 
121
        dh_installdeb -a
92
122
#       dh_perl
93
 
        dh_shlibdeps
94
 
        dh_gencontrol
95
 
        dh_md5sums
96
 
        dh_builddeb
 
123
        dh_shlibdeps -a
 
124
        @echo >> debian/lsb-core.substvars "provides=lsb-core-${lsbarch}"
 
125
        @echo >> debian/lsb-cxx.substvars "provides=lsb-cxx-${lsbarch}"
 
126
        @echo >> debian/lsb-graphics.substvars "provides=lsb-graphics-${lsbarch}"
 
127
        dh_gencontrol -a
 
128
        dh_md5sums -a
 
129
        dh_builddeb -a
97
130
 
98
131
binary: binary-indep binary-arch
99
132
.PHONY: build clean binary-indep binary-arch binary install configure