# HG changeset patch
# User Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
# Date 1308748522 10800
# Node ID d47d6105d725641ed8fdbb2d2fd0c300c9f1e773
# Parent 6c29c5b284443e226e7d97e7e5f11848b0c4e761
Conditional build requirement for RPM package
In RHEL5 uuid development files are provided by e2fsprogs-devel package,
while in most recent distros, it is provided by libuuid-devel.
Signed-off-by: Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
diff --git a/libvirt-cim.spec.in b/libvirt-cim.spec.in
--- a/libvirt-cim.spec.in
+++ b/libvirt-cim.spec.in
@@ -16,9 +16,17 @@
BuildRequires: libcmpiutil >= 0.5.4
BuildRequires: tog-pegasus-devel
BuildRequires: libvirt-devel >= 0.6.4
+
+# In RHEL5 uuid-devel is provided by e2fsprogs
+%if 0%{?el5}
+BuildRequires: e2fsprogs-devel
+%else
BuildRequires: libuuid-devel
+%endif
+
BuildRequires: libxml2-devel
BuildRequires: libcmpiutil-devel
+BuildRequires: libconfig-devel
BuildConflicts: sblim-cmpi-devel
%description
Show replies by date