Change in vdsm[ovirt-3.2]: vdsm.spec.in: with_gluster

dougsland at redhat.com dougsland at redhat.com
Mon Apr 8 21:18:03 UTC 2013


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsm.spec.in: with_gluster
......................................................................

vdsm.spec.in: with_gluster

Option to manage Gluster sub-package.

Change-Id: I925c1b12f0447798eaae6da72d726bc007511e1c
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M vdsm.spec.in
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/31/13731/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index 14922e0..6998bd0 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -3,6 +3,9 @@
 %global vdsm_bootstrap vdsm-bootstrap
 %global vdsm_reg vdsm-reg
 
+# Gluster
+%global with_gluster 1
+
 # Required users and groups
 %global vdsm_user @VDSMUSER@
 %global vdsm_group @VDSMGROUP@
@@ -397,6 +400,7 @@
 %description hook-vmdisk
 Hook adds additional disk image for a VM (raw or qcow2)
 
+%if 0%{?with_gluster}
 %package gluster
 Summary:        Gluster Plugin for VDSM
 BuildArch:      noarch
@@ -409,6 +413,7 @@
 
 %description gluster
 Gluster plugin enables VDSM to serve Gluster functionalities.
+%endif
 
 %prep
 %setup -q
@@ -814,8 +819,12 @@
 %{_datadir}/%{vdsm_name}/tests/run_tests.sh
 %{_datadir}/%{vdsm_name}/tests/route_info.out
 %{_datadir}/%{vdsm_name}/tests/tc_filter_show.out
+%if 0%{?with_gluster}
 %{_datadir}/%{vdsm_name}/tests/glusterVolumeProfileInfo.xml
 %{_datadir}/%{vdsm_name}/tests/glusterVolumeProfileInfoNfs.xml
+%else
+%exclude %{_datadir}/%{vdsm_name}/tests/gluster*
+%endif
 %{_datadir}/%{vdsm_name}/tests/functional/*.py*
 
 %files hook-vhostmd
@@ -988,6 +997,7 @@
 %{_libexecdir}/%{vdsm_name}/hooks/after_vdsm_stop/10_faqemu
 %{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/10_faqemu
 
+%if 0%{?with_gluster}
 %files gluster
 %defattr(-, root, root, -)
 %dir %{_datadir}/%{vdsm_name}/gluster
@@ -997,6 +1007,10 @@
 %{_datadir}/%{vdsm_name}/gluster/cli.py*
 %{_datadir}/%{vdsm_name}/gluster/exception.py*
 %{_datadir}/%{vdsm_name}/gluster/hostname.py*
+%else
+%exclude %{_datadir}/%{vdsm_name}/gluster/*
+%endif
+
 
 %changelog
 * Wed Oct 12 2011 Federico Simoncelli <fsimonce at redhat.com> - 4.9.0-0


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I925c1b12f0447798eaae6da72d726bc007511e1c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: ovirt-3.2
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>


More information about the vdsm-patches mailing list