~ubuntu-branches/ubuntu/warty/duplicity/warty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Wuertele
  • Date: 2004-05-01 22:27:22 UTC
  • Revision ID: james.westby@ubuntu.com-20040501222722-btrzcdlyjw5a9hwl
Tags: 0.4.1-6
* fixed permissions for tarfile.py
* converted changelog to UTF-8
* fixed python dependency to 2.3 in tarfile.py

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
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
 
 
12
 
 
13
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
14
        CFLAGS += -g
 
15
endif
 
16
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
17
        INSTALL_PROGRAM += -s
 
18
endif
 
19
 
 
20
configure: configure-stamp
 
21
configure-stamp:
 
22
        dh_testdir
 
23
        # Add here commands to configure the package.
 
24
 
 
25
        touch configure-stamp
 
26
 
 
27
 
 
28
build: build-stamp
 
29
 
 
30
build-stamp: configure-stamp 
 
31
        dh_testdir
 
32
 
 
33
 
 
34
        # Add here commands to compile the package.
 
35
        #$(MAKE)
 
36
        python2.3 setup.py build
 
37
        rm -f
 
38
        
 
39
        touch build-stamp
 
40
        
 
41
clean:
 
42
        dh_testdir
 
43
        dh_testroot
 
44
        rm -f build-stamp configure-stamp
 
45
 
 
46
                # Add here commands to clean up after the build process.
 
47
        #-$(MAKE) clean
 
48
        rm -rf *.pyc
 
49
        rm -rf build
 
50
 
 
51
        dh_clean
 
52
 
 
53
install: build
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        dh_clean -k
 
57
        dh_installdirs
 
58
 
 
59
        # Add here commands to install the package into debian/duplicity.
 
60
        
 
61
        python2.3 setup.py install --prefix=$(CURDIR)/debian/duplicity/usr --no-compile
 
62
 
 
63
        # remove GnuPGInterface.py as we already have it in
 
64
        # python-gnupginterface
 
65
        rm -f $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/GnuPGInterface.py
 
66
 
 
67
        # fix permission for tarfile.py
 
68
        chmod 755 $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/tarfile.py
 
69
        
 
70
        # remove docs as we create them with debhelper
 
71
        rm -rf $(CURDIR)/debian/duplicity/usr/share/doc/duplicity-0.4.1
 
72
 
 
73
 
 
74
# Build architecture-independent files here.
 
75
binary-indep: build install
 
76
# We have nothing to do by default.
 
77
 
 
78
# Build architecture-dependent files here.
 
79
binary-arch: build install
 
80
        dh_testdir
 
81
        dh_testroot
 
82
#       dh_installdebconf       
 
83
        dh_installdocs
 
84
        dh_installexamples
 
85
        dh_installmenu
 
86
#       dh_installlogrotate
 
87
#       dh_installemacsen
 
88
#       dh_installpam
 
89
#       dh_installmime
 
90
#       dh_installinit
 
91
        dh_installcron
 
92
        dh_installman
 
93
        dh_installinfo
 
94
#       dh_undocumented
 
95
        dh_installchangelogs CHANGELOG
 
96
        dh_link
 
97
        dh_strip
 
98
        dh_compress
 
99
        dh_fixperms
 
100
#       dh_makeshlibs
 
101
        dh_installdeb
 
102
#       dh_perl
 
103
        dh_shlibdeps
 
104
        dh_gencontrol
 
105
        dh_md5sums
 
106
        dh_builddeb
 
107
 
 
108
binary: binary-indep binary-arch
 
109
.PHONY: build clean binary-indep binary-arch binary install configure