From 652de6bd5556d8ffd807f29fa11500fe15d3a4df Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Nov 15 2012 06:51:37 +0000 Subject: Allow builds without xfsprogs --- diff --git a/qemu.spec b/qemu.spec index 8c8d043..eb5acad 100644 --- a/qemu.spec +++ b/qemu.spec @@ -37,6 +37,11 @@ # platforms. # # Enabled by default. +# +# = have_xfsprogs = +# Enable XFS discard support. +# +# Enabled by default. %if 0%{?rhel} # RHEL-specific defaults: @@ -49,6 +54,7 @@ %bcond_with intree_roms # disabled %bcond_with intree_pc_roms # disabled %bcond_without have_libfdt # enabled +%bcond_without have_xfsprogs # enabled %else # General defaults: %bcond_with kvmonly # disabled @@ -60,6 +66,7 @@ %bcond_with intree_roms # disabled %bcond_with intree_pc_roms # disabled %bcond_without have_libfdt # enabled +%bcond_without have_xfsprogs # enabled %endif %global SLOF_gittagdate 20120731 @@ -551,7 +558,9 @@ BuildRequires: systemtap-sdt-devel # For smartcard NSS support BuildRequires: nss-devel # For XFS discard support in raw-posix.c +%if %{with have_xfsprogs} BuildRequires: xfsprogs-devel +%endif # For VNC JPEG support BuildRequires: libjpeg-devel # For VNC PNG support