From 2874d70b6b70e665446cdf3f641dc79724abe88c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Aug 15 2022 20:49:40 +0000 Subject: Fix pcre-static dep on fedora < 37, for virt-preview Signed-off-by: Cole Robinson --- diff --git a/qemu.spec b/qemu.spec index 6949516..ff3c093 100644 --- a/qemu.spec +++ b/qemu.spec @@ -504,7 +504,12 @@ BuildRequires: SDL2_image-devel %endif %if %{user_static} -BuildRequires: glibc-static pcre2-static glib2-static zlib-static +BuildRequires: glibc-static glib2-static zlib-static +%if 0%{?fedora} >= 37 +BuildRequires: pcre2-static +%else +BuildRequires: pcre-static +%endif %endif # Requires for the Fedora 'qemu' metapackage