summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-07-24 20:50:01 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-24 22:31:46 +0200
commit827ba10035e1cc3e07af058fc0ea433c2766aed8 (patch)
tree96c60e4f71026e5a2d85dc5e34a62418b6b1796e /support
parent60714bb2ed7060b859a49abea8471950b9878bf8 (diff)
downloadbuildroot-827ba10035e1cc3e07af058fc0ea433c2766aed8.tar.gz
buildroot-827ba10035e1cc3e07af058fc0ea433c2766aed8.zip
support/script/scancpan: more license name ajustment
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/scancpan3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index de11ef11b3..50d9bab601 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}};
OpenPOWER on IntegriCloud