~ubuntu-branches/ubuntu/natty/pytables/natty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2006-06-28 10:45:03 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060628104503-cc251q5o5j3e2k10
  * Fixed call to pyversions in debian/rules which failed on recent versions 
    of pyversions
  * Fixed clean rule in debian/rules which left the stamp files behind
  * Acknowledge NMU
  * Added Alexandre Fayolle to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#export DH_VERBOSE=1
8
8
 
9
9
# This is the debhelper compatibility version to use.
10
 
export DH_COMPAT=4
 
10
export DH_COMPAT=5
 
11
 
 
12
PYVERS:= $(shell pyversions -v --requested debian/control)
11
13
 
12
14
build: build-stamp
13
 
        /usr/bin/python2.2 setup.py build
14
 
        /usr/bin/python2.3 setup.py build
15
 
        /usr/bin/python2.4 setup.py build
16
15
 
17
16
        gzip -9 < RELEASE-NOTES.txt > changelog.gz
18
17
        gzip -9 < debian/changelog > changelog.Debian.gz
19
18
 
20
 
build-stamp: 
21
 
        touch build-stamp
 
19
build-stamp: $(PYVERS:%=build-stamp-%)
 
20
        touch $@
 
21
 
 
22
build-stamp-%:
 
23
        dh_testdir
 
24
        python$* setup.py --force-ucl build
 
25
        touch $@
 
26
 
22
27
 
23
28
clean:
24
29
        dh_testdir
25
30
        dh_testroot
26
 
        rm -f build-stamp
27
 
 
 
31
        rm -f build-stamp* install-stamp*
28
32
        -rm -rf build
29
33
        -rm -f changelog.gz changelog.Debian.gz
30
34
 
32
36
        : # Delete some possible dirt
33
37
        -find -name '*.py[co]' | xargs rm -f
34
38
 
35
 
install: build
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_clean -k
39
 
        /usr/bin/python2.2 setup.py install --no-compile --prefix=$(CURDIR)/debian/python2.2-tables/usr
40
 
        : # Delete scripts
41
 
        rm -rf $(CURDIR)/debian/python2.2-tables/usr/bin
42
 
        /usr/bin/python2.3 setup.py install --no-compile --prefix=$(CURDIR)/debian/python2.3-tables/usr
43
 
        : # Delete scripts
44
 
        rm -rf $(CURDIR)/debian/python2.3-tables/usr/bin
45
 
        /usr/bin/python2.4 setup.py install --no-compile --prefix=$(CURDIR)/debian/python2.4-tables/usr
46
 
        : # Delete scripts
47
 
        rm -rf $(CURDIR)/debian/python2.4-tables/usr/bin
 
39
install: install-stamp
 
40
install-stamp-%: build-stamp-%
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        python$* setup.py install --prefix=$(CURDIR)/debian/python-tables/usr --no-compile
 
44
        rm -f $(CURDIR)/debian/python-tables/usr/bin/*
 
45
        touch $@
 
46
 
 
47
install-stamp: build $(PYVERS:%=install-stamp-%)
 
48
        dh_testdir
 
49
        dh_testroot
 
50
 
48
51
# Build architecture-independent files here.
49
52
binary-indep: install
50
53
        dh_testdir
51
54
        dh_testroot
52
 
        dh_install -ppython-tables --sourcedir=utils/ ptdump ptrepack /usr/bin
53
 
        gzip -9 < debian/ptdump.1 > /tmp/ptdump.1.gz
54
 
        gzip -9 < debian/ptrepack.1 > /tmp/ptrepack.1.gz
55
 
        dh_installman -ppython-tables /tmp/ptdump.1.gz /tmp/ptrepack.1.gz
56
 
        dh_installdocs -ppython-tables README.txt changelog.gz changelog.Debian.gz ANNOUNCE.txt test/ examples/
57
55
        : # remove executables from doc package
58
56
        dh_installdocs -ppython-tables-doc -Xmake -Xgenerahtml.sh README.txt changelog.gz changelog.Debian.gz ANNOUNCE.txt doc/usersguide.pdf doc/html bench/
59
57
        dh_compress -i -X.py -X.h5
60
58
        dh_fixperms -i
61
59
        dh_installdeb -i
62
 
        dh_shlibdeps -i
63
60
        dh_gencontrol -i
64
61
        dh_md5sums -i
65
62
        dh_builddeb -i
67
64
binary-arch: build install
68
65
        dh_testdir
69
66
        dh_testroot
70
 
 
71
 
        dh_installdocs -ppython2.2-tables README.txt changelog.gz changelog.Debian.gz
72
 
        dh_installdocs -ppython2.3-tables README.txt changelog.gz changelog.Debian.gz
73
 
        dh_installdocs -ppython2.4-tables README.txt changelog.gz changelog.Debian.gz
74
 
 
75
 
        dh_python -ppython2.2-tables -ppython2.3-tables -ppython2.4-tables
 
67
        dh_install -ppython-tables --sourcedir=utils/ ptdump ptrepack /usr/bin
 
68
        gzip -9 < debian/ptdump.1 > /tmp/ptdump.1.gz
 
69
        gzip -9 < debian/ptrepack.1 > /tmp/ptrepack.1.gz
 
70
        dh_installman -ppython-tables /tmp/ptdump.1.gz /tmp/ptrepack.1.gz
 
71
        dh_installdocs -ppython-tables README.txt changelog.gz changelog.Debian.gz ANNOUNCE.txt tables/tests/ examples/
 
72
        dh_pycentral -ppython-tables
 
73
        dh_python -ppython-tables 
76
74
 
77
75
        dh_strip -a
78
 
        dh_compress -a -X.py
 
76
        dh_compress -a -X.py -X.h5
79
77
        dh_fixperms -a
80
78
        dh_installdeb -a
81
 
        dh_shlibdeps -a
 
79
        #dh_shlibdeps -a
 
80
        # In order to automatically add the Depends, Recommends & Suggests
 
81
        # fields automatically.
 
82
        dh_shlibdeps -ppython-tables -X _comp_ -- \
 
83
            -dRecommends \
 
84
              debian/python-tables/usr/lib/python*/site-packages/tables/_comp_bzip2.so \
 
85
              debian/python-tables/usr/lib/python*/site-packages/tables/_comp_lzo.so \
 
86
            -dSuggests \
 
87
              debian/python-tables/usr/lib/python*/site-packages/tables/_comp_ucl.so \
 
88
            -dDepends
 
89
 
82
90
        dh_gencontrol -a
83
91
        dh_md5sums -a
84
92
        dh_builddeb -a