~ubuntu-branches/debian/sid/trac-bzr/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-11-04 13:36:01 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20111104133601-n9kx11nmgbia9ura
Tags: 0.4.2+bzr118-1
* New upstream snapshot.
* Switch to debhelper 7, drop cdbs.
* Switch to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
DEB_PYTHON_SYSTEM=pysupport
4
 
 
5
 
include /usr/share/cdbs/1/rules/debhelper.mk
6
 
include /usr/share/cdbs/1/class/python-distutils.mk
7
 
 
8
 
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
 
3
%:
 
4
        dh --buildsystem=python_distutils --with python2 $*
 
5
 
 
6
override_dh_auto_clean:
 
7
        dh_auto_clean
 
8
        find . -name "*.pyc" -print0 | xargs -0 rm -f
 
9
        rm -rf build TracBzr.egg-info
9
10
 
10
11
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
11
 
common-post-build-indep::
 
12
override_dh_auto_test:
12
13
        PYTHONPATH=. nosetests tracbzr
 
14
        BZR_PLUGINS_AT=trac@`pwd`/bzrplugin bzr selftest -s bp.trac
13
15
endif
14
 
 
15
 
clean::
16
 
        rm -rf build TracBzr.egg-info