Remove uhttpmock-devel from BuildRequires on RHEL 9

This reverts commit 87d15532bc and
restores the build conditionals that went missing during the switch to
Meson in commit 83c9c1be30.

https://bugzilla.redhat.com/show_bug.cgi?id=1904990
This commit is contained in:
Debarshi Ray 2020-12-12 23:38:05 +01:00
parent 2c600f1c17
commit 782b558c92

View File

@ -1,6 +1,6 @@
Name: libgdata
Version: 0.17.13
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for the GData protocol
License: LGPLv2+
@ -13,7 +13,7 @@ BuildRequires: glib2-devel
BuildRequires: gnome-online-accounts-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
%if 0%{?fedora} || 0%{?rhel} >= 9
%if ! 0%{?rhel}
BuildRequires: uhttpmock-devel
%endif
BuildRequires: json-glib-devel
@ -46,6 +46,11 @@ developing applications that use %{name}.
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%meson \
%if 0%{?rhel}
-Dalways_build_tests=false \
%else
-Dalways_build_tests=true \
%endif
-Dinstalled_tests=false \
-Dgtk_doc=true \
%{nil}
@ -83,6 +88,9 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%{_datadir}/vala/
%changelog
* Sat Dec 12 2020 Debarshi Ray <rishi@fedoraproject.org> - 0.17.13-2
- Remove uhttpmock-devel from BuildRequires on RHEL 9
* Thu Sep 03 2020 Kalev Lember <klember@redhat.com> - 0.17.13-1
- Update to 0.17.13