~tribaal/storm/storm-packaging-fix-python-central

« back to all changes in this revision

Viewing changes to rules

  • Committer: Christopher Glass
  • Date: 2014-01-29 10:28:50 UTC
  • Revision ID: christopher.glass@canonical.com-20140129102850-ikv9nlydzm0kwizd
Swtich package to not use python-central (as upstream packaging does)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
ver=0.18
4
 
DEB_PYTHON_SYSTEM = pycentral
5
 
 
6
 
include /usr/share/cdbs/1/rules/debhelper.mk
7
 
include /usr/share/cdbs/1/class/python-distutils.mk
8
 
include /usr/share/cdbs/1/rules/simple-patchsys.mk
9
 
 
10
 
get-orig-source:
11
 
        cd ..; wget https://launchpad.net/storm/trunk/$(ver)/+download/storm-$(ver).tar.bz2
12
 
        cd ..; bzcat storm-$(ver).tar.bz2 | gzip -c -9 > storm_$(ver).orig.tar.gz
13
 
 
 
2
%:
 
3
        dh $@ --with python2 --buildsystem=python_distutils
 
4
 
 
5
override_dh_installchangelogs:
 
6
        dh_installchangelogs NEWS
 
7
 
 
8
override_dh_auto_clean:
 
9
        dh_auto_clean
 
10
        rm -rf storm.egg-info
 
11
 
 
12
override_dh_auto_test:
14
13
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
15
 
build/python-storm::
16
 
        # don't run mysql and postgresql tests as we don't have these databases
17
 
        # setup in the build environment
18
 
        python test
 
14
        for python in $(shell pyversions -r); do \
 
15
                $$python setup.py test; \
 
16
                $$python-dbg setup.py test; \
 
17
        done
 
18
endif
 
19
 
 
20
override_dh_strip:
 
21
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
 
22
        dh_strip --dbg-package=python-storm-dbg
19
23
endif