]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
spec: Enable RBD storage driver in RHEL-7
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2015 10:40:54 +0000 (11:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 5 Mar 2015 15:24:53 +0000 (16:24 +0100)
Use correct package names too as they differ.

libvirt.spec.in

index 12bd17cdc030e1b9daad72c9f5aa54d6ad76d287..ce792e6d08b7a65a61573d217208707240bc31b1 100644 (file)
 %define with_storage_iscsi    0%{!?_without_storage_iscsi:%{server_drivers}}
 %define with_storage_disk     0%{!?_without_storage_disk:%{server_drivers}}
 %define with_storage_mpath    0%{!?_without_storage_mpath:%{server_drivers}}
-%if 0%{?fedora} >= 16
+%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
     %define with_storage_rbd      0%{!?_without_storage_rbd:%{server_drivers}}
 %else
     %define with_storage_rbd      0
     %endif
 %endif
 
+# librados and librbd are built only on x86_64 on rhel
+%ifnarch x86_64
+    %if 0%{?rhel} >= 7
+        %define with_storage_rbd 0
+    %endif
+%endif
+
 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
 # or HyperV.
@@ -566,7 +573,12 @@ BuildRequires: device-mapper-devel
     %endif
 %endif
 %if %{with_storage_rbd}
+    %if 0%{?rhel} >= 7
+BuildRequires: librados2-devel
+BuildRequires: librbd1-devel
+    %else
 BuildRequires: ceph-devel
+    %endif
 %endif
 %if %{with_storage_gluster}
     %if 0%{?rhel} >= 6