!28 use libsoup2 instead of libsoup3 for build when no libsoup3 provided

From: @sherlock2010 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2024-07-04 01:04:37 +00:00 committed by Gitee
commit e5e3ce02d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: rest
Version: 0.9.1
Release: 3
Release: 4
Summary: A library for access to RESTful web services
License: LGPLv2
URL: https://www.gnome.org
@ -10,7 +10,12 @@ Patch0: 0001-rest_proxy_call_sync-bail-out-if-no-payload.patch
Patch1: 0002-Handle-some-potential-problems-in-parsing-oauth2-acc.patch
Patch2: skip-some-failed-tests.patch
BuildRequires: glib2-devel libsoup3-devel libxml2-devel gobject-introspection-devel
%if "0%{?product_family}" == "0"
BuildRequires: libsoup3-devel
%else
BuildRequires: libsoup-devel
%endif
BuildRequires: glib2-devel libxml2-devel gobject-introspection-devel
BuildRequires: libxslt meson json-glib-devel libadwaita-devel gtksourceview5-devel gi-docgen
%description
@ -39,7 +44,11 @@ Demo application for %{name}.
%autosetup -n %{name}-%{version} -p1
%build
%if "0%{?product_family}" == "0"
%meson
%else
%meson -Dsoup2=true
%endif
%meson_build
@ -80,6 +89,12 @@ Demo application for %{name}.
%{_datadir}/doc/librest-1.0
%changelog
* Wed Jul 03 2024 zhouyihang <zhouyihang3@h-partners.com> - 0.9.1-4
- Type:requirements
- Id:NA
- SUG:NA
- DESC:use libsoup2 instead of libsoup3 for build when no libsoup3 provided
* Thu Oct 26 2023 zhouyihang <zhouyihang3@h-partners.com> - 0.9.1-3
- Type:requirements
- Id:NA