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/changelog | 5 +++++ debian/copyright | 2 +- debian/rules | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index db40fff..4007c7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,11 @@ sane-backends (1.0.24-9) UNRELEASED; urgency=medium * Correct typo and add missing "-q" to line 33 of debian/sane-utils.postinst (Closes: #773826). - Thanks to "Nelson A. de Oliveira" + * debian/rules: + - Add line to extract the version from debian/changelog. + - Add version string to dpkg-gensymbols. + * debian/copyright: + - Add years to 2014-2015 on my debian/* tag. -- Jörg Frings-Fürst Sun, 28 Dec 2014 10:50:14 +0100 diff --git a/debian/copyright b/debian/copyright index 13aa9c7..f4bd25b 100644 --- a/debian/copyright +++ b/debian/copyright @@ -13,7 +13,7 @@ Copyright: 1997-2002 Kevin Dalley 2002-2011 Julien BLACHE 2002-2006 Aurélien Jarno 2013 Mark Buda - 2014 Jörg Frings-Fürst + 2014-2015 Jörg Frings-Fürst License: GPL-2+ with sane exception Files: backend/abaton.* 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