diff --git a/ostree.spec b/ostree.spec index 62606bb..dd709a3 100644 --- a/ostree.spec +++ b/ostree.spec @@ -4,6 +4,11 @@ %else %bcond_without tests %endif +%if 0%{?rhel} < 10 + %bcond_with composefs +%else + %bcond_without composefs +%endif Summary: Tool for managing bootable, immutable filesystem trees Name: ostree @@ -46,7 +51,9 @@ BuildRequires: pkgconfig(libsystemd) BuildRequires: /usr/bin/g-ir-scanner BuildRequires: dracut BuildRequires: bison +%if %{with composefs} BuildRequires: pkgconfig(composefs) +%endif # Runtime requirements Requires: dracut @@ -55,7 +62,9 @@ Requires: systemd-units Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} # Strictly speaking, this is not a current hard requirement, but it will # be in the future. +%if %{with composefs} Requires: composefs +%endif %description libostree is a shared library designed primarily for @@ -110,7 +119,7 @@ env NOCONFIGURE=1 ./autogen.sh --with-selinux \ --with-curl \ --with-openssl \ - --with-composefs \ + %{?with_composefs:--with-composefs} \ %{?with_tests:--with-soup3} \ %{?with_tests:--enable-installed-tests=exclusive} \ --with-dracut=yesbutnoconf