From 54d0ab603a663b6a484ea23174e7f7c2e97d06e6 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Sat, 19 Jul 2014 12:10:56 +0900 Subject: [PATCH] not build without x Change-Id: I14bcd015c5ffb762b485fe2616244b082c843c35 --- packaging/xev.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/xev.spec b/packaging/xev.spec index b18af0d..3056c3a 100755 --- a/packaging/xev.spec +++ b/packaging/xev.spec @@ -1,3 +1,5 @@ +%bcond_with x + Summary: print contents of X events Name: xev Version: 1.2.1 @@ -13,6 +15,10 @@ BuildRequires: pkgconfig(xpm) pkgconfig(xt) pkgconfig(xtst) pkgconfig(xv) BuildRequires: pkgconfig(xxf86dga) pkgconfig(xxf86vm) BuildRequires: pkgconfig(xcb) pkgconfig(xcb-atom) +%if !%{with x} +ExclusiveArch: +%endif + %description Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, @@ -25,8 +31,8 @@ not be needed in normal usage. %setup -q %build -%configure -make +%autogen --disable-static +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -- 2.7.4