rpms/virt-v2v/EL-5 virt-v2v.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Matthew Booth mdbooth at fedoraproject.org
Tue Mar 9 11:20:27 UTC 2010


Author: mdbooth

Update of /cvs/pkgs/rpms/virt-v2v/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv27852

Modified Files:
	.cvsignore sources 
Added Files:
	virt-v2v.spec 
Log Message:
Update to 0.4.0



--- NEW FILE virt-v2v.spec ---
Name:           virt-v2v
Version:        0.4.0
Release:        1%{?dist}
Summary:        Convert a virtual machine to run on KVM

Group:          Applications/System
License:        GPLv2+ and LGPLv2+
URL:            http://people.redhat.com/mbooth/virt-v2v/
Source0:        http://people.redhat.com/mbooth/virt-v2v/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

# Build system direct requirements
BuildRequires:  gettext
BuildRequires:  perl
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
BuildRequires:  perl(Locale::TextDomain)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Module::Pluggable)
BuildRequires:  perl(Net::HTTPS)
BuildRequires:  perl(Net::SSL)
BuildRequires:  perl(Sys::Guestfs)
BuildRequires:  perl(Sys::Guestfs::Lib)
BuildRequires:  perl(Sys::Virt)
BuildRequires:  perl(URI)
BuildRequires:  perl(XML::DOM)
BuildRequires:  perl(XML::DOM::XPath)
BuildRequires:  perl(XML::Writer)

# Need an explicit package dependency for version requires
BuildRequires:  perl-libguestfs >= 1:1.0.84

Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# Perl module requirements
Requires:       perl(Locale::TextDomain)
Requires:       perl(LWP::UserAgent)
Requires:       perl(Module::Pluggable)
Requires:       perl(Net::HTTPS)
Requires:       perl(Net::SSL)
Requires:       perl(Sys::Guestfs)
Requires:       perl(Sys::Guestfs::Lib)
Requires:       perl(Sys::Virt)
Requires:       perl(URI)
Requires:       perl(XML::DOM)
Requires:       perl(XML::DOM::XPath)
Requires:       perl(XML::Writer)

# Need an explicit package dependency for version requires
Requires:       perl-libguestfs >= 1:1.0.68

# For GuestOS transfer image
Requires:       /usr/bin/mkisofs

# For v2v-snapshot
Requires:       /usr/bin/qemu-img

# The upstream French translation is broken, which breaks building in EL-5
# This is a upstream commit 6a23d34232d673334055440cdc3cd7de4194eb04
Patch0:         virt-v2v-0.4.0-remove-fr.patch

# The output of File::Temp->new cannot be passed to open3() on EL-5.
# exechelper-tmpfile fixes this. exechelper-cleanup is a dependency of the fix.
# These are upstream commits:
#  bcb0c5e05e7b51b2f31780cc5a663bf4359de95c
Patch1:         virt-v2v-0.4.0-exechelper-cleanup.patch
#  0ea3bd7cdd15f221a31f4c225b96e9fe9377897f
Patch2:         virt-v2v-0.4.0-exechelper-tmpfile.patch

%description
virt-v2v is a tool for converting virtual machines to use the KVM hypervisor.
It modifies both the virtual machine image and its associated libvirt metadata.
virt-v2v will also configure a guest to use VirtIO drivers if possible.

virt-v2v also includes the v2v-snapshot tool, which will modify a guest to use
snapshot storage, and later commit the snapshot back to the original storage if
desired.


%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
%{__perl} Build.PL
./Build


%install
rm -rf $RPM_BUILD_ROOT
./Build install \
    --destdir $RPM_BUILD_ROOT \
    --installdirs vendor \
    --install_path locale=%{_datadir}/locale \
    --install_path confdoc=%{_mandir}/man5

%find_lang %{name}

# Create v2v-snapshot directories
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/virt-v2v/{snapshots,xml}

%check
./Build test


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)

%doc TODO
%doc META.yml
%doc ChangeLog
%doc COPYING COPYING.LIB
%doc v2v/virt-v2v.conf

# For noarch packages: vendorlib
%{perl_vendorlib}/*

# Man pages
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%{_mandir}/man5/*.5*

# Executables
%attr(0755,root,root) %{_bindir}/*

%{_localstatedir}/lib/virt-v2v


%changelog
* Mon Feb 22 2010 Matthew Booth <mbooth at redhat.com> - 0.4.0-1
- Update to release 0.4.0
- Change dependency on genisofs to mkisofs
- Update libguestfs dependency to 1.0.84
- Add perl module dependencies: LWP::UserAgent, Net::HTTPS, Net::SSL, Net::URI
- Remove perl module dependency: Config::Tiny
- Add explicit build dependency on perl
- 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

* Mon Dec  7 2009 Stepan Kasal <skasal at redhat.com> - 0.3.2-2
- rebuild against perl 5.10.1

* Mon Nov 9 2009 Matthew Booth <mbooth at redhat.com> - 0.3.2-1
- Update to release 0.3.2
- Add BuildRequires gettext

* Mon Nov 9 2009 Matthew Booth <mbooth at redhat.com> - 0.3.0-1
- Update to release 0.3.0

* Tue Sep 15 2009 Matthew Booth <mbooth at redhat.com> - 0.2.0-1
- Update to release 0.2.0

* Tue Sep  4 2009 Matthew Booth <mbooth at redhat.com> - 0.1.0-1
- Initial specfile


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/virt-v2v/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	11 Sep 2009 20:19:36 -0000	1.1
+++ .cvsignore	9 Mar 2010 11:20:27 -0000	1.2
@@ -0,0 +1,4 @@
+virt-v2v-0.4.0.tar.gz
+virt-v2v-0.4.0-exechelper-cleanup.patch
+virt-v2v-0.4.0-exechelper-tmpfile.patch
+virt-v2v-0.4.0-remove-fr.patch


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/virt-v2v/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	11 Sep 2009 20:19:37 -0000	1.1
+++ sources	9 Mar 2010 11:20:27 -0000	1.2
@@ -0,0 +1,4 @@
+902efe037084773d48c3e4f0df29aff4  virt-v2v-0.4.0.tar.gz
+c7c9eb9f61c7a08388dbaf841689c8d0  virt-v2v-0.4.0-exechelper-cleanup.patch
+8568d371a2b35468ac93772c3495cf86  virt-v2v-0.4.0-exechelper-tmpfile.patch
+c6be0b669a9e75a7401bcb28cab242b0  virt-v2v-0.4.0-remove-fr.patch



More information about the scm-commits mailing list