From: Mariusz Mazur Date: Thu, 11 Aug 2016 11:08:25 +0000 (+0200) Subject: Add bcond --without gl X-Git-Tag: auto/th/qemu-2.7.0-1~4 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fqemu.git;a=commitdiff_plain;h=cf0acedeb866abd796e6adf73796973899325920 Add bcond --without gl It builds, no idea what it disables though. --- 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}