From cf0acedeb866abd796e6adf73796973899325920 Mon Sep 17 00:00:00 2001 From: Mariusz Mazur Date: Thu, 11 Aug 2016 13:08:25 +0200 Subject: [PATCH] Add bcond --without gl It builds, no idea what it disables though. --- qemu.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qemu.spec b/qemu.spec index 8188ab7..245a10e 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,6 +1,7 @@ # # Conditional build: %bcond_without sdl # SDL UI and audio support +%bcond_without gl # Don't require gl deps %bcond_without ceph # Ceph/RBD support %bcond_without glusterfs # GlusterFS backend %bcond_without rdma # RDMA-based migration support @@ -65,8 +66,8 @@ Patch5: libjpeg-boolean.patch Patch6: x32.patch Patch7: %{name}-sh.patch URL: http://www.qemu-project.org/ -BuildRequires: OpenGL-devel -BuildRequires: OpenGL-GLX-devel +%{?with_gl:BuildRequires: OpenGL-devel} +%{?with_gl:BuildRequires: OpenGL-GLX-devel} %{?with_sdl:BuildRequires: SDL2-devel >= 2.0} BuildRequires: alsa-lib-devel BuildRequires: bcc >= 0.16.21-2 @@ -84,7 +85,7 @@ BuildRequires: libaio-devel %{?with_smartcard:BuildRequires: libcacard-devel} BuildRequires: libcap-devel BuildRequires: libcap-ng-devel -BuildRequires: libepoxy-devel +%{?with_gl:BuildRequires: libepoxy-devel} BuildRequires: libfdt-devel %{?with_rdma:BuildRequires: libibverbs-devel} %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0} -- 2.44.0