~ubuntu-branches/ubuntu/natty/duplicity/natty-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-11-11 13:32:07 UTC
  • mfrom: (2.1.3 feisty)
  • Revision ID: james.westby@ubuntu.com-20061111133207-9gizpeda242fwmtr
Tags: 0.4.2-10.1
Switch back to python 2.4, as python-central can apparently no longer cope
with 2.3, and 2.4 seems to work ok now; patch from Joey Hess.
(Closes: #396158)

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
 
 
 
8
PREFIX := debian/duplicity/usr
11
9
 
12
10
 
13
11
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
17
15
        INSTALL_PROGRAM += -s
18
16
endif
19
17
 
 
18
 
 
19
# we use dpatch
 
20
include /usr/share/dpatch/dpatch.make
 
21
 
 
22
 
20
23
configure: configure-stamp
21
24
configure-stamp:
22
25
        dh_testdir
27
30
 
28
31
build: build-stamp
29
32
 
30
 
build-stamp: configure-stamp 
 
33
build-stamp: patch configure-stamp 
31
34
        dh_testdir
32
35
 
33
36
        # patch first
34
 
        test -f build-patched || patch src/backends.py debian/duplicity-temp_error_recovery.patch
35
 
        touch build-patched
 
37
        #test -f build-patched || cat debian/patches/* | patch -l -p0
 
38
        #touch build-patched
36
39
 
37
40
        # Add here commands to compile the package.
38
41
        #$(MAKE)
39
 
        python2.3 setup.py build
 
42
        python setup.py build
40
43
        rm -f
41
44
        
42
45
        touch build-stamp
43
46
        
44
 
clean:
 
47
clean: clean1 unpatch
 
48
clean1:
45
49
        dh_testdir
46
50
        dh_testroot
47
51
        rm -f build-stamp configure-stamp
52
56
        rm -rf build
53
57
 
54
58
        # unpatch
55
 
        -test -f build-patched && patch -R src/backends.py debian/duplicity-temp_error_recovery.patch && rm -f build-patched
 
59
        #-test -f build-patched && cat debian/patches/* | patch -R -p0 && rm build-patched
56
60
 
57
61
        dh_clean
58
62
 
63
67
        dh_installdirs
64
68
 
65
69
        # Add here commands to install the package into debian/duplicity.
66
 
        
67
 
        python2.3 setup.py install --prefix=$(CURDIR)/debian/duplicity/usr --no-compile
 
70
        python setup.py install --prefix=$(PREFIX) --no-compile
68
71
 
69
72
        # remove GnuPGInterface.py as we already have it in
70
73
        # python-gnupginterface
71
 
        rm -f $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/GnuPGInterface.py
 
74
        rm -f $(PREFIX)/lib/python2.4/site-packages/duplicity/GnuPGInterface.py
72
75
 
73
76
        # fix permission for tarfile.py
74
 
        chmod 755 $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/tarfile.py
 
77
        chmod 755 $(PREFIX)/lib/python2.4/site-packages/duplicity/tarfile.py
75
78
        
76
79
        # remove docs as we create them with debhelper
77
 
        rm -rf $(CURDIR)/debian/duplicity/usr/share/doc/duplicity-0.4.1
 
80
        rm -rf $(PREFIX)/share/doc/duplicity-0.4.2
78
81
 
79
82
 
80
83
# Build architecture-independent files here.
81
84
binary-indep: build install
82
 
# We have nothing to do by default.
83
85
 
84
86
# Build architecture-dependent files here.
85
87
binary-arch: build install
 
88
        dh_pycentral
 
89
        dh_python
86
90
        dh_testdir
87
91
        dh_testroot
88
92
#       dh_installdebconf       
89
93
        dh_installdocs
90
94
        dh_installexamples
91
 
        dh_installmenu
 
95
#       dh_installmenu
92
96
#       dh_installlogrotate
93
97
#       dh_installemacsen
94
98
#       dh_installpam
95
99
#       dh_installmime
96
100
#       dh_installinit
97
 
        dh_installcron
 
101
#       dh_installcron
98
102
        dh_installman
99
 
        dh_installinfo
 
103
#       dh_installinfo
100
104
#       dh_undocumented
101
105
        dh_installchangelogs CHANGELOG
102
106
        dh_link
103
107
        dh_strip
104
108
        dh_compress
105
109
        dh_fixperms
106
 
#       dh_makeshlibs
 
110
        dh_makeshlibs
107
111
        dh_installdeb
108
112
#       dh_perl
109
113
        dh_shlibdeps