From 2874d70b6b70e665446cdf3f641dc79724abe88c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 15 Aug 2022 16:49:40 -0400 Subject: [PATCH] Fix pcre-static dep on fedora < 37, for virt-preview Signed-off-by: Cole Robinson --- qemu.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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