not build without x 26/24926/1
authorBoram Park <boram1288.park@samsung.com>
Sat, 19 Jul 2014 03:22:27 +0000 (12:22 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 24 Jul 2014 06:29:08 +0000 (15:29 +0900)
Change-Id: Id9b4b08641bfbf8d8d091e6dd9bd1e18dfc1fe18

packaging/xwd.spec

index eb96716..f082114 100755 (executable)
@@ -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