ec3ee9cba18d5e67f6328561e1a8722eb2d222ff
[openstack-build/cinder-build.git] / trusty / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/openstack-pkg-tools/pkgos.make
7
8 %:
9         dh $@  --with python2,systemd
10
11 get-orig-source:
12         uscan --verbose --rename --destdir=../build-area
13
14 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
15 override_dh_auto_test:
16         rm -rf .testrepository
17         testr init && \
18         set -e && \
19         TEMP_REZ=`mktemp -t` && \
20         testr run --subunit | tee $$TEMP_REZ | subunit2pyunit; \
21         rm -f $$TEMP_REZ
22 endif
23
24 override_dh_install:
25         dh_install --fail-missing -Xbin/cinder-all
26
27 override_dh_fixperms:
28         dh_fixperms -Xcinder_tgt.conf
29
30 override_dh_clean:
31         # temporary workaround for d2to1 wonkyness
32         dh_clean -Xsetup.cfg
33         rm -f debian/*.init debian/*.service debian/*.upstart