From f7e12dd650a402dbcfdff0da506671a671893f56 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Oct 27 2016 16:27:31 +0000 Subject: Split off virt-p2v into virt-p2v-maker so it doesn't depend on X (RHBZ#1382275). (cherry picked from commit 7cef4a33055226cddc2208db8c08f041303f8270) --- diff --git a/libguestfs.spec b/libguestfs.spec index 32b2faa..85e133c 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -239,8 +239,10 @@ subpackages are: libguestfs-tools-c only the subset of virt tools written in C (for reduced dependencies) virt-dib safe and secure diskimage-builder replacement - virt-v2v convert virtual or physical machines to run - on KVM (also known as V2V and P2V) + virt-v2v convert virtual machines to run on KVM + (also known as V2V) + virt-p2v-maker convert physical machines to run on KVM + (also known as P2V) For enhanced features, install: @@ -576,16 +578,42 @@ Requires: gzip Requires: unzip Requires: curl Requires: /usr/bin/virsh -# 'strip' binary is required by virt-p2v-make-kickstart. -Requires: binutils # For rhsrvany.exe, used to install firstboot scripts in Windows guests. Requires: mingw32-srvany >= 1.0-13 %description -n virt-v2v -Virt-v2v and virt-p2v are tools that convert virtual machines from -non-KVM hypervisors, or physical machines, to run under KVM. +Virt-v2v converts virtual machines from non-KVM hypervisors +to run under KVM. + +To convert physical machines, see the virt-p2v-maker package. + + +%package -n virt-p2v-maker +Summary: Convert a physical machine to run on KVM +License: GPLv2+ + +Requires: gawk +Requires: gzip + +# virt-p2v-make-disk runs virt-builder: +Requires: %{name}-tools-c = %{epoch}:%{version}-%{release} + +# virt-p2v-make-kickstart runs strip: +Requires: binutils + + +%description -n virt-p2v-maker +Virt-p2v converts (virtualizes) physical machines so they can be run +as virtual machines under KVM. + +This package contains the tools needed to make a virt-p2v boot CD or +USB key which is booted on the physical machine to perform the +conversion. You also need virt-v2v installed somewhere else to +complete the conversion. + +To convert virtual machines from other hypervisors, see virt-v2v. %package bash-completion @@ -1221,21 +1249,26 @@ install -m 0644 utils/boot-benchmark/boot-benchmark.1 $RPM_BUILD_ROOT%{_mandir}/ %files -n virt-v2v %doc COPYING README v2v/TODO +%{_bindir}/virt-v2v +%{_bindir}/virt-v2v-copy-to-local +%{_mandir}/man1/virt-v2v.1* +%{_mandir}/man1/virt-v2v-copy-to-local.1* +%{_mandir}/man1/virt-v2v-test-harness.1* +%{_datadir}/virt-tools + + +%files -n virt-p2v-maker +%doc COPYING README %{_libexecdir}/virt-p2v %{_bindir}/virt-p2v-make-disk %{_bindir}/virt-p2v-make-kickstart %{_bindir}/virt-p2v-make-kiwi -%{_bindir}/virt-v2v -%{_bindir}/virt-v2v-copy-to-local %{_mandir}/man1/virt-p2v.1* %{_mandir}/man1/virt-p2v-make-disk.1* %{_mandir}/man1/virt-p2v-make-kickstart.1* %{_mandir}/man1/virt-p2v-make-kiwi.1* -%{_mandir}/man1/virt-v2v.1* -%{_mandir}/man1/virt-v2v-copy-to-local.1* -%{_mandir}/man1/virt-v2v-test-harness.1* %{_datadir}/virt-p2v -%{_datadir}/virt-tools + %files bash-completion %dir %{_datadir}/bash-completion/completions