summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--mingw-virt-viewer.spec.in2
-rw-r--r--src/remote-viewer-main.c2
-rw-r--r--src/virt-viewer-main.c2
-rw-r--r--src/virt-viewer-window.c2
-rw-r--r--virt-viewer.spec.in2
6 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 30c2042..e0adfe4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,6 +196,10 @@ if test "x$have_gtk_vnc" != "xyes" && test "x$have_spice_gtk" != "xyes"; then
AC_MSG_ERROR([At least one of spice or vnc must be used])
fi
+AC_ARG_WITH([buildid],
+ AS_HELP_STRING([--with-buildid=id], [Set additional build version details]))
+AC_DEFINE_UNQUOTED([BUILDID], "$with_buildid", [Build version details])
+
AC_CONFIG_FILES([
Makefile
data/Makefile
diff --git a/mingw-virt-viewer.spec.in b/mingw-virt-viewer.spec.in
index 6fdb8b5..324af35 100644
--- a/mingw-virt-viewer.spec.in
+++ b/mingw-virt-viewer.spec.in
@@ -84,7 +84,7 @@ MinGW Windows virt-viewer installer
%build
-%mingw_configure --with-gtk=2.0
+%mingw_configure --with-gtk=2.0 --with-buildid=-%{release}
%mingw_make %{?_smp_mflags} V=1
%install
diff --git a/src/remote-viewer-main.c b/src/remote-viewer-main.c
index 048f6b4..33cd2b2 100644
--- a/src/remote-viewer-main.c
+++ b/src/remote-viewer-main.c
@@ -44,7 +44,7 @@
static void
remote_viewer_version(void)
{
- g_print(_("remote-viewer version %s\n"), VERSION);
+ g_print(_("remote-viewer version %s\n"), VERSION BUILDID);
exit(EXIT_SUCCESS);
}
diff --git a/src/virt-viewer-main.c b/src/virt-viewer-main.c
index 8ac061a..51f8cc6 100644
--- a/src/virt-viewer-main.c
+++ b/src/virt-viewer-main.c
@@ -35,7 +35,7 @@
static void virt_viewer_version(void)
{
- g_print(_("%s version %s\n"), PACKAGE, VERSION);
+ g_print(_("%s version %s\n"), PACKAGE, VERSION BUILDID);
exit(EXIT_SUCCESS);
}
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index c5b485c..f4204cf 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -898,7 +898,7 @@ virt_viewer_window_menu_help_about(GtkWidget *menu G_GNUC_UNUSED,
GtkBuilder *about = virt_viewer_util_load_ui("virt-viewer-about.xml");
GtkWidget *dialog = GTK_WIDGET(gtk_builder_get_object(about, "about"));
- gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION);
+ gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(dialog), VERSION BUILDID);
gtk_window_set_transient_for(GTK_WINDOW(dialog),
GTK_WINDOW(self->priv->window));
diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in
index ee91b5f..1c92910 100644
--- a/virt-viewer.spec.in
+++ b/virt-viewer.spec.in
@@ -128,7 +128,7 @@ autoreconf -if
%define gtk_arg --with-gtk=2.0
%endif
-%configure %{spice_arg} %{plugin_arg} %{gtk_arg}
+%configure %{spice_arg} %{plugin_arg} %{gtk_arg} --with-buildid=-%{release}
%__make %{?_smp_mflags}