[libvirt] [PATCH] Add libvirt-daemon-vbox & libvirt-daemon-driver-vbox RPMs

Daniel P. Berrange berrange at redhat.com
Fri May 17 13:29:15 UTC 2013


From: "Daniel P. Berrange" <berrange at redhat.com>

Now the VirtualBox driver is a loadable module, it needs
to live in its own sub-RPM

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 libvirt.spec.in | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index bd889f3..298d96b 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -376,6 +376,9 @@ Requires: libvirt-daemon-driver-uml = %{version}-%{release}
         %if %{with_xen}
 Requires: libvirt-daemon-driver-xen = %{version}-%{release}
         %endif
+        %if %{with_vbox}
+Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
+        %endif
 
 Requires: libvirt-daemon-driver-interface = %{version}-%{release}
 Requires: libvirt-daemon-driver-secret = %{version}-%{release}
@@ -880,6 +883,19 @@ Xen
         %endif
 
 
+        %if %{with_vbox}
+%package daemon-driver-vbox
+Summary: VirtualBox driver plugin for the libvirtd daemon
+Group: Development/Libraries
+Requires: libvirt-daemon = %{version}-%{release}
+
+%description daemon-driver-vbox
+The vbox driver plugin for the libvirtd daemon, providing
+an implementation of the hypervisor driver APIs using
+VirtualBox
+        %endif
+
+
         %if %{with_libxl}
 %package daemon-driver-libxl
 Summary: Libxl driver plugin for the libvirtd daemon
@@ -1012,6 +1028,30 @@ Requires: xen
 Server side daemon and driver required to manage the virtualization
 capabilities of XEN
     %endif
+
+    %if %{with_vbox}
+%package daemon-vbox
+Summary: Server side daemon & driver required to run VirtualBoxguests
+Group: Development/Libraries
+
+Requires: libvirt-daemon = %{version}-%{release}
+        %if %{with_driver_modules}
+            %if %{with_vbox}
+Requires: libvirt-daemon-driver-vbox = %{version}-%{release}
+            %endif
+Requires: libvirt-daemon-driver-interface = %{version}-%{release}
+Requires: libvirt-daemon-driver-network = %{version}-%{release}
+Requires: libvirt-daemon-driver-nodedev = %{version}-%{release}
+Requires: libvirt-daemon-driver-nwfilter = %{version}-%{release}
+Requires: libvirt-daemon-driver-secret = %{version}-%{release}
+Requires: libvirt-daemon-driver-storage = %{version}-%{release}
+        %endif
+Requires: vbox
+
+%description daemon-vbox
+Server side daemon and driver required to manage the virtualization
+capabilities of VirtualBox
+    %endif
 %endif # %{with_libvirtd}
 
 %package client
@@ -1869,6 +1909,12 @@ fi
 %defattr(-, root, root)
 %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so
         %endif
+
+        %if %{with_vbox}
+%files daemon-driver-vbox
+%defattr(-, root, root)
+%{_libdir}/%{name}/connection-driver/libvirt_driver_vbox.so
+        %endif
     %endif # %{with_driver_modules}
 
     %if %{with_qemu_tcg}
@@ -1895,6 +1941,11 @@ fi
 %files daemon-xen
 %defattr(-, root, root)
     %endif
+
+    %if %{with_vbox}
+%files daemon-vbox
+%defattr(-, root, root)
+    %endif
 %endif # %{with_libvirtd}
 
 %if %{with_sanlock}
-- 
1.8.1.4




More information about the libvir-list mailing list