]> review.fuel-infra Code Review - openstack-build/cinder-build.git/blob - debian/rules
3f35e3ccb68fab2e1256d5a7bfba95fd668da82f
[openstack-build/cinder-build.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
7 VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
8 export OSLO_PACKAGE_VERSION=$(VERSION)
9
10 %:
11         dh $@  --with python2
12
13 get-orig-source:
14         uscan --verbose --rename --destdir=../build-area
15
16 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
17 override_dh_auto_test:
18         PYTHONPATH=$(CURDIR) bash run_tests.sh -N -v
19 endif
20
21 override_dh_install:
22         dh_install --fail-missing -Xbin/cinder-all
23
24 override_dh_fixperms:
25         dh_fixperms -Xcinder_tgt.conf