From 9bdf4d356ad02637a8134c7ce9f27e62e4d3718b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 5 Jul 2023 14:11:41 -0400 Subject: [PATCH] spec: Drop gvnc-devel dep on rhel It's not available in centos stream 9 repos. Fixes virt-preview builds for centos stream 9 chroots Signed-off-by: Cole Robinson --- qemu.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu.spec b/qemu.spec index 8994dcb..13bc47d 100644 --- a/qemu.spec +++ b/qemu.spec @@ -119,6 +119,7 @@ %global have_libblkio 1 %endif +%global have_gvnc_devel %{defined fedora} %global have_sdl_image %{defined fedora} %global have_fdt 1 %global have_opengl 1 @@ -509,8 +510,10 @@ BuildRequires: fuse3-devel %if %{have_sdl_image} BuildRequires: SDL2_image-devel %endif -# gvnc used by vnc-display-test +%if %{have_gvnc_devel} +# Used by vnc-display-test BuildRequires: pkgconfig(gvnc-1.0) +%endif %if %{user_static} BuildRequires: glibc-static glib2-static zlib-static