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 34 35 36 37 38 39 40 41 42 43 44 45
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed
export BUILDDIR = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)
# needed for Ubuntu
export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
%:
dh $@ --with gir,gnome
override_dh_auto_configure:
dh_auto_configure -- \
-Dunicode_support=icu \
-Dfts=true \
-Dstemmer=enabled \
-Ddocs=true \
-Dfunctional_tests=true \
-Dnetwork_manager=disabled \
-Dsystemd_user_services=/usr/lib/systemd/user
# These utils are not used by tracker-miners yet, but they will be used by it
# soon. See upstream commit 8ae991922
override_dh_install:
rm -rv debian/tmp/usr/lib/*/tracker-2.0/trackertestutils
dh_install
override_dh_missing:
dh_missing --fail-missing
# Enforce tight shlibs dependencies
override_dh_makeshlibs:
dh_makeshlibs -V -X/usr/lib/$(DEB_HOST_MULTIARCH)/tracker-2.0/ -- -c4
override_dh_strip:
dh_strip --dbgsym-migration='tracker-dbg (<< 1.7.4-1~)'
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
mkdir -p -m0755 $(BUILDDIR)/HOME
mkdir -p -m0700 $(BUILDDIR)/XRD
env HOME=$(BUILDDIR)/HOME XDG_RUNTIME_DIR=$(BUILDDIR)/XRD \
dbus-run-session -- dh_auto_test --no-parallel || true
endif
|