2020-05-06 00:07:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package virt-v2v
|
|
|
|
#
|
2021-01-28 23:27:07 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-05-06 00:07:44 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
# needsbinariesforbuild
|
|
|
|
|
|
|
|
# If there are patches which touch autotools files, set this to 1.
|
|
|
|
%global patches_touch_autotools %{nil}
|
|
|
|
|
|
|
|
# The source directory.
|
2021-02-09 18:12:05 +01:00
|
|
|
%global source_directory 1.43-development
|
2020-05-06 00:07:44 +02:00
|
|
|
|
|
|
|
Name: virt-v2v
|
2021-01-28 23:27:07 +01:00
|
|
|
Version: 1.43.3
|
2020-05-06 00:07:44 +02:00
|
|
|
Release: 1%{?dist}
|
|
|
|
%bcond_without bash_completion
|
|
|
|
URL: https://github.com/libguestfs/virt-v2v
|
|
|
|
Summary: Convert a virtual machine to run on KVM
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Management
|
|
|
|
|
|
|
|
Source0: http://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# libguestfs hasn't been built on i686 for a while since there is no
|
|
|
|
# kernel built for this architecture any longer and libguestfs rather
|
|
|
|
# fundamentally depends on the kernel. Therefore we must exclude this
|
|
|
|
# arch. Note there is no bug filed for this because we do not ever
|
|
|
|
# expect that libguestfs or virt-v2v will be available on i686 so
|
|
|
|
# there is nothing that needs fixing.
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
|
|
|
|
%if 0%{patches_touch_autotools}
|
|
|
|
BuildRequires: autoconf, automake, libtool
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#BuildRequires: /usr/bin/pod2man
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: ocaml >= 4.01
|
|
|
|
BuildRequires: libguestfs-devel >= 1.42
|
|
|
|
|
|
|
|
BuildRequires: augeas-devel
|
2021-02-09 19:16:29 +01:00
|
|
|
BuildRequires: pkgconfig(bash-completion) >= 2.0
|
2020-05-06 00:07:44 +02:00
|
|
|
BuildRequires: file-devel
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libjansson-devel
|
|
|
|
BuildRequires: libosinfo-devel
|
|
|
|
BuildRequires: libvirt-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: mkisofs
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
BuildRequires: perl(Sys::Guestfs)
|
|
|
|
BuildRequires: po4a
|
|
|
|
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: ocaml-fileutils-devel
|
|
|
|
BuildRequires: ocaml-gettext-devel
|
|
|
|
BuildRequires: ocaml-gettext-stub-devel
|
|
|
|
BuildRequires: ocaml-hivex-devel
|
|
|
|
BuildRequires: ocaml-libguestfs
|
|
|
|
BuildRequires: ocaml-libguestfs-devel
|
|
|
|
BuildRequires: ocaml-libvirt-devel
|
|
|
|
BuildRequires: ocaml-ounit-devel
|
|
|
|
|
|
|
|
|
2020-10-26 15:18:28 +01:00
|
|
|
Requires: libguestfs0%{?_isa} >= 1.42
|
|
|
|
Requires: guestfs-tools >= 1.42
|
2021-02-09 19:16:29 +01:00
|
|
|
Requires: /usr/bin/gawk
|
|
|
|
Requires: /usr/bin/gzip
|
2020-05-06 00:07:44 +02:00
|
|
|
Requires: unzip
|
|
|
|
Requires: curl
|
|
|
|
Requires: /usr/bin/virsh
|
|
|
|
|
|
|
|
Recommends: nbdkit
|
|
|
|
Recommends: nbdkit-curl-plugin
|
|
|
|
Recommends: nbdkit-python-plugin
|
|
|
|
Recommends: nbdkit-ssh-plugin
|
|
|
|
Recommends: nbdkit-vddk-plugin
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: bash-completion >= 2.0
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2021-02-09 21:02:26 +01:00
|
|
|
Supplements: (%{name} and bash-completion)
|
2020-05-06 00:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%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}
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%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 %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# Delete libtool crap.
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
|
|
|
|
|
|
|
# Virt-tools data directory. This contains a symlink to rhsrvany.exe
|
|
|
|
# which is satisfied by the dependency on mingw32-srvany.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/virt-tools
|
|
|
|
|
|
|
|
# Delete the v2v test harness (except for the man page).
|
|
|
|
rm -r $RPM_BUILD_ROOT%{_libdir}/ocaml/v2v_test_harness
|
|
|
|
rm -r $RPM_BUILD_ROOT%{_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
|
|
|
|
%{_bindir}/virt-v2v-copy-to-local
|
|
|
|
%{_mandir}/man1/virt-v2v.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-copy-to-local.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-hacking.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-input-vmware.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-input-xen.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-output-local.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-output-openstack.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-output-rhv.1*
|
2021-01-28 23:45:46 +01:00
|
|
|
%{_mandir}/man1/virt-v2v-release-notes-1.42*
|
2020-05-06 00:07:44 +02:00
|
|
|
%{_mandir}/man1/virt-v2v-support.1*
|
|
|
|
%{_mandir}/man1/virt-v2v-test-harness.1*
|
|
|
|
%{_datadir}/virt-tools
|
|
|
|
|
|
|
|
|
|
|
|
%files bash-completion
|
|
|
|
%license COPYING
|
|
|
|
%{_datadir}/bash-completion/completions/virt-v2v
|
|
|
|
%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local
|
|
|
|
|
|
|
|
|
|
|
|
%files man-pages-ja
|
|
|
|
%license COPYING
|
|
|
|
%lang(ja) %{_mandir}/ja/man1/*.1*
|
2020-10-26 15:18:28 +01:00
|
|
|
%dir %{_mandir}/ja
|
|
|
|
%dir %{_mandir}/ja/man1/
|
2020-05-06 00:07:44 +02:00
|
|
|
|
|
|
|
%files man-pages-uk
|
|
|
|
%license COPYING
|
|
|
|
%lang(uk) %{_mandir}/uk/man1/*.1*
|
2020-10-26 15:18:28 +01:00
|
|
|
%dir %{_mandir}/uk
|
|
|
|
%dir %{_mandir}/uk/man1/
|
2020-05-06 00:07:44 +02:00
|
|
|
|
|
|
|
%changelog
|