~ubuntu-branches/ubuntu/natty/apturl/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2009-09-10 13:09:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090910130927-bj98gfpr5lzw1rht
Tags: 0.4.0ubuntu5
* Borrow encoding wrappers from GDebi to fix encodings in KDE UI (implemented
  via Helpers). These new wrappers utf8, _ and _n are used throughout the
  whole application.
* Fix minor formatting error in KDE UI's _get_dialog
* link apturl's manpage to the apturl-gtk and apturl-kde manpages since
  they share the same argument parser anyway
* Bump standards version to 3.8.3
* Port package build system to dh 7
  + Build-depend on debhelper 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
 
4
 
# Uncomment this to turn on verbose mode.
5
 
#export DH_VERBOSE=1
 
2
%:
 
3
        dh --with python-central $@
 
4
 
 
5
override_dh_auto_clean:
 
6
        rm -f AptUrl/Version.py
 
7
 
 
8
override_dh_auto_install:
 
9
        python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
 
10
 
 
11
override_dh_install:
 
12
        dh_install --sourcedir=debian/tmp --fail-missing
 
13
 
6
14
 
7
15
PKG=apturl
8
16
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
9
17
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
10
18
 
11
 
configure: configure-stamp
12
 
configure-stamp:
13
 
        dh_testdir
14
 
        touch configure-stamp
15
 
 
16
 
build: build-stamp
17
 
 
18
 
build-stamp: configure-stamp 
19
 
        dh_testdir
20
 
        python ./setup.py build
21
 
        touch build-stamp
22
 
 
23
 
clean:
24
 
        dh_testdir
25
 
        dh_testroot
26
 
        rm -f build-stamp configure-stamp
27
 
 
28
 
        python ./setup.py clean --all
29
 
        find . -name "*.so" -exec rm {} \;
30
 
        find . -name "*.o" -exec rm {} \;
31
 
        find . -name "*.pyc" -exec rm {} \;
32
 
        rm -f AptUrl/Version.py
33
 
        rm -rf build
34
 
        dh_clean
35
 
 
36
 
install: build
37
 
        dh_testdir
38
 
        dh_testroot
39
 
        dh_clean -k 
40
 
        dh_installdirs
41
 
 
42
 
        # Add here commands to install the package into debian/apturl.
43
 
        python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
44
 
 
45
 
# Build architecture-independent files here.
46
 
binary-indep: build install
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_install --sourcedir=debian/tmp --fail-missing
50
 
        dh_installchangelogs
51
 
        dh_installdocs
52
 
        dh_installexamples
53
 
        dh_installmime
54
 
        dh_desktop
55
 
        dh_gconf
56
 
        dh_icons
57
 
        dh_installman apturl.8
58
 
        dh_link
59
 
        dh_compress
60
 
        dh_fixperms
61
 
        #       DH_PYCENTRAL=include-links dh_pycentral
62
 
        dh_pycentral
63
 
        dh_installdeb
64
 
        dh_shlibdeps
65
 
        dh_gencontrol
66
 
        dh_md5sums
67
 
        dh_builddeb
68
 
 
69
19
arch-build:
70
20
        rm -rf debian/arch-build
71
21
        mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
72
22
        tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
73
23
        (cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG))
74
 
 
75
 
binary: binary-indep binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary install configure