1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/make -f
# Verbose mode
#export DH_VERBOSE=1
DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
export OSLO_PACKAGE_VERSION=$(VERSION)
%:
dh $@ --with python2
get-orig-source:
uscan --verbose --force-download --rename --destdir=../build-area
override_dh_install:
dh_install --fail-missing
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
nosetests -d glance/tests/unit || true
endif
override_dh_auto_build:
dh_auto_build
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
mkdir doc/build
python setup.py build_sphinx
else
mkdir -p doc/build/html
endif
override_dh_auto_clean:
dh_auto_clean
rm -rf doc/build
rm -rf glance.sqlite
override_dh_installinit:
dh_installinit --name glance-api
dh_installinit --name glance-registry
|