summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/rules25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..046f0e2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
+export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
+
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+ENABLE_SELINUX := -Dselinux=true
+else
+ENABLE_SELINUX := -Dselinux=false
+endif
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ -Ddocs=true \
+ -Dpackagekit=true \
+ -Dtests=all \
+ $(ENABLE_SELINUX)
+
+override_dh_auto_test:
+ touch $(CURDIR)/debian/.debhelper/generated/_source/home/.gtk-bookmarks
+ NO_AT_BRIDGE=1 dbus-run-session -- xvfb-run --auto-servernum dh_auto_test