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*