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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_PYTHON_INSTALL_LAYOUT=deb_system
include /usr/share/dpkg/architecture.mk
%:
dh $@ --buildsystem=cmake --builddir=build
override_dh_auto_test:
# Ignore test failures on problematic architectures only
ifeq (,$(filter $(DEB_BUILD_ARCH),amd64))
PYTHONPATH=$(CURDIR)/build dh_auto_test || echo "Ignoring test failures"
else
PYTHONPATH=$(CURDIR)/build dh_auto_test
endif
execute_after_dh_auto_install:
find $(CURDIR)/debian/tmp -name '*.so*' -exec chrpath -d {} \;
|