File: rules

package info (click to toggle)
qpdf 11.3.0-1%2Bdeb12u1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 60,280 kB
  • sloc: cpp: 56,647; perl: 11,398; ansic: 6,535; sh: 1,028; python: 934; xml: 43; makefile: 24
file content (36 lines) | stat: -rwxr-xr-x 1,071 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# To skip tests:
#export DEB_BUILD_OPTIONS=nocheck

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_compress:
	dh_compress --exclude examples/

override_dh_auto_configure:
	dh_auto_configure -- \
          -DCMAKE_BUILD_RPATH_USE_ORIGIN=1 \
	  -DUSE_IMPLICIT_CRYPTO=0 -DREQUIRE_CRYPTO_GNUTLS=1 \
	  -DSHOW_FAILED_TEST_OUTPUT=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
	  -DQTEST_COLOR=0

override_dh_install:
	dh_install
	mkdir -p debian/libqpdf-dev/usr/share/doc/libqpdf-dev
	mv debian/qpdf/usr/share/doc/qpdf/examples \
		debian/libqpdf-dev/usr/share/doc/libqpdf-dev/
	cp -p README.md debian/libqpdf-dev/usr/share/doc/libqpdf-dev/README.md
	mkdir -p debian/qpdf/usr/share/bash-completion/completions
	cp completions/bash/qpdf \
		debian/qpdf/usr/share/bash-completion/completions/qpdf
	mkdir -p debian/qpdf/usr/share/zsh/vendor-completions
	cp completions/zsh/_qpdf \
		debian/qpdf/usr/share/zsh/vendor-completions/_qpdf
	dh_missing --list-missing