From 968f3d724db6dffc7ddab10585e31f9aadf35095 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 21 Jul 2022 06:26:54 -0400 Subject: [PATCH] Use libsoup2 on older distros (like via virt-preview) Signed-off-by: Cole Robinson --- libosinfo.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libosinfo.spec b/libosinfo.spec index 84c269c..207068c 100644 --- a/libosinfo.spec +++ b/libosinfo.spec @@ -17,7 +17,11 @@ BuildRequires: gettext-devel BuildRequires: glib2-devel BuildRequires: libxml2-devel >= 2.6.0 BuildRequires: libxslt-devel >= 1.0.0 +%if 0%{?fedora} >= 36 BuildRequires: libsoup3-devel +%else +BuildRequires: libsoup-devel +%endif BuildRequires: vala BuildRequires: /usr/bin/pod2man BuildRequires: hwdata