From f7da71242fc2700a487b6908bdae9e01a31f94a6 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Thu, 16 Jan 2025 15:03:06 -0500 Subject: [PATCH] spec: libostree dependencies Add a disabled-by-default build conditional for ostree dependencies --- dnf.spec | 5 +++++ 1 file changed, 5 insertions(+) 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)