2009-09-15 12:06:41 +00:00
|
|
|
Name: virt-v2v
|
2012-12-06 15:17:32 +00:00
|
|
|
Version: 0.9.0
|
2014-06-27 15:28:39 +00:00
|
|
|
Release: 7%{?dist}%{?extra_release}
|
2009-09-15 12:06:41 +00:00
|
|
|
Summary: Convert a virtual machine to run on KVM
|
|
|
|
|
|
|
|
License: GPLv2+ and LGPLv2+
|
2011-04-19 10:43:55 +00:00
|
|
|
URL: http://git.fedorahosted.org/git/virt-v2v.git
|
2013-07-03 13:51:49 +00:00
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
Source0: https://fedorahosted.org/releases/v/i/virt-v2v/%{name}-v%{version}.tar.gz
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2013-07-03 13:51:49 +00:00
|
|
|
# Non-upstream patch to default to using the appliance backend
|
|
|
|
# for Fedora >= 18.
|
|
|
|
Patch1: virt-v2v-use-appliance-backend.patch
|
2011-01-17 16:44:07 +00:00
|
|
|
|
2014-06-27 15:28:39 +00:00
|
|
|
# Fix license metadata, bug #1083430
|
|
|
|
Patch2: virt-v2v-v0.9.1-The-license-metadata-must-be-a-list.patch
|
|
|
|
|
2010-07-01 09:00:03 +00:00
|
|
|
# Unfortunately, despite really being noarch, we have to make virt-v2v arch
|
|
|
|
# dependent to avoid build failures on architectures where libguestfs isn't
|
|
|
|
# available.
|
2012-06-25 12:46:14 +00:00
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
%else
|
2010-07-01 09:00:03 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
2012-06-25 12:46:14 +00:00
|
|
|
%endif
|
2010-07-01 09:00:03 +00:00
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
# Build system direct requirements
|
2009-11-09 17:20:06 +00:00
|
|
|
BuildRequires: gettext
|
2010-02-22 16:09:28 +00:00
|
|
|
BuildRequires: perl
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
BuildRequires: perl(Module::Find)
|
|
|
|
|
|
|
|
# Runtime perl modules also required at build time for use_ok test
|
2012-12-06 15:40:09 +00:00
|
|
|
BuildRequires: perl(Archive::Extract)
|
2010-11-04 11:33:20 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
2012-12-06 16:16:43 +00:00
|
|
|
BuildRequires: perl(Digest::SHA1)
|
2010-06-21 14:45:15 +00:00
|
|
|
BuildRequires: perl(IO::String)
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRequires: perl(Locale::TextDomain)
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2010-02-22 16:09:28 +00:00
|
|
|
BuildRequires: perl(Net::HTTPS)
|
|
|
|
BuildRequires: perl(Net::SSL)
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRequires: perl(Sys::Guestfs)
|
2013-07-03 13:51:49 +00:00
|
|
|
BuildRequires: perl(Sys::Syslog)
|
2010-06-30 12:32:12 +00:00
|
|
|
BuildRequires: perl(Sys::Virt)
|
2012-06-25 12:46:14 +00:00
|
|
|
BuildRequires: perl(Term::ProgressBar)
|
2010-02-22 16:09:28 +00:00
|
|
|
BuildRequires: perl(URI)
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRequires: perl(XML::DOM)
|
|
|
|
BuildRequires: perl(XML::DOM::XPath)
|
|
|
|
BuildRequires: perl(XML::Writer)
|
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
BuildRequires: perl-Sys-Guestfs >= 1:1.14.0
|
2010-06-21 14:45:15 +00:00
|
|
|
BuildRequires: perl-hivex >= 1.2.2
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
# Required for the name optional argument to add_drive_opts
|
|
|
|
Requires: perl-Sys-Guestfs >= 1:1.14.0
|
|
|
|
|
|
|
|
# Undocumented from antiquity
|
2010-06-21 14:45:15 +00:00
|
|
|
Requires: perl-hivex >= 1.2.2
|
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
# Required for passing flags to get_xml_description
|
|
|
|
Requires: perl(Sys::Virt) >= 0.2.4
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
# Net::SSL and Net::HTTPS are loaded with require rather than use, which
|
|
|
|
# rpmbuild doesn't seem to discover automatically.
|
|
|
|
Requires: perl(Net::SSL)
|
|
|
|
Requires: perl(Net::HTTPS)
|
2011-08-22 13:38:16 +00:00
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
# Need >= 0.8.1 for rpc fix talking to RHEL 5 libvirt
|
|
|
|
Requires: libvirt >= 0.8.1
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
# For GuestOS transfer image
|
2010-02-22 12:58:21 +00:00
|
|
|
Requires: /usr/bin/mkisofs
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2011-01-27 13:09:31 +00:00
|
|
|
# For guest image inspection
|
2012-06-25 12:46:14 +00:00
|
|
|
Requires: /usr/bin/qemu-img
|
2011-01-27 13:09:31 +00:00
|
|
|
|
2011-08-22 13:38:16 +00:00
|
|
|
# For ssh transfers
|
|
|
|
Requires: /usr/bin/ssh
|
|
|
|
|
2011-01-27 13:09:31 +00:00
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
%description
|
2010-06-21 14:45:15 +00:00
|
|
|
virt-v2v is a tool for converting and importing virtual machines to
|
|
|
|
libvirt-managed KVM, or Red Hat Enterprise Virtualization. It can import a
|
|
|
|
variety of guest operating systems from libvirt-managed hosts and VMware ESX.
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2010-06-21 14:45:15 +00:00
|
|
|
%setup -q -n %{name}-v%{version}
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2013-07-03 13:51:49 +00:00
|
|
|
%patch1 -p1
|
2014-06-27 15:28:39 +00:00
|
|
|
%patch2 -p1
|
2013-07-03 13:51:49 +00:00
|
|
|
|
2011-05-11 16:36:18 +00:00
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
%build
|
|
|
|
%{__perl} Build.PL
|
|
|
|
./Build
|
|
|
|
|
2011-08-22 13:38:16 +00:00
|
|
|
# perl doesn't need debuginfo
|
2010-06-21 14:45:15 +00:00
|
|
|
%define debug_package %{nil}
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2011-08-22 13:38:16 +00:00
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
%install
|
|
|
|
./Build install \
|
2011-04-19 10:43:55 +00:00
|
|
|
--destdir %{buildroot} \
|
2009-09-15 12:06:41 +00:00
|
|
|
--installdirs vendor \
|
|
|
|
--install_path locale=%{_datadir}/locale \
|
|
|
|
--install_path confdoc=%{_mandir}/man5
|
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
# Create lib directory, used for holding software to be installed in guests
|
2011-04-19 10:43:55 +00:00
|
|
|
statedir=%{buildroot}%{_localstatedir}/lib/virt-v2v
|
2010-06-21 14:45:15 +00:00
|
|
|
mkdir -p $statedir/software
|
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
# Copy Windows dependencies into place
|
|
|
|
windir=$statedir/software/windows
|
|
|
|
mkdir -p $windir
|
|
|
|
|
|
|
|
cp windows/rhsrvany.exe windows/firstboot.bat $windir/
|
|
|
|
|
2011-04-19 10:43:55 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
cp v2v/virt-v2v.conf %{buildroot}%{_sysconfdir}/
|
2011-08-22 13:38:16 +00:00
|
|
|
cp v2v/virt-v2v.db $statedir/
|
2010-06-21 14:45:15 +00:00
|
|
|
|
2009-11-09 14:37:01 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2010-06-30 12:54:58 +00:00
|
|
|
# Not clear why this is being created as there is nothing arch-specific in
|
|
|
|
# virt-v2v. It isn't packaged, though, so we need to delete it.
|
2011-08-22 13:38:16 +00:00
|
|
|
[ -d "%{buildroot}/%{perl_archlib}" ] &&
|
|
|
|
find %{buildroot}/%{perl_archlib} -name .packlist -type f | xargs rm
|
2010-06-30 12:54:58 +00:00
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2010-06-21 14:45:15 +00:00
|
|
|
%doc TODO.txt
|
2009-09-15 12:06:41 +00:00
|
|
|
%doc META.yml
|
|
|
|
%doc ChangeLog
|
|
|
|
%doc COPYING COPYING.LIB
|
|
|
|
|
|
|
|
# For noarch packages: vendorlib
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
|
|
|
# Man pages
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%{_mandir}/man5/*.5*
|
|
|
|
|
|
|
|
# Executables
|
2011-04-19 10:43:55 +00:00
|
|
|
%attr(0755,root,root) %{_bindir}/virt-v2v
|
|
|
|
%attr(0755,root,root) %{_bindir}/virt-p2v-server
|
2009-09-15 12:06:41 +00:00
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
%dir %{_localstatedir}/lib/virt-v2v
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/virt-v2v.conf
|
2011-08-22 13:38:16 +00:00
|
|
|
%config %{_localstatedir}/lib/virt-v2v/virt-v2v.db
|
2010-06-21 14:45:15 +00:00
|
|
|
%config(noreplace) %{_localstatedir}/lib/virt-v2v/software
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-06-27 15:28:39 +00:00
|
|
|
* Fri Jun 27 2014 Petr Pisar <ppisar@redhat.com> - 0.9.0-7
|
|
|
|
- Fix license metadata (bug #1083430)
|
|
|
|
|
2014-06-08 03:49:02 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-08 21:54:01 +00:00
|
|
|
* Thu Aug 08 2013 Petr Pisar <ppisar@redhat.com> - 0.9.0-5
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-08-04 06:18:52 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-03 13:51:49 +00:00
|
|
|
* Wed Jul 3 2013 Richard W.M. Jones <rjones@redhat.com> - 0.9.0-3
|
|
|
|
- Default to using the appliance backend, since in Fedora >= 18 the
|
|
|
|
libvirt backend doesn't support the 'iface' parameter which virt-v2v
|
|
|
|
requires.
|
|
|
|
- Add BR perl(Sys::Syslog), required to run the tests.
|
|
|
|
- Remove some cruft from the spec file.
|
|
|
|
|
2013-02-15 02:50:24 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-06 15:17:32 +00:00
|
|
|
* Thu Dec 6 2012 Matthew Booth <mbooth@redhat.com> - 0.9.0-1
|
|
|
|
- New upstream release 0.9.0
|
|
|
|
|
2012-07-22 02:49:48 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-10 11:15:26 +00:00
|
|
|
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.8.8-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-06-25 12:46:14 +00:00
|
|
|
* Mon Jun 25 2012 Matthew Booth <mbooth@redhat.com> - 0.8.8-1
|
|
|
|
- Rebase to upstream version 0.8.8
|
|
|
|
|
2012-01-14 07:58:53 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-22 13:38:16 +00:00
|
|
|
* Mon Aug 22 2011 Richard W.M. Jones <rjones@redhat.com> - 0.8.3-1
|
|
|
|
- New upstream release 0.8.3.
|
|
|
|
- Include upstream patch to fix whitespace problems in PO files.
|
|
|
|
- Remove virt-p2v from build by synchronizing the spec file so it
|
|
|
|
almost matches the one in RHEL 6.2. Note that virt-p2v is built in
|
|
|
|
a separate SRPM called rubygem-virt-p2v.
|
|
|
|
|
2011-07-21 13:58:58 +00:00
|
|
|
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.8.1-4
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-07-19 21:15:44 +00:00
|
|
|
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.8.1-3
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-05-17 09:14:19 +00:00
|
|
|
* Tue May 17 2011 Matthew Booth <mbooth@redhat.com> - 0.8.1-2
|
|
|
|
- Remove echoe build dependency
|
|
|
|
- Fix YAML error during P2V (RHBZ#705113)
|
|
|
|
|
2011-04-26 20:01:50 +00:00
|
|
|
* Tue Apr 26 2011 Matthew Booth <mbooth@redhat.com> - 0.8.1-1
|
|
|
|
- Update to release 0.8.1
|
|
|
|
|
2011-04-19 10:43:55 +00:00
|
|
|
* Tue Apr 19 2011 Matthew Booth <mbooth@redhat.com> - 0.8.0-1
|
|
|
|
- Update to release 0.8.0
|
|
|
|
- Include virt-p2v
|
|
|
|
|
2011-02-08 01:38:49 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
2011-01-17 16:44:07 +00:00
|
|
|
|
2010-11-04 11:33:20 +00:00
|
|
|
* Thu Nov 4 2010 Matthew Booth <mbooth@redhat.com> - 0.7.0-1
|
|
|
|
- Update to release 0.7.0
|
|
|
|
|
2010-07-01 09:00:03 +00:00
|
|
|
* Thu Jul 1 2010 Matthew Booth <mbooth@redhat.com> - 0.6.1-1
|
|
|
|
- Only build virt-v2v on architectures where libguestfs is available
|
|
|
|
|
|
|
|
* Mon Jun 21 2010 Matthew Booth <mbooth@redhat.com> - 0.6.1-0
|
2010-06-21 14:45:15 +00:00
|
|
|
- Update to release 0.6.1
|
|
|
|
- Disable building of debuginfo
|
2010-06-02 09:11:32 +00:00
|
|
|
|
2010-02-22 12:58:21 +00:00
|
|
|
* Mon Feb 22 2010 Matthew Booth <mbooth@redhat.com> - 0.4.0-1
|
|
|
|
- Update to release 0.4.0
|
|
|
|
- Change dependency on genisofs to mkisofs
|
2010-02-22 13:34:35 +00:00
|
|
|
- Update libguestfs dependency to 1.0.84
|
2010-02-22 16:09:28 +00:00
|
|
|
- Add perl module dependencies: LWP::UserAgent, Net::HTTPS, Net::SSL, Net::URI
|
|
|
|
- Remove perl module dependency: Config::Tiny
|
|
|
|
- Add explicit build dependency on perl
|
2010-06-21 14:45:15 +00:00
|
|
|
- Add patch: virt-v2v-0.4.0-remove-fr.patch
|
|
|
|
- Add patch: virt-v2v-0.4.0-exechelper-cleanup.patch
|
|
|
|
- Add patch: virt-v2v-0.4.0-exechelper-tmpfile.patch
|
2010-02-22 12:58:21 +00:00
|
|
|
|
2009-12-07 00:39:33 +00:00
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.3.2-2
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-11-09 17:20:06 +00:00
|
|
|
* Mon Nov 9 2009 Matthew Booth <mbooth@redhat.com> - 0.3.2-1
|
|
|
|
- Update to release 0.3.2
|
|
|
|
- Add BuildRequires gettext
|
|
|
|
|
2009-11-09 14:37:01 +00:00
|
|
|
* Mon Nov 9 2009 Matthew Booth <mbooth@redhat.com> - 0.3.0-1
|
|
|
|
- Update to release 0.3.0
|
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
* Tue Sep 15 2009 Matthew Booth <mbooth@redhat.com> - 0.2.0-1
|
|
|
|
- Update to release 0.2.0
|
|
|
|
|
|
|
|
* Tue Sep 4 2009 Matthew Booth <mbooth@redhat.com> - 0.1.0-1
|
|
|
|
- Initial specfile
|