~ubuntu-branches/ubuntu/maverick/dvdrip-queue/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-08-26 13:30:21 UTC
  • Revision ID: james.westby@ubuntu.com-20090826133021-w4qku1zovsdubamw
Tags: 0.1.3-0.1ubuntu1
* debian/patches/02_setup_py.diff:
  - Create a setup.py script to build and install Python modules properly.
* debian/patches/03_fix_desktop_file.diff:
  - Remove deprecated Encoding field from .desktop file.
* debian/rules:
  - Switch to debhelper 7.
  - Run setup.py to build the package properly.
  - Remove all *.pyc files.
* debian/control:
  - Bump Standards.
  - Bump debhelper, quilt build-dependencies.
  - Add python, support to Build-Depends-Indep field.
  - Add ${misc:Depends} macro to dvdrip-queue's Depends field.
* Create debian/pyversions.
* Update debian/copyright.
* Fix debian/watch.
* Add README.source to give the needed documentation for creating or
  refreshing patches.
* Add a comment to debian/patches/01_dvdrip-version.diff.
* Add manpage.
* Add Debian menu file.
* Add xpm icon.

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
6
 
 
7
 
include /usr/share/quilt/quilt.make
8
 
 
9
 
build: build-stamp
10
 
build-stamp: debian/stamp-patched
11
 
        dh_testdir
12
 
 
13
 
        touch $@
14
 
 
15
 
clean: unpatch
16
 
        dh_testdir
17
 
        dh_testroot
18
 
        rm -f build-stamp
19
 
 
20
 
        dh_clean 
21
 
 
22
 
install: build
23
 
        dh_testdir
24
 
        dh_testroot
25
 
        dh_prep
26
 
        dh_installdirs usr/bin
27
 
 
28
 
        cp src/dvdrip-queue.py debian/dvdrip-queue/usr/bin/dvdrip-queue
29
 
        dh_install src/dvdripQueue/*.py usr/lib/python2.5/site-packages/dvdripQueue
30
 
        dh_install src/gui/*.glade usr/share/dvdrip-queue
31
 
        dh_install src/gui/*.svg usr/share/dvdrip-queue
32
 
        dh_install src/gui/pixmaps/*.svg usr/share/dvdrip-queue
33
 
        dh_install src/dvdrip-queue.desktop usr/share/applications
34
 
 
35
 
# Build architecture-independent files here.
36
 
binary-indep: build install
37
 
        dh_testdir
38
 
        dh_testroot
39
 
        dh_installchangelogs 
40
 
        dh_installdocs
41
 
        dh_installexamples
42
 
        dh_pysupport
43
 
        dh_installman
44
 
        dh_link
45
 
        dh_strip
46
 
        dh_compress
47
 
        dh_fixperms
48
 
        dh_installdeb
49
 
        dh_shlibdeps
50
 
        dh_gencontrol
51
 
        dh_md5sums
52
 
        dh_builddeb
53
 
 
54
 
# Build architecture-dependent files here.
55
 
binary-arch: build install
56
 
 
57
 
binary: binary-indep binary-arch
58
 
.PHONY: build clean binary-indep binary-arch binary install
 
2
 
 
3
%:
 
4
        dh --with quilt $@
 
5
 
 
6
override_dh_auto_install:
 
7
        cd $(CURDIR)/src && python setup.py install \
 
8
                --root=$(CURDIR)/debian/dvdrip-queue \
 
9
                --install-scripts=/usr/share/dvdrip-queue
 
10
        dh_link usr/share/dvdrip-queue/dvdrip-queue.py usr/bin/dvdrip-queue
 
11
        dh_auto_install
 
12
 
 
13
override_dh_auto_clean:
 
14
        rm -f $(CURDIR)/src/*.pyc $(CURDIR)/src/dvdripQueue/*.pyc
 
15
        dh_auto_clean