From 36ca95c770603700227379c065a7919344889a1d Mon Sep 17 00:00:00 2001 From: Boram Park Date: Sat, 19 Jul 2014 12:22:27 +0900 Subject: [PATCH] not build without x Change-Id: Ie541d17c65734295b2eba3dedb565be42bd0d88d --- packaging/xwud.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packaging/xwud.spec b/packaging/xwud.spec index 7b4ba68..17215d8 100755 --- a/packaging/xwud.spec +++ b/packaging/xwud.spec @@ -1,3 +1,5 @@ +%bcond_with x + Summary: image displayer for X Name: xwud # NOTE: The package version should be set to the X11 major release from which @@ -33,7 +35,7 @@ BuildRequires: libpng-devel BuildRequires: libXfixes-devel BuildRequires: libXi-devel >= 1.2 BuildRequires: libXxf86vm-devel -BuildRequires: xorg-x11-xbitmaps +BuildRequires: pkgconfig(xbitmaps) Provides: xwud @@ -45,6 +47,10 @@ Provides: xwud #Conflicts: xorg-x11-utils < 7.4-5.fc12 #Conflicts: xorg-x11-server-utils < 7.4-8.fc12 +%if !%{with x} +ExclusiveArch: +%endif + %description Xwud is an X Window System image undumping utility. Xwud allows X users to display in a window an image saved in a specially formatted dump file, such as @@ -56,8 +62,8 @@ produced by xwd(1). %setup -q %build -%configure -make +%autogen --disable-static +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -- 2.7.4