[Buildroot] [PATCH] support/script/scancpan: more license name ajustment
Francois Perrad
fperrad at gmail.com
Thu Jul 24 18:50:01 UTC 2014
Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
---
support/scripts/scancpan | 3 +++
1 file changed, 3 insertions(+)
diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index de11ef1..50d9bab 100755
--- a/support/scripts/scancpan
+++ b/support/scripts/scancpan
@@ -645,7 +645,10 @@ while (my ($distname, $dist) = each %dist) {
my $license = ref $dist->{license} eq 'ARRAY'
? join q{ or }, @{$dist->{license}}
: $dist->{license};
+ # BR requires license name as in http://spdx.org/licenses/
+ $license =~ s|apache_2_0|Apache-2.0|;
$license =~ s|artistic_2|Artistic-2.0|;
+ $license =~ s|mit|MIT|;
$license =~ s|openssl|OpenSSL|;
$license =~ s|perl_5|Artistic or GPLv1+|;
my $license_files = join q{ }, @{$license_files{$distname}};
--
1.9.1
More information about the buildroot
mailing list