From de9f9fcf08ecac7581be68a180a57642c938622d Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sep 01 2023 17:09:26 +0000 Subject: Don't build tests on RHEL To help keep the spec file in sync. --- diff --git a/ostree.spec b/ostree.spec index 2c63f73..aada6c8 100644 --- a/ostree.spec +++ b/ostree.spec @@ -1,5 +1,5 @@ -# Don't ship tests on RHEL > 7. -%if 0%{?rhel} > 7 +# We haven't tried to ship the tests on RHEL +%if 0%{?rhel} %bcond_with tests %else %bcond_without tests @@ -23,8 +23,9 @@ BuildRequires: gtk-doc BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libcurl) BuildRequires: openssl-devel -# The tests still require soup +%if %{with tests} BuildRequires: pkgconfig(libsoup-3.0) +%endif BuildRequires: libattr-devel # The tests require attr BuildRequires: attr