Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
6 years ago
1 | 1 |
|
2 | 2 |
* Change priority from extra to optional.
|
3 | 3 |
* Bump Standards-Version to 4.1.0, changes: priority.
|
|
4 |
* Use pkg-info.mk variables instead of dpkg-parsechangelog output.
|
4 | 5 |
|
5 | 6 |
-- Bas Couwenberg <sebastic@debian.org> Sun, 24 Sep 2017 13:06:02 +0200
|
6 | 7 |
|
9 | 9 |
# Enable hardening build flags
|
10 | 10 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
|
11 | 11 |
|
12 | |
GEOTIFF_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
|
|
12 |
include /usr/share/dpkg/pkg-info.mk
|
|
13 |
|
|
14 |
UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
|
13 | 15 |
|
14 | 16 |
%:
|
15 | 17 |
dh $@ --with autoreconf --parallel
|
|
29 | 31 |
|
30 | 32 |
override_dh_makeshlibs:
|
31 | 33 |
# Forces failure ignoring to collect new symbols
|
32 | |
dh_makeshlibs -- -v$(GEOTIFF_VERSION)
|
|
34 |
dh_makeshlibs -- -v$(UPSTREAM_VERSION)
|
33 | 35 |
|
34 | 36 |
override_dh_strip:
|
35 | 37 |
dh_strip --dbg-package=libgeotiff2-dbg
|