File: rules

package info (click to toggle)
libaccounts-glib 1.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 988 kB
  • ctags: 854
  • sloc: ansic: 11,266; xml: 1,171; makefile: 320; python: 72; sh: 57
file content (39 lines) | stat: -rwxr-xr-x 1,309 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
35
36
37
38
39
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DPKG_GENSYMBOLS_CHECK_LEVEL=4

override_dh_auto_configure:
	dh_auto_configure -- --enable-gtk-doc --disable-wal

override_dh_install:
	# install the python3 gir override file as well
	PYTHON=python3 ./configure --prefix=/usr
	cd pygobject/ && DESTDIR=../debian/tmp make install && cd ..
	rm debian/tmp/usr/lib/*/*.la
	rm debian/tmp/usr/lib/python*/dist-packages/gi/overrides/*.pyc
	rm debian/tmp/usr/lib/python*/dist-packages/gi/overrides/*.pyo
	rm -rf debian/tmp/usr/lib/python3/dist-packages/gi/overrides/__pycache__/
	rm debian/tmp/usr/share/backup-framework/applications/accounts.conf
	# Remove the installed tests
	rm -rf debian/tmp/usr/share/libaccounts-glib/testdata
	rm -rf debian/tmp/usr/lib/*/libaccounts-glib
	dh_install --fail-missing
	dh_python2 -pgir1.2-accounts-1.0

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_auto_test:
	# Tests often fail in Jenkins for timeout reasons; therefore, increase
	# the timeout value
	CK_TIMEOUT_MULTIPLIER=10 CK_DEFAULT_TIMEOUT=0 VERBOSE=1 \
	  xvfb-run -a dbus-run-session dh_auto_test

override_dh_strip:
	dh_strip --dbgsym-migration='libaccounts-glib-dbg (<= 1.18+20150112-2~)'

%:
	dh $@ --with autoreconf,python2