~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Federico Di Gregorio
  • Date: 2007-04-10 06:36:18 UTC
  • Revision ID: fog-7050d8d8d2669efe71403b32fda453f9b1f6a470
Fixed both Python 2.5 and 64 bit problems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
PYVERS=$(shell pyversions -r debian/control)
 
6
 
 
7
configure: configure-stamp
 
8
configure-stamp:
 
9
        dh_testdir
 
10
        rm -f configure
 
11
        touch configure-stamp
 
12
 
 
13
build: configure build-stamp
 
14
build-stamp: 
 
15
        dh_testdir
 
16
        for python in $(PYVERS); do \
 
17
                $$python setup.py build ; \
 
18
        done
 
19
        touch build-stamp
 
20
 
 
21
clean: configure
 
22
        dh_testdir
 
23
        dh_testroot 
 
24
        rm -fr *-stamp build
 
25
        for python in $(PYVERS); do \
 
26
                $$python setup.py clean ; \
 
27
        done
 
28
        dh_clean
 
29
 
 
30
install-arch: build
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        dh_clean -k
 
34
        dh_installdirs
 
35
        # psycopg2
 
36
        for python in $(PYVERS); \
 
37
        do $$python setup.py install --root=$(CURDIR)/debian/python-psycopg2 --no-compile; \
 
38
    done
 
39
 
 
40
install-indep: build
 
41
        # Zope package
 
42
        dh_installzope -p zope-psycopgda2 ZPsycopgDA
 
43
 
 
44
# Build architecture-independent files here.
 
45
binary-indep: build install-indep
 
46
        dh_testdir
 
47
        dh_testroot
 
48
        dh_installdocs -i AUTHORS debian/README.zpsycopgda2
 
49
        dh_installchangelogs -i
 
50
        dh_link -i
 
51
        dh_compress -i
 
52
        dh_fixperms -i
 
53
        dh_installdeb -i
 
54
        dh_gencontrol -i
 
55
        dh_md5sums -i
 
56
        dh_builddeb -i
 
57
 
 
58
# Build architecture-dependent files here.
 
59
binary-arch: build install-arch
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_installdocs -a README AUTHORS doc tests
 
63
        dh_installchangelogs -a ChangeLog
 
64
        dh_link -a
 
65
        dh_strip -a
 
66
        dh_compress -a
 
67
        dh_fixperms -a
 
68
        dh_makeshlibs -a
 
69
        dh_pycentral -a
 
70
        dh_python -a
 
71
        dh_installdeb -a
 
72
        dh_shlibdeps -a
 
73
        dh_gencontrol -a
 
74
        dh_md5sums -a
 
75
        dh_builddeb -a
 
76
 
 
77
binary: binary-indep binary-arch
 
78
.PHONY: build clean binary-indep binary-arch binary install configure