scripts/scanpypi: use SPDX short identifier for license
authorRahul Bedarkar <rahulbedarkar89@gmail.com>
Thu, 30 Mar 2017 13:43:50 +0000 (19:13 +0530)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Apr 2017 13:43:36 +0000 (15:43 +0200)
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/scanpypi

index e150ae588d2baeced47bc5b3c85299772fcf36b5..e174ac69bccbafa531114e3e407c31c6ef9ce209 100755 (executable)
@@ -380,18 +380,18 @@ class BuildrootPackage():
         license_dict = {
             'Apache Software License': 'Apache-2.0',
             'BSD License': 'BSD',
-            'European Union Public Licence 1.0': 'EUPLv1.0',
-            'European Union Public Licence 1.1': 'EUPLv1.1',
+            'European Union Public Licence 1.0': 'EUPL-1.0',
+            'European Union Public Licence 1.1': 'EUPL-1.1',
             "GNU General Public License": "GPL",
-            "GNU General Public License v2": "GPLv2",
-            "GNU General Public License v2 or later": "GPLv2+",
-            "GNU General Public License v3": "GPLv3",
-            "GNU General Public License v3 or later": "GPLv3+",
-            "GNU Lesser General Public License v2": "LGPLv2.1",
-            "GNU Lesser General Public License v2 or later": "LGPLv2.1+",
-            "GNU Lesser General Public License v3": "LGPLv3",
-            "GNU Lesser General Public License v3 or later": "LGPLv3+",
-            "GNU Library or Lesser General Public License": "LGPLv2",
+            "GNU General Public License v2": "GPL-2.0",
+            "GNU General Public License v2 or later": "GPL-2.0+",
+            "GNU General Public License v3": "GPL-3.0",
+            "GNU General Public License v3 or later": "GPL-3.0+",
+            "GNU Lesser General Public License v2": "LGPL-2.1",
+            "GNU Lesser General Public License v2 or later": "LGPL-2.1+",
+            "GNU Lesser General Public License v3": "LGPL-3.0",
+            "GNU Lesser General Public License v3 or later": "LGPL-3.0+",
+            "GNU Library or Lesser General Public License": "LGPL-2.0",
             "ISC License": "ISC",
             "MIT License": "MIT",
             "Mozilla Public License 1.0": "MPL-1.0",