From 6023d0ffc729e956df760122594853ba6b3c4fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Fri, 2 Jan 2015 20:11:37 +0100 Subject: Add version string to dpkg-gensymbols --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 5fc4afb..3647468 100755 --- a/debian/rules +++ b/debian/rules @@ -26,6 +26,8 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) STRIP = "" endif +VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/-.*).*//;s/\+/\-/') + %: dh $@ --parallel --with autotools_dev,systemd @@ -137,5 +139,5 @@ override_dh_builddeb: dh_builddeb -- -Zxz override_dh_makeshlibs: - dpkg-gensymbols -plibsane + dpkg-gensymbols -v$(VERSION) -plibsane dh_makeshlibs -- cgit v1.2.3