~ubuntu-branches/ubuntu/maverick/libxml2/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-02-17 03:05:01 UTC
  • Revision ID: james.westby@ubuntu.com-20070217030501-lttl23gr5uml97f0
Tags: 2.6.27.dfsg-1ubuntu2
* Build a python-libxml2-dbg package.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
 
108
108
        touch install-stamp
109
109
 
110
 
build-python%-stamp: build-stamp
111
 
        cd python && $(MAKE) clean && $(MAKE) PYTHON=/usr/bin/python$* PYTHON_VERSION=$* PYTHON_INCLUDES=/usr/include/python$*
112
 
 
113
 
        touch $@
114
 
 
115
 
install-python%-stamp: build-python%-stamp
116
 
        rm build-python$*-stamp
117
 
        cd python && $(MAKE) DESTDIR=`pwd`/../debian/tmp PYTHON=/usr/bin/python$* PYTHON_VERSION=$* PYTHON_INCLUDES=/usr/include/python$* install
 
110
install-python%-stamp:
 
111
        $(MAKE) -C python clean
 
112
        $(MAKE) -C python \
 
113
                DESTDIR=`pwd`/debian/tmp \
 
114
                PYTHON=/usr/bin/python$* \
 
115
                PYTHON_VERSION=$* \
 
116
                PYTHON_INCLUDES=/usr/include/python$* \
 
117
                install
 
118
 
 
119
        $(MAKE) -C python clean
 
120
        $(MAKE) -C python \
 
121
                DESTDIR=`pwd`/debian/python-libxml2-dbg \
 
122
                CFLAGS="-Wall -Wextra -g -O0 -fno-strict-aliasing -pedantic" \
 
123
                PYTHON=/usr/bin/python$*-dbg \
 
124
                PYTHON_VERSION=$* \
 
125
                PYTHON_INCLUDES=/usr/include/python$*_d \
 
126
                install
118
127
 
119
128
        touch $@
120
129
 
121
130
install-python-stamp: $(PYVERS:%=install-%-stamp)
 
131
        find debian/python-libxml2-dbg ! -type d ! -name '*.so' | xargs rm -f
 
132
        find debian/python-libxml2-dbg -depth -type d -empty -exec rmdir {} \;
 
133
        echo XXX
 
134
        find debian/python-libxml2-dbg -name '*.so'
 
135
        for i in $$(find debian/python-libxml2-dbg -name '*.so'); do \
 
136
          b=$$(basename $$i .so); \
 
137
          mv $$i $$(dirname $$i)/$${b}_d.so; \
 
138
        done
122
139
        touch $@
123
140
 
124
141
# Build architecture-independent files here.
156
173
        dh_pysupport -a
157
174
        dh_python -a
158
175
        dh_link -a
159
 
        dh_strip -a --dbg-package=libxml2-dbg -Npython-libxml2
160
 
        dh_strip -ppython-libxml2
 
176
        dh_strip -a -Npython-libxml2 -Npython-libxml2-dbg --dbg-package=libxml2-dbg
 
177
        dh_strip -ppython-libxml2 --dbg-package=python-libxml2-dbg
161
178
        $(foreach python, $(filter-out $(PYVER), $(PYVERS)),\
162
179
                cd $(CURDIR)/debian/python-libxml2/usr/lib/python-support/python-libxml2; \
163
180
                if diff $(python)/libxml2mod.so $(PYVER)/libxml2mod.so > /dev/null 2>&1; then \
164
181
                        rm -f $(python)/libxml2mod.so; \
165
182
                        ln -s ../$(PYVER)/libxml2mod.so $(python)/libxml2mod.so; \
166
183
                fi;)
 
184
        rm -rf debian/python-libxml2-dbg/usr/share/doc/python-libxml2-dbg
 
185
        mkdir -p  debian/python-libxml2-dbg/usr/share/doc
 
186
        ln -s python-libxml2 debian/python-libxml2-dbg/usr/share/doc/python-libxml2-dbg
167
187
        dh_compress -a -Xexamples/
168
188
        dh_fixperms -a
169
189
        dh_makeshlibs -a --add-udeb=libxml2-udeb -V 'libxml2 (>= 2.6.27)'