~ubuntu-branches/ubuntu/lucid/dico/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-08-08 17:27:15 UTC
  • Revision ID: james.westby@ubuntu.com-20090808172715-xwbmh6rvvrkzhp3y
Tags: 2.0-4
* debian/rules:
  + use dh_auto_* --sourcedirectory for the python modules
  + No need to explicitly remove *.pyc files dh_auto_clean override,
    dh_auto_clean does that.
* debian/control: Build-Depend on debhelper >= 7.3.5~ to support
  dh_auto_* --sourcedirectory
* debian/pyversions: Set minimum python version to 2.5 (Closes: #540501)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
        dh_auto_build
11
11
 
12
12
        # Build python-wit:
13
 
        cd app/python/wit && python setup.py build
 
13
        dh_auto_build --sourcedirectory app/python/wit
14
14
 
15
15
        # Build dicoclient python modules:
16
 
        cd dicoweb/dicoclient && python setup.py build
 
16
        dh_auto_build --sourcedirectory dicoweb/dicoclient
17
17
 
18
18
        # Make those files executable before installing them:
19
19
        chmod +x debian/dicodconfig debian/dicodconfig.alias
22
22
        dh_auto_install
23
23
 
24
24
        # Install python-wit:
25
 
        cd app/python/wit && python setup.py install --root $(CURDIR)/debian/python-wit --no-compile -O0 --install-layout=deb
 
25
        dh_auto_install --sourcedirectory app/python/wit -- --root=$(CURDIR)/debian/python-wit
26
26
 
27
27
        # Install dicoclient python modules:
28
 
        cd dicoweb/dicoclient && python setup.py install --root $(CURDIR)/debian/python-dicoclient --no-compile -O0 --install-layout=deb
 
28
        dh_auto_install --sourcedirectory dicoweb/dicoclient -- --root=$(CURDIR)/debian/python-dicoclient
29
29
 
30
30
        # Install dicoweb:
31
31
        dh_install -pdicoweb dicoweb usr/share -Xdicoclient -XINSTALL
36
36
        dh_auto_clean
37
37
 
38
38
        # Clean python-wit:
39
 
        cd app/python/wit && python setup.py clean -a
 
39
        dh_auto_clean --sourcedirectory app/python/wit
40
40
 
41
41
        # Clean dicoclient python modules:
42
 
        cd dicoweb/dicoclient && python setup.py clean -a
43
 
 
44
 
        # Running setup.py even with clean command generates those files:
45
 
        rm dicoweb/dicoclient/dicoclient.pyc app/python/wit/wikimarkup.pyc
 
42
        dh_auto_clean --sourcedirectory dicoweb/dicoclient