]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Tweak specfile to fix RHEL6 rules & ESX/PHYP enablement
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 16 Sep 2009 15:02:38 +0000 (16:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Sep 2009 14:24:08 +0000 (15:24 +0100)
* libvirt.spec.in: ESX/PHYP drivers do not require libvirtd.
  RHEL-6 should include LXC on all arches

libvirt.spec.in

index de4d094fa5e9fd6e9edef8f8c73f24efd7311c0e..7add13f8715d7539641c99bbee0a3d3cd56d9574 100644 (file)
@@ -7,13 +7,6 @@
 
 # Now turn off server build in certain cases
 
-# RHEL-6 builds are client-only except for x86_64
-%if 0%{?rhel} >= 6
-%ifnarch x86_64
-%define client_only        1
-%endif
-%endif
-
 # RHEL-5 builds are client-only for s390, ppc
 %if 0%{?rhel} == 5
 %ifnarch i386 i586 i686 x86_64 ia64
@@ -36,7 +29,7 @@
 %define with_libvirtd      0%{!?_without_libvirtd:%{server_drivers}}
 %define with_avahi         0%{!?_without_avahi:%{server_drivers}}
 
-# Then the hypervisor drivers
+# Then the hypervisor drivers that run on local host
 %define with_xen           0%{!?_without_xen:%{server_drivers}}
 %define with_xen_proxy     0%{!?_without_xen_proxy:%{server_drivers}}
 %define with_qemu          0%{!?_without_qemu:%{server_drivers}}
 %define with_lxc           0%{!?_without_lxc:%{server_drivers}}
 %define with_vbox          0%{!?_without_vbox:%{server_drivers}}
 %define with_uml           0%{!?_without_uml:%{server_drivers}}
+# XXX this shouldn't be here, but it mistakenly links into libvirtd
 %define with_one           0%{!?_without_one:%{server_drivers}}
-%define with_phyp          0%{!?_without_phyp:%{server_drivers}}
-%define with_esx           0%{!?_without_esx:%{server_drivers}}
+
+# Then the hypervisor drivers that talk a native remote protocol
+%define with_phyp          0%{!?_without_phyp:1}
+%define with_esx           0%{!?_without_esx:1}
 
 # Then the secondary host drivers
 %define with_network       0%{!?_without_network:%{server_drivers}}
 %define with_lxc 0
 %endif
 
-# RHEL-6 stopped including Xen on all archs
+# RHEL-6 has restricted QEMU to x86_64 only, stopped including Xen
+# on all archs. Other archs all have LXC available though
 %if 0%{?rhel} >= 6
+%ifnarch x86_64
+%define with_qemu 0
+%endif
 %define with_xen 0
 %endif