[virt-tools-list] [virt-viewer 2/3] spec: Group %define spice together

Christophe Fergeau cfergeau at redhat.com
Fri Sep 13 12:19:06 UTC 2013


The rhel and fedora %define for enabling spice were separated, we
can group them for better readability.
---
 virt-viewer.spec.in | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in
index fdbd42e..795f6ed 100644
--- a/virt-viewer.spec.in
+++ b/virt-viewer.spec.in
@@ -11,7 +11,7 @@
 %endif
 
 %define with_spice 0
-%if 0%{?fedora} >= 17
+%if 0%{?fedora} >= 17 || 0%{?rhel} >= 6
 %define with_spice 1
 %endif
 
@@ -20,10 +20,6 @@
 %define with_govirt 1
 %endif
 
-%if 0%{?rhel} >= 6
-%define with_spice 1
-%endif
-
 # spice-gtk is x86 x86_64 arm only currently:
 %ifnarch %{ix86} x86_64 %{arm}
 %define with_spice 0
-- 
1.8.3.1




More information about the virt-tools-list mailing list