Update DEB-specs to 2013.2 version
[openstack-build/neutron-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 %:
7         dh $@  --with python2
8
9 override_dh_install:
10         dh_install --fail-missing -X/usr/etc -X/usr/bin/quantum
11
12 override_dh_auto_clean:
13         dh_clean
14
15 get-orig-source:
16         uscan --verbose --force-download --rename --destdir=../build-area
17
18 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
19 override_dh_auto_test:
20         # Unpatch quantum configuration to fixup tests which conflict
21         # with a core_plugin being set.
22         patch -p1 -R < debian/patches/fix-quantum-configuration.patch
23         # Set a reasonable level of concurrency
24         ./run_tests.sh -N -P --concurrency=4 || true
25         # Patch configuration file after testing
26         patch -p1 < debian/patches/fix-quantum-configuration.patch
27 endif