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