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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_auto_configure:
# First build MPI version of Garli
dh_auto_configure -- --with-ncl=/usr --enable-mpi
dh_auto_build
mkdir -p debian/mpi
mv src/Garli debian/mpi/Garli-mpi
make distclean
# Now build single processor binary
dh_auto_configure -- --with-ncl=/usr
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifneq ($(DEB_HOST_ARCH),armel)
cp -a tests tests.bak
# get (mostly!) reproducible test results and avoid failures as described in bug #907905
find tests -name "*.conf" -exec sed -i~ 's/randseed *= *-1/randseed = 1\nbootstrapseed = 42/' \{\} \;
dh_auto_test
# restore original test dir
rm -rf tests
mv tests.bak tests
else
@ echo 'W: Skipping test suite on armel: too heavyweight.'
endif
endif
|