From d22ee41060487e1662dd367aaca3f51d31d1f504 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: Id9b4b08641bfbf8d8d091e6dd9bd1e18dfc1fe18 --- packaging/xwd.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packaging/xwd.spec b/packaging/xwd.spec index eb96716..f082114 100755 --- a/packaging/xwd.spec +++ b/packaging/xwd.spec @@ -1,3 +1,5 @@ +%bcond_with x + Summary: dump an image of an X Window Name: xwd # NOTE: The package version should be set to the X11 major release from which @@ -33,10 +35,14 @@ BuildRequires: libpng-devel BuildRequires: libXfixes-devel BuildRequires: libXi-devel >= 1.2 BuildRequires: libXxf86vm-devel -BuildRequires: xorg-x11-xbitmaps +BuildRequires: pkgconfig(xbitmaps) Provides: xwd +%if !%{with x} +ExclusiveArch: +%endif + %description X Window System window dumping utility. Xwd allows X users to store window images in a specially formatted dump file. This file can then be read @@ -49,8 +55,8 @@ ning of the dump and twice when the dump is completed. %setup -q %build -%configure -make +%autogen --disable-static +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -- 2.7.4