Change-Id: Id9b4b08641bfbf8d8d091e6dd9bd1e18dfc1fe18
+%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
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
%setup -q
%build
-%configure
-make
+%autogen --disable-static
+make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT