exclude build for inappropriate platforms (PTREL-590).
authorRonan Le Martret <ronan@fridu.net>
Fri, 10 Jan 2014 09:44:15 +0000 (10:44 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 1 Aug 2014 14:50:21 +0000 (16:50 +0200)
build only for pure x11 platform.

wayland  |x  |meaning
---------------------------
0  |1  |pure X11 platform(no wayland)
1  |0  |pure wayland platform (no X11)
1  |1  |wayland but X compatibility
0  |0  |no X and no wayland

Change-Id: Ic8fd82ec9132ad311ce66792a44a70173c00e86d
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/xf86-video-intel.spec

index e824316..2c15f94 100644 (file)
@@ -1,3 +1,5 @@
+%bcond_with wayland
+%bcond_with x
 %define glamor 0
 
 Name:           xf86-video-intel
@@ -45,7 +47,13 @@ BuildRequires:  pkgconfig(xvmc)
 %if %glamor
 BuildRequires:  pkgconfig(glamor)
 %endif
+
+%if %{with x} && !%{with wayland}
 ExclusiveArch:  %ix86 x86_64
+%else
+ExclusiveArch:
+%endif
+
 
 %description
 intel is an Xorg driver for Intel integrated video cards.