From 465b41248d0fc08ef9dbf0a0e425e7df189718fc Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Wed, 11 Apr 2012 10:50:17 +0200 Subject: [PATCH] Build cluster only on x86_64 and i686 on RHEL. --- lvm2.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lvm2.spec b/lvm2.spec index d514a2a..3d72026 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -22,7 +22,7 @@ %define enable_systemd 0 %define udev_version 158-1 %else -%if "%{fedora}" == "15" +%if "%{fedora}" == "15" %define udev_version 158-1 %else %if "%{fedora}" == "16" @@ -34,6 +34,21 @@ %define enable_openais 0 %define corosync_version 1.99.9-1 %else +%if 0%{?rhel} + %ifarch i686 x86_64 + %define enable_cluster 1 + %define enable_cmirror 1 + %else + %define enable_cluster 0 + %define enable_cmirror 0 + %endif + %define enable_thin 1 + %define enable_openais 0 + %define enable_lvmetad 1 + + %define udev_version 176-1 + %define corosync_version 1.99.9-1 +%else %define udev_version 176-1 %define enable_thin 1 %define enable_openais 0 @@ -44,6 +59,7 @@ %endif %endif %endif +%endif %if %{enable_cluster} %if %{enable_cmirror}