mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-18 06:03:43 +03:00
build-sys: add --with-buildid to details build version
Add a configure argument to append build version details, similar to what Daniel Berrange proposed in the "use finer package version in mingw-virt-viewer" thread on the ML.
This commit is contained in:
parent
da45d9fa1e
commit
a52b5ea88c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user