Update specs to v. 2014.1.b3
[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_installinit:
13         dh_installinit
14         dh_installinit -pneutron-plugin-openvswitch-agent --no-start --name=neutron-ovs-cleanup
15
16 override_dh_auto_clean:
17         dh_clean
18
19 get-orig-source:
20         uscan --verbose --force-download --rename --destdir=../build-area
21
22 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
23 override_dh_auto_test:
24         # Unpatch quantum configuration to fixup tests which conflict
25         # with a core_plugin being set.
26         patch -p1 -R < debian/patches/fix-quantum-configuration.patch
27         # Set a reasonable level of concurrency
28         ./run_tests.sh -N -P
29         # Patch configuration file after testing
30         patch -p1 < debian/patches/fix-quantum-configuration.patch
31 endif