File: rules

package info (click to toggle)
libsecret 0.18.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,720 kB
  • sloc: ansic: 23,368; sh: 4,755; python: 1,792; xml: 1,037; makefile: 521; sed: 16
file content (34 lines) | stat: -rwxr-xr-x 912 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --with gir,gnome

# We can't depend on gjs being available on s390x. See #909536
# Also, some tests hang on Launchpad builders on s390x
override_dh_autoreconf:
ifneq (,$(filter $(DEB_HOST_ARCH),s390x))
	sed -i -e '/^TESTS/s/\$$(JS_TESTS)//' libsecret/Makefile.am
ifeq (yes,$(shell dpkg-vendor --is Ubuntu && echo yes))
	sed -i -e '/^TESTS/s/\$$(PY_TESTS)//' -e '/^TESTS/s/\$$(VALA_TESTS)//' \
		 libsecret/Makefile.am
endif
endif
	dh_autoreconf --as-needed

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_auto_test:
ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
	env -u LD_PRELOAD dbus-run-session -- dh_auto_test
endif