debian: Report upstream and package version instead of git revision

This commit is contained in:
Balint Reczey 2019-07-15 21:01:34 +02:00 committed by Wireshark GitLab Utility
parent 6617c7fc5d
commit ba4bec7d09
1 changed files with 3 additions and 0 deletions

3
debian/rules vendored
View File

@ -15,6 +15,8 @@ ifeq ($(distrelease),n/a)
distrelease := sid
endif
GIT_VERSION = "Git v$(DEB_VERSION_UPSTREAM)" packaged as "$(DEB_VERSION)"
# This has to be exported to make some magic below work.
export DH_OPTIONS
@ -34,6 +36,7 @@ endif
dh $@ --with python3 --buildsystem $(DH_BUILDSYSTEM) --with quilt
override_dh_auto_configure:
echo "#define VCSVERSION \"$(GIT_VERSION)\"" > version.h
dh_auto_configure -- -DBUILD_xxx2deb=ON -DBUILD_corbaidl2wrs=ON
override_dh_auto_build: