File meta_license_to_list.patch of Package virt-v2v
With CPAN-Meta commits a210f190 and 333e5c94, the resource->license value is
now required to be a list. Previous to these commits, a scalar was legal, and
converted to a list automatically (for meta-spec v2.0). This change is included
in perl-5.20, and it requires the license meta value to be changed to a list in
Build.PL.
Changing resource->license to a list is not compatible with the meta-spec v1.4,
which is included with perl-5.18. Therefore this patch must only be applied to
environments newer than SLE-12.
Index: virt-v2v-0.9.1/Build.PL
===================================================================
--- virt-v2v-0.9.1.orig/Build.PL
+++ virt-v2v-0.9.1/Build.PL
@@ -316,7 +316,7 @@ my $build = $class->new (
script_files => [ 'v2v/virt-v2v.pl', 'p2v/server/virt-p2v-server.pl' ],
meta_add => {
resources => {
- license => "http://www.gnu.org/licenses/gpl.html",
+ license => [ "http://www.gnu.org/licenses/gpl.html" ],
homepage => "http://people.redhat.com/mbooth/virt-v2v/",
repository => "git://git.fedorahosted.org/virt-v2v.git",
MailingList => "http://www.redhat.com/mailman/listinfo/libguestfs",