| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
binaries := $(shell dh_listpackages) |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_auto_configure: |
| 12 |
dh_auto_configure -- \ |
| 13 |
-Dinstalled_tests=true |
| 14 |
|
| 15 |
override_dh_auto_test: |
| 16 |
dh_auto_test -- --timeout-multiplier 3 |
| 17 |
|
| 18 |
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not |
| 19 |
# quite right for installed-tests |
| 20 |
override_dh_fixperms: |
| 21 |
dh_fixperms -Xusr/libexec/installed-tests |
| 22 |
ifneq ($(filter %-tests,$(binaries)),) |
| 23 |
chmod --changes u=rw,og=r debian/*-tests/usr/libexec/installed-tests/*/*.so |
| 24 |
chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests |
| 25 |
endif |
| 26 |
|
| 27 |
# Don't strip translations from the installed tests; makes them environment dependent. |
| 28 |
override_dh_translations: |
| 29 |
dh_translations -Xinstalled-tests |
| 30 |
|
| 31 |
override_dh_gnome_clean: |