| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 8 |
|
| 9 |
export DEB_PYTHON_INSTALL_LAYOUT=deb_system |
| 10 |
|
| 11 |
include /usr/share/dpkg/architecture.mk |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --buildsystem=cmake --builddir=build |
| 15 |
|
| 16 |
override_dh_auto_configure: |
| 17 |
dh_auto_configure -- -DSTANDALONE_BUILD=ON |
| 18 |
|
| 19 |
override_dh_auto_test: |
| 20 |
|
| 21 |
ifeq (,$(filter $(DEB_BUILD_ARCH),amd64)) |
| 22 |
PYTHONPATH=$(CURDIR)/build dh_auto_test || echo "Ignoring test failures" |
| 23 |
else |
| 24 |
PYTHONPATH=$(CURDIR)/build dh_auto_test |
| 25 |
endif |
| 26 |
|
| 27 |
execute_after_dh_auto_install: |
| 28 |
find $(CURDIR)/debian/tmp -name '*.so*' -exec chrpath -d {} \; |