~ubuntu-branches/ubuntu/saucy/apturl/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Harald Sitter, Michael Vogt
  • Date: 2009-09-18 09:46:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090918094629-z8b3go5cms2y5pxz
Tags: 0.4.1ubuntu1
[ Harald Sitter ]
* Borrow encoding wrappers from GDebi to fix encodings in KDE UI

[ Michael Vogt ]
* AptUrl/gtk/GtkUI.py:
  - Use software-properites to enable componenents
* debian/control:
  - Remove dependency on gnome-app-install 
  - Add software-properties-gtk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
%:
3
 
        dh --with python-central $@
4
 
 
5
 
override_dh_auto_clean:
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
PKG=apturl
 
8
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
 
9
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
 
10
 
 
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 {} \;
6
32
        rm -f AptUrl/Version.py
7
 
 
8
 
override_dh_auto_install:
 
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.
9
43
        python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
10
44
 
11
 
override_dh_install:
 
45
# Build architecture-independent files here.
 
46
binary-indep: build install
 
47
        dh_testdir
 
48
        dh_testroot
12
49
        dh_install --sourcedir=debian/tmp --fail-missing
13
 
 
14
 
 
15
 
PKG=apturl
16
 
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
17
 
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
 
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
18
68
 
19
69
arch-build:
20
70
        rm -rf debian/arch-build
21
71
        mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
22
72
        tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
23
73
        (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