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 <walters@verbum.org>
This commit is contained in:
parent
b4a08218f6
commit
e7455d50a6
12
bootc.spec
12
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*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user