not build without x devel/x11 submit/devel/x11/20140719.033714
authorBoram Park <boram1288.park@samsung.com>
Sat, 19 Jul 2014 03:22:27 +0000 (12:22 +0900)
committerBoram Park <boram1288.park@samsung.com>
Sat, 19 Jul 2014 03:36:50 +0000 (12:36 +0900)
Change-Id: I9944cbe51e4592cdcd9b8b9f71ecc3cf2386854a

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