SHA256
1
0
forked from pool/virt-v2v
virt-v2v/virt-v2v.spec

219 lines
6.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package virt-v2v
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# needsbinariesforbuild
# If there are patches which touch autotools files, set this to 1.
%global patches_touch_autotools 1
# The source directory.
- Update to virt-v2v 2.4.0 * New --block-driver option which can be used to choose to install either virtio-blk or virtio-scsi drivers * The virt-v2v --key option now recognizes LVM names like /dev/mapper/rhel_bootp--73--75--123-root * The --key option also supports a new --key all:... selector to try the same key on all devices. * Conversions now set the host-model CPU in the output metadata, except where the source hypervisor overrides this. The exception is -o qemu mode which uses -cpu host. * virt-v2v will now look for bootloader configuration in /boot/grub/grub.cfg for UEFI guests * Invoke pnputil (if available) to install drivers, fixing some Windows conversions * Skip SELinux relabelling if the guest has disabled SELinux * Several output modes now generate metadata to indicate whether the guest requires the RTC to be set to UTC (Linux) or localtime (most Windows). For example with -o libvirt this generates <clock offset="utc|localtime"/>. * -i ova mode is now less strict about parsing the manifest file, which helps when converting some non-conforming OVA files. * Input modes using -it ssh now use the correct quoting * -i vmx mode now rejects VMDK files explicitly, reducing a source of user confusion * Multiple fixes to -o kubevirt mode. Also implement -oo compressed for this mode. * -o libvirt mode now supports Rocky Linux * -o openstack documentation for cloud configurations fixed * -o rhv-upload mode has an improved error when the -os parameter is invalid or missing OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=42
2024-01-04 21:47:02 +01:00
%global source_directory 2.4-stable
Name: virt-v2v
- Update to virt-v2v 2.4.0 * New --block-driver option which can be used to choose to install either virtio-blk or virtio-scsi drivers * The virt-v2v --key option now recognizes LVM names like /dev/mapper/rhel_bootp--73--75--123-root * The --key option also supports a new --key all:... selector to try the same key on all devices. * Conversions now set the host-model CPU in the output metadata, except where the source hypervisor overrides this. The exception is -o qemu mode which uses -cpu host. * virt-v2v will now look for bootloader configuration in /boot/grub/grub.cfg for UEFI guests * Invoke pnputil (if available) to install drivers, fixing some Windows conversions * Skip SELinux relabelling if the guest has disabled SELinux * Several output modes now generate metadata to indicate whether the guest requires the RTC to be set to UTC (Linux) or localtime (most Windows). For example with -o libvirt this generates <clock offset="utc|localtime"/>. * -i ova mode is now less strict about parsing the manifest file, which helps when converting some non-conforming OVA files. * Input modes using -it ssh now use the correct quoting * -i vmx mode now rejects VMDK files explicitly, reducing a source of user confusion * Multiple fixes to -o kubevirt mode. Also implement -oo compressed for this mode. * -o libvirt mode now supports Rocky Linux * -o openstack documentation for cloud configurations fixed * -o rhv-upload mode has an improved error when the -os parameter is invalid or missing OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=42
2024-01-04 21:47:02 +01:00
Version: 2.4.0
Release: 0
Summary: Tools to convert a virtual machine to run on KVM
License: GPL-2.0-or-later
Group: System/Management
URL: https://github.com/libguestfs/virt-v2v
Source0: https://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz
Source1: https://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz.sig
BuildRequires: augeas-devel
BuildRequires: file-devel
#BuildRequires: /usr/bin/pod2man
BuildRequires: gcc
BuildRequires: gettext-devel
BuildRequires: glib2-devel
BuildRequires: libguestfs-devel >= 1.42
BuildRequires: libjansson-devel
BuildRequires: libosinfo-devel
BuildRequires: libvirt-devel
BuildRequires: libxml2-devel
BuildRequires: mkisofs
BuildRequires: ocaml-fileutils-devel
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-gettext-devel
BuildRequires: ocaml-hivex-devel
BuildRequires: ocaml-libguestfs
BuildRequires: ocaml-libguestfs-devel
BuildRequires: ocaml-libvirt-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: pcre2-devel
BuildRequires: pkgconfig
BuildRequires: po4a
BuildRequires: qemu-tools
BuildRequires: ocaml(ocaml_base_version) >= 4.07
BuildRequires: perl(Sys::Guestfs)
BuildRequires: pkgconfig(bash-completion) >= 2.0
- Update to version 2.0.5 * Virt-v2v has been modularised allowing external programs to examine the state of the conversion and inject their own copying step. Further enhancements will be made to this new architecture in forthcoming releases. * The command line is almost identical apart from some debugging features that were removed (see below). The only significant difference is that the output format (-of) now has to be specified if it is different from the input format, whereas previous versions of virt-v2v would use the same output format as input format automatically. * A lot of time was spent improving the performance of virt-v2v in common cases. * Implement conversion of ALT Linux guests (Mikhail Gordeev). * Many bug fixes and performance enhancements were made to oVirt imageio output (Nir Soffer). * There is a new virt-v2v-in-place(1) tool which replaces the existing virt-v2v --in-place option. * Virt-v2v can now convert guests which use LUKS encrypted logical volumes (Laszlo Ersek). * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and direct mode (which is much faster) is now the default when writing to oVirt, with proxy mode available for restricted network configurations (thanks: Nir Soffer). * The following command line options were removed: --print-estimate, --debug-overlays, --no-copy. * Virt-v2v no longer installs the RHEV-APT tool in Windows guests. This tool was deprecated and then removed in oVirt 4.3. * Deprecated tool virt-v2v-copy-to-local has been removed. This was deprecated in November 2018. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=18
2022-05-13 18:34:49 +02:00
BuildRequires: pkgconfig(libnbd)
Requires: %{_bindir}/gawk
Requires: %{_bindir}/gzip
Requires: %{_bindir}/qemu-nbd
Requires: %{_bindir}/virsh
Requires: curl
Requires: guestfs-tools >= 1.42
Requires: libguestfs0 >= 1.42
Requires: openssh-clients >= 8.8p1
Requires: ovmf
Requires: unzip
Recommends: nbdkit
Recommends: nbdkit-curl-plugin
Recommends: nbdkit-nbd-plugin
Recommends: nbdkit-python-plugin
Recommends: nbdkit-ssh-plugin
Recommends: nbdkit-vddk-plugin
# Build only for architectures that have a kernel
ExclusiveArch: x86_64 ppc64le s390x aarch64 riscv64
%if 0%{patches_touch_autotools}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%endif
%description
Virt-v2v converts a single guest from a foreign hypervisor to run on
KVM. It can read Linux and Windows guests running on VMware, Xen,
Hyper-V and some other hypervisors, and convert them to KVM managed by
libvirt, OpenStack, oVirt, Red Hat Virtualisation (RHV) or several
other targets. It can modify the guest to make it bootable on KVM and
install virtio drivers so it will run quickly.
%package bash-completion
Summary: Bash tab-completion for %{name}
Group: System/Management
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 2.0
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
Install this package if you want intelligent bash tab-completion
for %{name}.
%package man-pages-ja
Summary: Japanese (ja) man pages for %{name}
Group: System/Management
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description man-pages-ja
%{name}-man-pages-ja contains Japanese (ja) man pages
for %{name}.
%package man-pages-uk
Summary: Ukrainian (uk) man pages for %{name}
Group: System/Management
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description man-pages-uk
%{name}-man-pages-uk contains Ukrainian (uk) man pages
for %{name}.
%prep
%autosetup -p1
%if 0%{patches_touch_autotools}
autoreconf -i
%endif
%build
%configure
%make_build
%install
%make_install
# Delete libtool crap.
find %{buildroot} -type f -name "*.la" -delete -print
# Virt-tools data directory. This contains a symlink to rhsrvany.exe
# which is satisfied by the dependency on mingw32-srvany.
mkdir -p %{buildroot}/%{_datadir}/virt-tools
# Delete the v2v test harness (except for the man page).
- Update to version 2.0.5 * Virt-v2v has been modularised allowing external programs to examine the state of the conversion and inject their own copying step. Further enhancements will be made to this new architecture in forthcoming releases. * The command line is almost identical apart from some debugging features that were removed (see below). The only significant difference is that the output format (-of) now has to be specified if it is different from the input format, whereas previous versions of virt-v2v would use the same output format as input format automatically. * A lot of time was spent improving the performance of virt-v2v in common cases. * Implement conversion of ALT Linux guests (Mikhail Gordeev). * Many bug fixes and performance enhancements were made to oVirt imageio output (Nir Soffer). * There is a new virt-v2v-in-place(1) tool which replaces the existing virt-v2v --in-place option. * Virt-v2v can now convert guests which use LUKS encrypted logical volumes (Laszlo Ersek). * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and direct mode (which is much faster) is now the default when writing to oVirt, with proxy mode available for restricted network configurations (thanks: Nir Soffer). * The following command line options were removed: --print-estimate, --debug-overlays, --no-copy. * Virt-v2v no longer installs the RHEV-APT tool in Windows guests. This tool was deprecated and then removed in oVirt 4.3. * Deprecated tool virt-v2v-copy-to-local has been removed. This was deprecated in November 2018. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=18
2022-05-13 18:34:49 +02:00
#rm -r %{buildroot}/%{_libdir}/ocaml/v2v_test_harness
#rm -r %{buildroot}/%{_libdir}/ocaml/stublibs/dllv2v_test_harness*
# Find locale files.
%find_lang %{name}
%check
# All tests fail at the moment because of bugs in libvirt blockdev.
# # Tests fail on both armv7 and ppc64le in Fedora 31 because the kernel
# # cannot boot on qemu.
# %ifnarch %{arm} ppc64le
# # On x86_64 this single test fails with: "virt-v2v: warning: the
# # target hypervisor does not support a x86_64 KVM guest". Missing
# # BuildRequires?
# %ifarch x86_64
# truncate -s 0 tests/test-v2v-o-libvirt.sh
# %endif
# # This test fails in mock.
# truncate -s 0 tests/test-v2v-oa-option.sh
# # Make sure we can see the debug messages (RHBZ#1230160).
# export LIBGUESTFS_DEBUG=1
# export LIBGUESTFS_TRACE=1
# make %{?_smp_mflags} check || {
# cat tests/test-suite.log
# exit 1
# }
# %endif
%files -f %{name}.lang
%license COPYING
#doc README
%{_bindir}/virt-v2v
- Update to version 2.0.5 * Virt-v2v has been modularised allowing external programs to examine the state of the conversion and inject their own copying step. Further enhancements will be made to this new architecture in forthcoming releases. * The command line is almost identical apart from some debugging features that were removed (see below). The only significant difference is that the output format (-of) now has to be specified if it is different from the input format, whereas previous versions of virt-v2v would use the same output format as input format automatically. * A lot of time was spent improving the performance of virt-v2v in common cases. * Implement conversion of ALT Linux guests (Mikhail Gordeev). * Many bug fixes and performance enhancements were made to oVirt imageio output (Nir Soffer). * There is a new virt-v2v-in-place(1) tool which replaces the existing virt-v2v --in-place option. * Virt-v2v can now convert guests which use LUKS encrypted logical volumes (Laszlo Ersek). * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and direct mode (which is much faster) is now the default when writing to oVirt, with proxy mode available for restricted network configurations (thanks: Nir Soffer). * The following command line options were removed: --print-estimate, --debug-overlays, --no-copy. * Virt-v2v no longer installs the RHEV-APT tool in Windows guests. This tool was deprecated and then removed in oVirt 4.3. * Deprecated tool virt-v2v-copy-to-local has been removed. This was deprecated in November 2018. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=18
2022-05-13 18:34:49 +02:00
%{_bindir}/virt-v2v-in-place
%{_bindir}/virt-v2v-inspector
%{_mandir}/man1/virt-v2v.1%{?ext_man}
- Update to version 2.0.5 * Virt-v2v has been modularised allowing external programs to examine the state of the conversion and inject their own copying step. Further enhancements will be made to this new architecture in forthcoming releases. * The command line is almost identical apart from some debugging features that were removed (see below). The only significant difference is that the output format (-of) now has to be specified if it is different from the input format, whereas previous versions of virt-v2v would use the same output format as input format automatically. * A lot of time was spent improving the performance of virt-v2v in common cases. * Implement conversion of ALT Linux guests (Mikhail Gordeev). * Many bug fixes and performance enhancements were made to oVirt imageio output (Nir Soffer). * There is a new virt-v2v-in-place(1) tool which replaces the existing virt-v2v --in-place option. * Virt-v2v can now convert guests which use LUKS encrypted logical volumes (Laszlo Ersek). * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and direct mode (which is much faster) is now the default when writing to oVirt, with proxy mode available for restricted network configurations (thanks: Nir Soffer). * The following command line options were removed: --print-estimate, --debug-overlays, --no-copy. * Virt-v2v no longer installs the RHEV-APT tool in Windows guests. This tool was deprecated and then removed in oVirt 4.3. * Deprecated tool virt-v2v-copy-to-local has been removed. This was deprecated in November 2018. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=18
2022-05-13 18:34:49 +02:00
%{_mandir}/man1/virt-v2v-in-place.1%{?ext_man}
%{_mandir}/man1/virt-v2v-hacking.1%{?ext_man}
%{_mandir}/man1/virt-v2v-input-vmware.1%{?ext_man}
%{_mandir}/man1/virt-v2v-input-xen.1%{?ext_man}
%{_mandir}/man1/virt-v2v-output-local.1%{?ext_man}
%{_mandir}/man1/virt-v2v-output-openstack.1%{?ext_man}
%{_mandir}/man1/virt-v2v-output-rhv.1%{?ext_man}
%{_mandir}/man1/virt-v2v-release-notes-1.42.1%{?ext_man}
- Update to version 2.0.5 * Virt-v2v has been modularised allowing external programs to examine the state of the conversion and inject their own copying step. Further enhancements will be made to this new architecture in forthcoming releases. * The command line is almost identical apart from some debugging features that were removed (see below). The only significant difference is that the output format (-of) now has to be specified if it is different from the input format, whereas previous versions of virt-v2v would use the same output format as input format automatically. * A lot of time was spent improving the performance of virt-v2v in common cases. * Implement conversion of ALT Linux guests (Mikhail Gordeev). * Many bug fixes and performance enhancements were made to oVirt imageio output (Nir Soffer). * There is a new virt-v2v-in-place(1) tool which replaces the existing virt-v2v --in-place option. * Virt-v2v can now convert guests which use LUKS encrypted logical volumes (Laszlo Ersek). * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and direct mode (which is much faster) is now the default when writing to oVirt, with proxy mode available for restricted network configurations (thanks: Nir Soffer). * The following command line options were removed: --print-estimate, --debug-overlays, --no-copy. * Virt-v2v no longer installs the RHEV-APT tool in Windows guests. This tool was deprecated and then removed in oVirt 4.3. * Deprecated tool virt-v2v-copy-to-local has been removed. This was deprecated in November 2018. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=18
2022-05-13 18:34:49 +02:00
%{_mandir}/man1/virt-v2v-release-notes-2.0.1%{?ext_man}
%{_mandir}/man1/virt-v2v-release-notes-2.4.1%{?ext_man}
%{_mandir}/man1/virt-v2v-support.1%{?ext_man}
%{_mandir}/man1/virt-v2v-inspector.1.gz
%{_mandir}/man1/virt-v2v-release-notes-2.2.1.gz
%{_datadir}/virt-tools
%files bash-completion
%license COPYING
%{_datadir}/bash-completion/completions/virt-v2v
%files man-pages-ja
%license COPYING
%lang(ja) %{_mandir}/ja/man1/*.1*
%dir %{_mandir}/ja
%dir %{_mandir}/ja/man1/
%files man-pages-uk
%license COPYING
%lang(uk) %{_mandir}/uk/man1/*.1*
%dir %{_mandir}/uk
%dir %{_mandir}/uk/man1/
%changelog