summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-04-22 18:56:11 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-04-22 21:03:36 +0200
commit3b22ad0ef759902169d728a751b2aad0c91c30d7 (patch)
treecbde455652670cafa07da24614c4c1f4205a9f22
parentf2ab93da0ee69231245263e83917e8716b8449b6 (diff)
Set min versions from configure in .spec file
Minimum libvirt-gobject, libvirt-gconfig and libosinfo versions are set in configure.ac, it's better not to duplicate them in libvirt-designer.spec.in, it's too easy to get them out of sync.
-rw-r--r--configure.ac2
-rw-r--r--libvirt-designer.spec.in8
2 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 363221c..86c5af5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,9 +15,9 @@ LIBVIRT_GCONFIG_REQUIRED=0.0.9
LIBVIRT_GOBJECT_REQUIRED=0.1.3
GOBJECT_INTROSPECTION_REQUIRED=0.10.8
-# for proper substitution in README.in
AC_SUBST(LIBOSINFO_REQUIRED)
AC_SUBST(LIBVIRT_GCONFIG_REQUIRED)
+AC_SUBST(LIBVIRT_GOBJECT_REQUIRED)
LIBVIRT_DESIGNER_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
LIBVIRT_DESIGNER_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
diff --git a/libvirt-designer.spec.in b/libvirt-designer.spec.in
index d8145b4..894bcb8 100644
--- a/libvirt-designer.spec.in
+++ b/libvirt-designer.spec.in
@@ -20,12 +20,12 @@ License: LGPLv2+
URL: http://libvirt.org/
Source0: http://libvirt.org/sources/designer/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: libvirt-gconfig-devel >= 0.0.9
-BuildRequires: libvirt-gobject-devel >= 0.1.3
+BuildRequires: libvirt-gconfig-devel >= @LIBVIRT_GCONFIG_REQUIRED@
+BuildRequires: libvirt-gobject-devel >= @LIBVIRT_GOBJECT_REQUIRED@
%if %{with_introspection}
BuildRequires: gobject-introspection-devel
%endif
-BuildRequires: libosinfo-devel >= 0.0.5
+BuildRequires: libosinfo-devel >= @LIBOSINFO_REQUIRED@
%package libs
Group: Development/Libraries
@@ -35,7 +35,7 @@ Summary: Libvirt configuration designer libraries
Group: Development/Libraries
Summary: Libvirt configuration designer development headers
Requires: %{name}-libs = %{version}-%{release}
-Requires: libvirt-gconfig-devel >= 0.0.9
+Requires: libvirt-gconfig-devel >= @LIBVIRT_GCONFIG_REQUIRED@
%description
This package provides the libvirt configuration designer command