~ubuntu-branches/debian/sid/sip4-qt3/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Marek
  • Date: 2010-02-02 21:27:14 UTC
  • mfrom: (2.1.27 experimental)
  • Revision ID: james.westby@ubuntu.com-20100202212714-sl7ep08aaolty4oq
Tags: 4.10-2
* Upload to unstable (Closes: #552511)
* siputils.py does not check errno any more (Closes: #560418)
* debian/control
  - Updated standards version to 3.8.4, no changes necessary
  - Make python-sip4 break those packages that do not depend on
    python2.x-sip4 or a specific version of python-sip4
* debian/manpages/dh_sip.1
  - Create man page for dh_sip
* debian/manpages/sip.1
  - Update man page for sip
* debian/README.source
  - Removed, not needed for source format "3.0 (quilt)"

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
export DH_OPTIONS
6
6
 
7
 
include /usr/share/dpatch/dpatch.make
8
 
 
9
7
INSTDIR=$(CURDIR)/debian
10
8
 
11
9
CFLAGS=
31
29
 
32
30
configure: $(PYTHONS:%=build-%/configure-stamp) $(PYTHONS:%=dbg-build-%/configure-stamp)
33
31
 
34
 
build-%/configure-stamp: patch-stamp
 
32
build-%/configure-stamp:
35
33
        dh_testdir
36
34
        mkdir -p build-$*
37
35
        cd build-$* \
40
38
                        -u STRIP="" CFLAGS="${CFLAGS}" CFLAGS_RELEASE="" CXXFLAGS="${CFLAGS}" CXXFLAGS_RELEASE=""
41
39
        touch $@
42
40
 
43
 
dbg-build-%/configure-stamp: patch-stamp
 
41
dbg-build-%/configure-stamp:
44
42
        dh_testdir
45
43
        mkdir -p dbg-build-$*
46
44
        cd dbg-build-$* \
64
62
        touch $@
65
63
 
66
64
 
67
 
clean: unpatch
 
65
clean:
68
66
        dh_testdir
69
67
        dh_testroot
70
68
        rm -rf *-stamp siputils.pyc $(PYTHONS:%=build-%) $(PYTHONS:%=dbg-build-%)
71
69
        dh_clean
72
70
 
73
 
install-indep-pre: configure
74
 
        dh_testdir
75
 
        dh_testroot
76
 
        dh_clean -i
77
 
        dh_installdirs -i
78
 
 
79
 
install-indep-%: install-indep-pre 
80
 
        mkdir -p debian/python-sip4-dev/usr/include/python$*
81
 
        install -m 644 -o root -g root siplib/sip.h debian/python-sip4-dev/usr/include/python$*/
82
 
        mkdir -p debian/python-sip4-dev/usr/include/python$*_d
83
 
        ln -s ../python$*/sip.h \
84
 
            debian/python-sip4-dev/usr/include/python$*_d/sip.h
85
 
        mkdir -p debian/python-sip4-dev/usr/lib/python$*/$(call py_sitename,$*)
86
 
        install -m 644 -o root -g root sipdistutils.py debian/python-sip4-dev/usr/lib/python$*/$(call py_sitename,$*)
87
 
 
88
 
install-indep: $(PYTHONS:%=install-indep-%)
89
 
        dh_install -i
90
 
 
91
71
install-arch: build
92
72
        dh_testdir
93
73
        dh_testroot
102
82
                $(MAKE) -f debian/rules install-arch-$$p;\
103
83
        done
104
84
 
105
 
        for i in $$(find debian/python-sip4-dbg -name '*.so'); do \
 
85
        for i in $$(find debian/python-sip-dbg -name '*.so'); do \
106
86
                b=$$(basename $$i .so); \
107
87
                mv $$i $$(dirname $$i)/$${b}_d.so; \
108
88
        done
109
 
        find debian/python-sip4-dbg ! -type d ! -name '*_d.*' | xargs rm -f
110
 
        find debian/python-sip4-dbg -depth -empty -exec rmdir {} \;
 
89
        find debian/python-sip-dbg ! -type d ! -name '*_d.*' | xargs rm -f
 
90
        find debian/python-sip-dbg -depth -empty -exec rmdir {} \;
111
91
 
112
92
        dh_install -a --sourcedir=$(CURDIR)/debian/tmp
 
93
        install -m 755 -o root -g root debian/dh_sip debian/python-sip-dev/usr/bin
113
94
 
114
95
install-arch-%:
115
96
        $(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
116
 
        $(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-sip4-dbg
117
 
        mkdir -p debian/python-sip4/usr/lib/python$*/$(call py_sitename,$*)/
118
 
        install -m 644 -o root -g root debian/sipconfig.py debian/python-sip4/usr/lib/python$*/$(call py_sitename,$*)/
119
 
        install -m 644 -o root -g root build-$*/sipconfig.py debian/python-sip4/usr/lib/python$*/$(call py_sitename,$*)/sipconfig_nd.py
120
 
        install -m 644 -o root -g root dbg-build-$*/sipconfig.py debian/python-sip4-dbg/usr/lib/python$*/$(call py_sitename,$*)/sipconfig_d.py
 
97
        $(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-sip-dbg
 
98
        mkdir -p debian/python-sip/usr/lib/python$*/$(call py_sitename,$*)/
 
99
        install -m 644 -o root -g root debian/sipconfig.py debian/python-sip/usr/lib/python$*/$(call py_sitename,$*)/
 
100
        install -m 644 -o root -g root build-$*/sipconfig.py debian/python-sip/usr/lib/python$*/$(call py_sitename,$*)/sipconfig_nd.py
 
101
        install -m 644 -o root -g root dbg-build-$*/sipconfig.py debian/python-sip-dbg/usr/lib/python$*/$(call py_sitename,$*)/sipconfig_d.py
 
102
        mkdir -p debian/python-sip-dev/usr/include/python$*
 
103
        install -m 644 -o root -g root siplib/sip.h debian/python-sip-dev/usr/include/python$*/
 
104
        mkdir -p debian/python-sip-dev/usr/include/python$*_d
 
105
        ln -s ../python$*/sip.h \
 
106
            debian/python-sip-dev/usr/include/python$*_d/sip.h
 
107
        mkdir -p debian/python-sip-dev/usr/lib/python$*/$(call py_sitename,$*)
 
108
        install -m 644 -o root -g root sipdistutils.py debian/python-sip-dev/usr/lib/python$*/$(call py_sitename,$*)
 
109
 
121
110
 
122
111
# Must not depend on anything. This is to be called by
123
112
# binary-arch/binary-indep
132
121
        dh_link
133
122
# don't call strip twice, it's in binary-common
134
123
ifneq (,$(findstring -a, $(DH_OPTIONS)))
135
 
        DH_OPTIONS= dh_strip -psip4
136
 
        DH_OPTIONS= dh_strip -ppython-sip4 -Nsip4 --dbg-package=python-sip4-dbg
137
 
        rm -rf debian/python-sip4-dbg/usr/share/doc/python-sip4-dbg
138
 
        mkdir -p debian/python-sip4-dbg/usr/share/doc
139
 
        ln -s python-sip4 debian/python-sip4-dbg/usr/share/doc/python-sip4-dbg
 
124
        DH_OPTIONS= dh_strip -ppython-sip-dev
 
125
        DH_OPTIONS= dh_strip -ppython-sip -Npython-sip-dev --dbg-package=python-sip-dbg
 
126
        rm -rf debian/python-sip-dbg/usr/share/doc/python-sip-dbg
 
127
        mkdir -p debian/python-sip-dbg/usr/share/doc
 
128
        ln -s python-sip debian/python-sip-dbg/usr/share/doc/python-sip-dbg
140
129
endif
141
130
        dh_compress 
142
131
        dh_fixperms
148
137
        dh_builddeb
149
138
 
150
139
# Build architecture independant packages using the common target.
151
 
binary-indep: install-indep
 
140
binary-indep: 
152
141
        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
153
142
 
154
143
# Build architecture dependant packages using the common target.
155
144
binary-arch: install-arch
156
145
        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
157
146
 
158
 
binary: binary-indep binary-arch
 
147
binary: binary-arch binary-indep
159
148
.PHONY: build clean binary-indep binary-arch binary configure