| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs |
| 5 |
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4 |
| 6 |
|
| 7 |
LIBGD_PKG := $(filter-out %-dev %-bin %-doc,$(shell awk '/^Package: libgnome-desktop-4-/ { print $$2 }' debian/control)) |
| 8 |
export GD_LIBNAME = $(LIBGD_PKG) |
| 9 |
export GD_SOVERSION = $(shell echo $(GD_LIBNAME) | rev | cut -f1 -d- | rev | sed 's/t64//') |
| 10 |
export GD_API_VERSION = $(shell echo $(GD_LIBNAME) | rev | cut -f2 -d- | rev | sed 's/t64//') |
| 11 |
|
| 12 |
LIBGD_QR_PKG := $(filter-out %-dev %-bin %-doc,$(shell awk '/^Package: libgnome-qr-[0-9]+-/ { print $$2 }' debian/control)) |
| 13 |
export GD_QR_LIBNAME = $(LIBGD_QR_PKG) |
| 14 |
export GD_QR_SOVERSION = $(shell echo $(GD_QR_LIBNAME) | rev | cut -f1 -d- | rev) |
| 15 |
export GD_QR_API_VERSION = $(shell echo $(GD_QR_LIBNAME) | rev | cut -f2 -d- | rev) |
| 16 |
|
| 17 |
LIBGD_QR_GTK_PKG := $(filter-out %-dev %-bin %-doc,$(shell awk '/^Package: libgnome-qr-gtk-[0-9]+-/ { print $$2 }' debian/control)) |
| 18 |
export GD_QR_GTK_LIBNAME = $(LIBGD_QR_GTK_PKG) |
| 19 |
export GD_QR_GTK_SOVERSION = $(shell echo $(GD_QR_GTK_LIBNAME) | rev | cut -f1 -d- | rev) |
| 20 |
export GD_QR_GTK_API_VERSION = $(shell echo $(GD_QR_GTK_LIBNAME) | rev | cut -f2 -d- | rev) |
| 21 |
|
| 22 |
%: |
| 23 |
dh $@ |
| 24 |
|
| 25 |
override_dh_gnome_clean: |
| 26 |
dh_gnome_clean --no-control |
| 27 |
|
| 28 |
override_dh_auto_configure: |
| 29 |
dh_auto_configure -- \ |
| 30 |
-Dgtk_doc=true \ |
| 31 |
-Dinstalled_tests=true \ |
| 32 |
-Ddesktop_docs=true \ |
| 33 |
-Dsystemd=$(if $(filter linux,$(DEB_HOST_ARCH_OS)),enabled,disabled) \ |
| 34 |
-Dudev=$(if $(filter linux,$(DEB_HOST_ARCH_OS)),enabled,disabled) |
| 35 |
|
| 36 |
override_dh_auto_test: |
| 37 |
debian/tests/run-with-locales \ |
| 38 |
--generate en_US.UTF-8 \ |
| 39 |
--generate he_IL.UTF-8 \ |
| 40 |
--generate ja_JP.UTF-8 \ |
| 41 |
-- \ |
| 42 |
env \ |
| 43 |
NO_AT_BRIDGE=1 \ |
| 44 |
G_MESSAGES_DEBUG=all \ |
| 45 |
dh_auto_test -- --wrap="xvfb-run -a" |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
override_dh_fixperms: |
| 50 |
dh_fixperms -Xusr/libexec/installed-tests |
| 51 |
ifneq ($(filter %-tests,$(shell dh_listpackages)),) |
| 52 |
chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests |
| 53 |
endif |
| 54 |
|
| 55 |
|
| 56 |
override_dh_translations: |
| 57 |
dh_translations --domain=gnome-desktop-3.0 |