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_without check
|
||||||
|
%bcond_with ostree_ext
|
||||||
|
|
||||||
Name: bootc
|
Name: bootc
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
@ -40,6 +41,11 @@ Requires: podman
|
|||||||
# For bootloader updates
|
# For bootloader updates
|
||||||
Recommends: bootupd
|
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
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
@ -55,6 +61,9 @@ Recommends: bootupd
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install INSTALL="install -p -c"
|
%make_install INSTALL="install -p -c"
|
||||||
|
%if %{with ostree_ext}
|
||||||
|
make install-ostree-hooks DESTDIR=%{?buildroot}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
@ -70,6 +79,9 @@ Recommends: bootupd
|
|||||||
%{_bindir}/bootc
|
%{_bindir}/bootc
|
||||||
%{_prefix}/lib/bootc/
|
%{_prefix}/lib/bootc/
|
||||||
%{_prefix}/lib/systemd/system-generators/*
|
%{_prefix}/lib/systemd/system-generators/*
|
||||||
|
%if %{with ostree_ext}
|
||||||
|
%{_prefix}/libexec/libostree/ext/*
|
||||||
|
%endif
|
||||||
%{_unitdir}/*
|
%{_unitdir}/*
|
||||||
%{_mandir}/man*/bootc*
|
%{_mandir}/man*/bootc*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user