summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2018-05-05 10:02:19 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2018-05-05 10:02:19 +0200
commita3cfc95b3851fc7405c54e11c0371664c73d2003 (patch)
treec56012d20a6511430fa972e75b1d21382a728b37 /debian/rules
parent9da10f705434d2a18d1ac3670f16d9b10e77f10c (diff)
Declare compliance with Debian Policy 4.1.4; d/rules: Switch to
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index 2df6d7e..3245017 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/default.mk
+
# hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -34,10 +36,8 @@ override_dh_installdocs-indep:
$(RM) debian/liburiparser-doc/usr/share/doc/liburiparser-doc/html/*.md5
dh_installdocs
-UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -n '/\(Version:\)/{s/^Version:[[:space:]]\+\([0-9]\+:\)\?\(.*\)/\2/p}' | rev | cut -d- -f 2- | rev)
-
override_dh_makeshlibs:
- dh_makeshlibs -- -v$(UPSTREAM_VERSION) -Pdebian/liburiparser1 -pliburiparser1
+ dh_makeshlibs -- -v$(DEB_VERSION_UPSTREAM) -Pdebian/liburiparser1 -pliburiparser1
override_dh_compress:
dh_compress -X.qhp