Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsm.spec: Add with_vhostmd
......................................................................

vdsm.spec: Add with_vhostmd

The package vhostmd is only available on Fedora, the EL* version
is not available at moment.

Change-Id: Iffacf45abc2dfe866d4f3ea28e872a2fdddd69dc
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
---
M vdsm.spec.in
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/26/23126/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index ae2f822..e60b1b4 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -29,6 +29,10 @@
 %global with_gluster 1
 %endif
 
+%if ! 0%{?rhel} 
+%global with_vhostmd 1
+%endif
+
 %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
 %global with_systemd 1
 %endif
@@ -367,6 +371,7 @@
 VDSM hook used to perform consistency check on a qcow2 format disk image
 using the QEMU disk image utility.
 
+%if 0%{?with_vhostmd}
 %package hook-vhostmd
 Summary:        VDSM hook set for interaction with vhostmd
 Requires:       vhostmd
@@ -374,6 +379,7 @@
 
 %description hook-vhostmd
 VDSM hook to use vhostmd per VM according to Virtualization Manager requests.
+%endif
 
 %package hook-faqemu
 Summary:        Fake qemu process for VDSM quality assurance
@@ -1159,6 +1165,7 @@
 %{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotplug/50_openstacknet
 %{_libexecdir}/%{vdsm_name}/hooks/before_nic_hotplug/openstacknet_utils.py*
 
+%if 0%{?with_vhostmd}
 %files hook-vhostmd
 %defattr(-, root, root, -)
 %doc COPYING
@@ -1167,6 +1174,13 @@
 %{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_vhostmd
 %{_libexecdir}/%{vdsm_name}/hooks/before_vm_dehibernate/50_vhostmd
 %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_vhostmd
+%else
+%exclude %{_sysconfdir}/sudoers.d/50_vdsm_hook_vhostmd
+%exclude %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/50_vhostmd
+%exclude 
%{_libexecdir}/%{vdsm_name}/hooks/before_vm_migrate_destination/50_vhostmd
+%exclude %{_libexecdir}/%{vdsm_name}/hooks/before_vm_dehibernate/50_vhostmd
+%exclude %{_libexecdir}/%{vdsm_name}/hooks/after_vm_destroy/50_vhostmd
+%endif
 
 %files hook-qemucmdline
 %defattr(-, root, root, -)


-- 
To view, visit http://gerrit.ovirt.org/23126
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iffacf45abc2dfe866d4f3ea28e872a2fdddd69dc
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to