File: rules

package info (click to toggle)
telepathy-gabble 0.18.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 15,464 kB
  • sloc: ansic: 121,258; python: 30,728; sh: 4,441; xml: 2,842; makefile: 1,826
file content (51 lines) | stat: -rwxr-xr-x 1,574 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python2

# Now that we use debhelper 9, dh_auto_configure defaults to
# $libexecdir=$libdir, which might be better than this, but doesn't match
# our historical practice (so it'd break old debugging instructions).
# Leaving it as it was for now...
override_dh_auto_configure:
	dh_auto_configure -- \
		--libdir="\$${prefix}/lib" \
		--libexecdir="\$${prefix}/lib/telepathy" \
		--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt \
		--disable-static \
		--enable-installed-tests
		$(NULL)

# the regression tests are too race-prone to run on Debian buildds
override_dh_auto_test:
	:

# remove the development symlinks - nothing in Debian should depend on these
# private libraries
override_dh_auto_install:
	dh_auto_install
	rm -f debian/tmp/usr/lib/telepathy/gabble-0/plugins/*.la
	rm -f debian/tmp/usr/lib/telepathy-gabble-tests/plugins/*.la
	rm -f debian/tmp/usr/lib/telepathy/gabble-0/lib/*.la
	rm -f debian/tmp/usr/lib/telepathy/gabble-0/lib/libwocky.so
	rm -f debian/tmp/usr/lib/telepathy/gabble-0/lib/libgabble-plugins.so

override_dh_install:
	dh_install --list-missing

override_dh_strip:
	dh_strip --dbgsym-migration='telepathy-gabble-dbg (<< 0.18.3-3~)'

# the libraries are considered private, nothing in Debian should depend on them
override_dh_makeshlibs:
	:

override_dh_shlibdeps:
	sed -e 's!@DEB_VERSION_UPSTREAM@!$(DEB_VERSION_UPSTREAM)!' \
		< debian/shlibs.local.in \
		> debian/shlibs.local
	dh_shlibdeps -Ltelepathy-gabble