+1. Thanks and pushed.
On 06/22/2011 09:41 AM, Eduardo Lima (Etrunko) wrote:
# HG changeset patch
# User Eduardo Lima (Etrunko)<eblima(a)br.ibm.com>
# Date 1308750020 10800
# Node ID c6f1723d2c68c5e8ba371e4dea4d7aaae6cca326
# 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.
Changes from #1:
- Remove libconfig-devel build dependency
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,7 +16,14 @@
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
BuildConflicts: sblim-cmpi-devel
--
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent(a)linux.vnet.ibm.com