diff --git a/rest.spec b/rest.spec index 294ef317f7a44e55907c7cf3a56e20a8aec0c8ea..a639bdf64743e508f1cc9e7956667ffc879dcbd2 100644 --- a/rest.spec +++ b/rest.spec @@ -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 - 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 - 0.9.1-3 - Type:requirements - Id:NA