File: rules

package info (click to toggle)
cpdb-backend-cups 2.0b5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: ansic: 2,527; sh: 417; xml: 127; makefile: 77
file content (36 lines) | stat: -rwxr-xr-x 1,037 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-silent-rules \
		--with-shell=/bin/sh \
                --libdir=/usr/lib \
		--mandir=/usr/share/man

override_dh_installdocs:
	dh_installdocs -A README.md

override_dh_auto_clean:
	[ ! -r Makefile ] || make distclean

override_dh_install:
	dh_install

override_dh_auto_test:
	# at the moment do nothing here
	# the packages needed for these tests are not yet in Debian

get-orig-source:
	set -e;\
	quilt pop -af || true ;\
	rm -Rf .pc ;\
	gbp import-orig --pristine-tar --uscan --no-merge --upstream-branch=upstream/latest;\
	utag=`git describe --exact-match heads/upstream/latest | sed -e 's#^upstream/##'` ;\
	ucommit=`git rev-parse --verify upstream/latest`;\
	git dpm record-new-upstream --rebase-patched --allow-changes-in-debian-branch ../cpdb-backend-cups_$$utag.orig.tar.gz $$ucommit ;\
	git dpm update-patches -m "Merge upstream-repacked $$utag version and refresh git-dpm patches"