diff --git a/dnf.spec b/dnf.spec index b986953510..baedf42e32 100644 --- a/dnf.spec +++ b/dnf.spec @@ -13,6 +13,7 @@ %global conflicts_dnfdaemon_version 0.3.19 %bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 11] +%bcond_with ostree # override dependencies for rhel 7 %if 0%{?rhel} == 7 @@ -153,6 +154,10 @@ Requires: rpm-plugin-systemd-inhibit %else Recommends: (rpm-plugin-systemd-inhibit if systemd) %endif +%if %{with ostree} +Requires: python3-gobject +Requires: ostree-libs +%endif Provides: dnf-command(alias) Provides: dnf-command(autoremove) Provides: dnf-command(check-update)