From 2782238e340df4fd428a32659a8548cedb290527 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 1 Jun 2012 14:35:39 +0200 Subject: [PATCH] Add a few RHEL tweaks On RHEL we don't want to build the client, and spice-server is x86_64 only. --- spice.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spice.spec b/spice.spec index 851b2d1..c1b5c79 100644 --- a/spice.spec +++ b/spice.spec @@ -3,6 +3,9 @@ # If you want to build both client and server change value to 1 # If you want to only build the server change value to 0 %define build_client 1 +%if 0%{?rhel} +%define build_client 0 +%endif Name: spice Version: 0.10.1 @@ -24,7 +27,12 @@ Patch7: 0008-server-mjpeg_encoder-fix-wrong-size-assigned-to-dest.patch Patch8: 0009-spice-configure-cleanup-client-build.patch # https://bugzilla.redhat.com/show_bug.cgi?id=613529 + +%if 0%{?rhel} +ExclusiveArch: x86_64 +%else ExclusiveArch: i686 x86_64 +%endif BuildRequires: pkgconfig BuildRequires: spice-protocol >= 0.10.1