]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Use correct versions of libgfapi in RHEL builds
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Feb 2014 12:47:32 +0000 (13:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 26 Feb 2014 12:24:45 +0000 (13:24 +0100)
RHEL still uses the 3.4.0 package of libgfapi and the package is built
only for x86_64.

libvirt.spec.in

index 3d5a69eb0aafc08cf22e9a61a40460e98f546520..fae4bb71d3ca507e525384e7c05c018656bfa04c 100644 (file)
@@ -98,7 +98,7 @@
 %else
     %define with_storage_sheepdog 0
 %endif
-%if 0%{?fedora} >= 19
+%if 0%{?fedora} >= 19 || 0%{?rhel >= 6}
     %define with_storage_gluster 0%{!?_without_storage_gluster:%{server_drivers}}
 %else
     %define with_storage_gluster 0
     %define with_numactl 0
 %endif
 
+# libgfapi is built only on x86_64 on rhel
+%ifnarch x86_64
+    %if 0%{?rhel >= 6}
+        %define with_storage_gluster 0
+    %endif
+%endif
+
 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
 # VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
 # or HyperV.
@@ -571,8 +578,13 @@ BuildRequires: ceph-devel
     %endif
 %endif
 %if %{with_storage_gluster}
+    %if 0%{?rhel} >= 6
+BuildRequires: glusterfs-api-devel >= 3.4.0
+BuildRequires: glusterfs-devel >= 3.4.0
+    %else
 BuildRequires: glusterfs-api-devel >= 3.4.1
 BuildRequires: glusterfs-devel >= 3.4.1
+    %endif
 %endif
 %if %{with_numactl}
 # For QEMU/LXC numa info