d/rules: Specify package version to CMake.
authorRyan Pavlik <ryan.pavlik@collabora.com>
Tue, 19 Jan 2021 19:55:20 +0000 (13:55 -0600)
committerRyan Pavlik <ryan.pavlik@collabora.com>
Thu, 21 Jan 2021 15:58:29 +0000 (09:58 -0600)
debian/rules

index 08f0acf227abc6522e2294d98ab9281e51b36746..c985337587fb227dfb159aea7e84e2eb752f3760 100755 (executable)
@@ -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)