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:
parent
832feeba19
commit
0bc6803daa
@ -245,8 +245,10 @@ make V=1 %{?_smp_mflags}
|
||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
||||
|
||||
%if 0%{?rhel}
|
||||
# On RHEL remove virt-v2v-in-place.
|
||||
rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place
|
||||
# On RHEL move virt-v2v-in-place to libexec since it is not supported,
|
||||
# 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*
|
||||
%endif
|
||||
|
||||
@ -285,6 +287,8 @@ done
|
||||
%{_bindir}/virt-v2v
|
||||
%if !0%{?rhel}
|
||||
%{_bindir}/virt-v2v-in-place
|
||||
%else
|
||||
%{_libexecdir}/virt-v2v-in-place
|
||||
%endif
|
||||
%{_bindir}/virt-v2v-inspector
|
||||
%{_mandir}/man1/virt-v2v.1*
|
||||
|
Loading…
Reference in New Issue
Block a user