Install virt-v2v-in-place as unsupported tool on RHEL

On RHEL we want to ship virt-v2v-in-place, but it is not supported, so
move it to libexec and remove the documentation.

Fixes: https://issues.redhat.com/browse/RHEL-40903
(cherry picked from commit 37f4f2f35dc14de187f53abc82c0e0054c315243)
This commit is contained in:
Richard W.M. Jones 2024-07-09 11:25:24 +01:00
parent 832feeba19
commit 0bc6803daa

View File

@ -245,8 +245,10 @@ make V=1 %{?_smp_mflags}
find $RPM_BUILD_ROOT -name '*.la' -delete find $RPM_BUILD_ROOT -name '*.la' -delete
%if 0%{?rhel} %if 0%{?rhel}
# On RHEL remove virt-v2v-in-place. # On RHEL move virt-v2v-in-place to libexec since it is not supported,
rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place # and remove the documentation.
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/
rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1*
%endif %endif
@ -285,6 +287,8 @@ done
%{_bindir}/virt-v2v %{_bindir}/virt-v2v
%if !0%{?rhel} %if !0%{?rhel}
%{_bindir}/virt-v2v-in-place %{_bindir}/virt-v2v-in-place
%else
%{_libexecdir}/virt-v2v-in-place
%endif %endif
%{_bindir}/virt-v2v-inspector %{_bindir}/virt-v2v-inspector
%{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v.1*