From e7455d50a6feebd9fc78bb55c6ae693639bfd7bd Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 9 Dec 2024 16:42:07 -0500 Subject: [PATCH] Add a bcond with ostree_ext This adds optional support for having us take over the symlinks. This pairs with https://github.com/coreos/rpm-ostree/pull/5187 Related: #RHEL-72583 Related: #RHEL-66200 Signed-off-by: Colin Walters --- bootc.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootc.spec b/bootc.spec index be0a3e9..d650189 100644 --- a/bootc.spec +++ b/bootc.spec @@ -1,4 +1,5 @@ %bcond_without check +%bcond_with ostree_ext Name: bootc Version: 1.1.2 @@ -40,6 +41,11 @@ Requires: podman # For bootloader updates Recommends: bootupd +# A made up provides so that rpm-ostree can depend on it +%if %{with ostree_ext} +Provides: ostree-cli(ostree-container) +%endif + %description %{summary} @@ -55,6 +61,9 @@ Recommends: bootupd %install %make_install INSTALL="install -p -c" +%if %{with ostree_ext} +make install-ostree-hooks DESTDIR=%{?buildroot} +%endif %if %{with check} %check @@ -70,6 +79,9 @@ Recommends: bootupd %{_bindir}/bootc %{_prefix}/lib/bootc/ %{_prefix}/lib/systemd/system-generators/* +%if %{with ostree_ext} +%{_prefix}/libexec/libostree/ext/* +%endif %{_unitdir}/* %{_mandir}/man*/bootc*