2
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2025-08-22 10:17:06 +00:00

buildsys: improve resolving version

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-26 15:20:22 +02:00
parent 0c95cc53a0
commit d5137d6926
3 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,6 @@ PACKAGE=spiceterm
GITVERSION:=$(shell cat .git/refs/heads/master)
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
export VERSION=$(DEB_VERSION_UPSTREAM)
DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc

3
debian/rules vendored
View File

@ -3,6 +3,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export VERSION = $(or $(DEB_VERSION_UPSTREAM), unknown)
%:
dh $@

View File

@ -1,4 +1,5 @@
PROGRAMS=spiceterm
VERSION ?= $(or $(shell git rev-parse --short HEAD), unknown)
HEADERS=translations.h event_loop.h glyphs.h spiceterm.h keysyms.h
SOURCES=screen.c event_loop.c input.c spiceterm.c auth-pve.c