pull: Add deprecated SPDX identifiers
authorW. Trevor King <wking@tremily.us>
Fri, 13 Apr 2018 14:28:11 +0000 (07:28 -0700)
committerW. Trevor King <wking@tremily.us>
Fri, 13 Apr 2018 14:28:11 +0000 (07:28 -0700)
These identifiers are deprecated, but they haven't yet been dropped
from the SPDX spec.  That means that, although they're not
recommended, they're still valid identifiers to use where you can use
other License List 3.0 identifiers.  Listing them here makes it easy
for folks using the deprecated identifiers to look up the associated
FSF metadata.

An alternative approach would be to stick with only non-deprecated
SPDX identifiers here and have users hit the SPDX API to resolve those
before coming to this API.  But the SPDX API does not currently expose
obsoletedBy migration recommendations [1].

[1]: https://github.com/spdx/LicenseListPublisher/issues/12

pull.py

diff --git a/pull.py b/pull.py
index 0baab432562c94d786048b4702e81dcdbe525b7e..c4da6a2a5e9b1246d6409ac8e61eb64dc3211aac 100755 (executable)
--- a/pull.py
+++ b/pull.py
@@ -135,7 +135,7 @@ IDENTIFIERS = {
     'Condor': {'spdx': ['Condor-1.1']},
     'ECL2.0': {'spdx': ['ECL-2.0']},
     'eCos11': {'spdx': ['RHeCos-1.1']},
-    'eCos2.0': {'spdx': ['GPL-2.0+ WITH eCos-exception-2.0']},
+    'eCos2.0': {'spdx': ['GPL-2.0+ WITH eCos-exception-2.0', 'eCos-2.0']},
     'EPL': {'spdx': ['EPL-1.0']},
     'EPL2': {'spdx': ['EPL-2.0']}, # not in license-list-XML yet
     'EUDataGrid': {'spdx': ['EUDatagrid']},
@@ -148,9 +148,9 @@ IDENTIFIERS = {
     'FreeBSD': {'spdx': ['BSD-2-Clause-FreeBSD']},
     'freetype': {'spdx': ['FTL']},
     'GNUAllPermissive': {'spdx': ['FSFAP']},
-    'GNUGPLv3': {'spdx': ['GPL-3.0-or-later', 'GPL-3.0-only', 'GPL-3.0']},
+    'GNUGPLv3': {'spdx': ['GPL-3.0-or-later', 'GPL-3.0-only', 'GPL-3.0', 'GPL-3.0+']},
     'gnuplot': {'spdx': ['gnuplot']},
-    'GPLv2': {'spdx': ['GPL-2.0-or-later', 'GPL-2.0-only', 'GPL-2.0']},
+    'GPLv2': {'spdx': ['GPL-2.0-or-later', 'GPL-2.0-only', 'GPL-2.0', 'GPL-2.0+']},
     'HPND': {'spdx': ['HPND']},
     'IBMPL': {'spdx': ['IPL-1.0']},
     'iMatix': {'spdx': ['iMatix']},
@@ -160,8 +160,8 @@ IDENTIFIERS = {
     'IPAFONT': {'spdx': ['IPA']},
     'ISC': {'spdx': ['ISC']},
     'JSON': {'spdx': ['JSON']},
-    'LGPLv3': {'spdx': ['LGPL-3.0-or-later', 'LGPL-3.0-only', 'LGPL-3.0']},
-    'LGPLv2.1': {'spdx': ['LGPL-2.1-or-later', 'LGPL-2.1-only', 'LGPL-2.1']},
+    'LGPLv3': {'spdx': ['LGPL-3.0-or-later', 'LGPL-3.0-only', 'LGPL-3.0', 'LGPL-3.0+']},
+    'LGPLv2.1': {'spdx': ['LGPL-2.1-or-later', 'LGPL-2.1-only', 'LGPL-2.1', 'LGPL-2.1+']},
     'LPPL-1.2': {'spdx': ['LPPL-1.2']},
     'LPPL-1.3a': {'spdx': ['LPPL-1.3a']},
     'lucent102': {'spdx': ['LPL-1.02']},
@@ -196,7 +196,7 @@ IDENTIFIERS = {
     'SGIFreeB': {'spdx': ['SGI-B-2.0']},
     'SILOFL': {'spdx': ['OFL-1.1']},
     'SPL': {'spdx': ['SPL-1.0']},
-    'StandardMLofNJ': {'spdx': ['SMLNJ']},
+    'StandardMLofNJ': {'spdx': ['SMLNJ', 'StandardML-NJ']},
     'Unlicense': {'spdx': ['Unlicense']},
     'UPL': {'spdx': ['UPL-1.0']},
     'Vim': {'spdx': ['Vim']},
@@ -209,7 +209,7 @@ IDENTIFIERS = {
     'Yahoo': {'spdx': ['YPL-1.1']},
     'Zend': {'spdx': ['Zend-2.0']},
     'Zimbra': {'spdx': ['Zimbra-1.3']},
-    'ZLib': {'spdx': ['Zlib']},
+    'ZLib': {'spdx': ['Zlib', 'Nunit']},
     'Zope2.0': {'spdx': ['ZPL-2.0']},
     'Zope2.1': {'spdx': ['ZPL-2.1']},
 }