From 6edd99f8917f43929b10c2a7376d9239d91ba9f3 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 19 Jan 2021 13:55:20 -0600 Subject: [PATCH] d/rules: Specify package version to CMake. --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index 08f0acf..c985337 100755 --- a/debian/rules +++ b/debian/rules @@ -9,3 +9,9 @@ endif %: dh $@ + +# Tell CMake what the package version will be, to embed in the version string. +# We do this for upstream's benefit, in lieu of including a git commit hash. +override_dh_auto_configure: + dh_auto_configure -- \ + -DDEBVERSION=$(shell dpkg-parsechangelog --show-field version) -- 2.30.2