[libvirt] [libvirt-glib 1/2] spec: Get min libvirt version from configure.ac

The minimum libvirt version we need is duplicated in configure.ac and libvirt.spec.in. Since libvirt.spec.in already gets some variables substituted, we can also substitute LIBVIRT_REQUIRED to avoid the duplication. --- configure.ac | 1 + libvirt-glib.spec.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7262322..369b368 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,7 @@ AC_CANONICAL_HOST AM_SILENT_RULES([yes]) LIBVIRT_REQUIRED=0.9.10 +AC_SUBST([LIBVIRT_REQUIRED]) dnl used in the .spec file GLIB2_REQUIRED=2.22.0 GOBJECT2_REQUIRED=2.10.0 GIO_REQUIRED=2.10.0 diff --git a/libvirt-glib.spec.in b/libvirt-glib.spec.in index e312926..f10c38a 100644 --- a/libvirt-glib.spec.in +++ b/libvirt-glib.spec.in @@ -18,7 +18,7 @@ %endif %define with_vala %{with_introspection} -%define libvirt_version 0.9.10 +%define libvirt_version @LIBVIRT_REQUIRED@ Name: @PACKAGE@ Version: @VERSION@ -- 1.7.12.1

The recent PMSuspend changes need libvirt 0.10.2 or newer. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 369b368..c117106 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ AC_CANONICAL_HOST AM_SILENT_RULES([yes]) -LIBVIRT_REQUIRED=0.9.10 +LIBVIRT_REQUIRED=0.10.2 AC_SUBST([LIBVIRT_REQUIRED]) dnl used in the .spec file GLIB2_REQUIRED=2.22.0 GOBJECT2_REQUIRED=2.10.0 -- 1.7.12.1

On 03.10.2012 15:56, Christophe Fergeau wrote:
The recent PMSuspend changes need libvirt 0.10.2 or newer. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ACK to both patches. Michal
participants (2)
-
Christophe Fergeau
-
Michal Privoznik