#!/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 conf_flags = ifneq ($(DEB_HOST_ARCH_OS),linux) conf_flags += -Dlibcap-ng=disabled endif ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) conf_flags += -Dgtk_doc=enabled else conf_flags += -Dgtk_doc=disabled endif %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -Dauto_features=enabled \ -Dusb-acl-helper-dir=/usr/libexec \ -Dusb-ids-path=/usr/share/misc/usb.ids \ $(conf_flags) execute_after_dh_auto_install: ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) # Make sure this directory exists even with nodoc, so that we don't # need to use dh-exec in d/*-dev.install install -d debian/tmp/usr/share/gtk-doc endif # Drop the private requirement as we don't have a static library and it makes # the dependency list longer sed -E -i '/^(Libs|Requires)\.private:/D' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/spice-client-glib-2.0.pc sed -E -i '/^(Libs|Requires)\.private:/D' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/spice-client-gtk-3.0.pc execute_after_dh_fixperms: chmod 4755 debian/spice-client-glib-usb-acl-helper/usr/libexec/spice-client-glib-usb-acl-helper