2009-09-15 12:06:41 +00:00
|
|
|
Name: virt-v2v
|
2010-06-21 14:45:15 +00:00
|
|
|
Version: 0.6.1
|
2010-07-01 09:00:03 +00:00
|
|
|
Release: 1%{?dist}
|
2009-09-15 12:06:41 +00:00
|
|
|
Summary: Convert a virtual machine to run on KVM
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+ and LGPLv2+
|
2010-06-21 14:45:15 +00:00
|
|
|
URL: http://git.fedoraproject.org/git/virt-v2v.git
|
|
|
|
Source0: https://fedorahosted.org/releases/v/i/virt-v2v/%{name}-v%{version}.tar.gz
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
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.
|
|
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
|
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
|
2010-06-21 14:45:15 +00:00
|
|
|
BuildRequires: perl(IO::String)
|
2009-09-15 12:06:41 +00:00
|
|
|
BuildRequires: perl(Locale::TextDomain)
|
2010-02-22 16:09:28 +00:00
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
2009-09-15 12:06:41 +00:00
|
|
|
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)
|
|
|
|
BuildRequires: perl(Sys::Guestfs::Lib)
|
2010-06-30 12:32:12 +00:00
|
|
|
BuildRequires: perl(Sys::Virt)
|
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)
|
|
|
|
|
|
|
|
# Need an explicit package dependency for version requires
|
2010-06-21 14:45:15 +00:00
|
|
|
BuildRequires: perl-libguestfs >= 1:1.2.7-1.el5.3
|
|
|
|
BuildRequires: perl-hivex >= 1.2.2
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
# Need an explicit package dependency for version requires
|
|
|
|
Requires: perl-libguestfs >= 1:1.2.7-1.el5.3
|
|
|
|
Requires: perl-hivex >= 1.2.2
|
|
|
|
|
|
|
|
# Net::SSL is loaded dynamically by Net::HTTPS in Sys::VirtV2V::Transfer::ESX.
|
|
|
|
# The dependency isn't automatically discovered.
|
2010-02-22 16:09:28 +00:00
|
|
|
Requires: perl(Net::SSL)
|
2009-09-15 12:06:41 +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
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Build.PL
|
|
|
|
./Build
|
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
# Perl doesn't need debuginfo
|
|
|
|
%define debug_package %{nil}
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
./Build install \
|
|
|
|
--destdir $RPM_BUILD_ROOT \
|
|
|
|
--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
|
|
|
|
statedir=$RPM_BUILD_ROOT%{_localstatedir}/lib/virt-v2v
|
|
|
|
mkdir -p $statedir/software
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
cp v2v/virt-v2v.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
|
|
|
|
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.
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/auto/Sys/VirtV2V/.packlist
|
|
|
|
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
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
|
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
|
2010-06-21 14:45:15 +00:00
|
|
|
%dir %{_localstatedir}/lib/virt-v2v
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/virt-v2v.conf
|
|
|
|
%config(noreplace) %{_localstatedir}/lib/virt-v2v/software
|
2009-09-15 12:06:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|