Skip to content

Commit 70c3dd0

Browse files
committedFeb 19, 2025·
feat(spdx-utils): Add more mappings for deprecated licenses
Fixes #9896. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent 6054e0b commit 70c3dd0

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
 

‎utils/spdx/src/main/resources/deprecated-license-mapping.yml

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AGPL-1.0: AGPL-1.0-only
2222
AGPL-3.0+: AGPL-3.0-or-later
2323
AGPL-3.0: AGPL-3.0-only
2424
BSD-2-Clause-FreeBSD: BSD-2-Clause-Views
25+
BSD-2-Clause-NetBSD: BSD-2-Clause
2526
GFDL-1.1+: GFDL-1.1-or-later
2627
GFDL-1.1: GFDL-1.1-only
2728
GFDL-1.2+: GFDL-1.2-or-later
@@ -47,3 +48,8 @@ LGPL-2.1+: LGPL-2.1-or-later
4748
LGPL-2.1: LGPL-2.1-only
4849
LGPL-3.0+: LGPL-3.0-or-later
4950
LGPL-3.0: LGPL-3.0-only
51+
Nunit: zlib-acknowledgement
52+
StandardML-NJ: SMLNJ
53+
bzip2-1.0.5: bzip2-1.0.6
54+
eCos-2.0: GPL-2.0-or-later WITH eCos-exception-2.0
55+
wxWindows: GPL-2.0-or-later WITH WxWindows-exception-3.1

‎utils/spdx/src/test/kotlin/SpdxExpressionTest.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@ class SpdxExpressionTest : WordSpec({
433433
"LGPL-3.0".toSpdx().normalize() shouldBe LGPL_3_0_ONLY.toExpression()
434434
"LGPL-3.0+".toSpdx().normalize() shouldBe SpdxLicenseIdExpression("LGPL-3.0-or-later", true)
435435

436-
// These have no known successors, so just keep them.
437-
"eCos-2.0".toSpdx().normalize() shouldBe ECOS_2_0.toExpression()
438-
"Nunit".toSpdx().normalize() shouldBe NUNIT.toExpression()
439-
"StandardML-NJ".toSpdx().normalize() shouldBe STANDARDML_NJ.toExpression()
440-
"wxWindows".toSpdx().normalize() shouldBe WXWINDOWS.toExpression()
436+
"Nunit".toSpdx().normalize() shouldBe ZLIB_ACKNOWLEDGEMENT.toExpression()
437+
"StandardML-NJ".toSpdx().normalize() shouldBe SMLNJ.toExpression()
438+
"bzip2-1.0.5".toSpdx().normalize() shouldBe BZIP2_1_0_6.toExpression()
439+
"eCos-2.0".toSpdx().normalize() shouldBe (GPL_2_0_OR_LATER with ECOS_EXCEPTION_2_0)
440+
"wxWindows".toSpdx().normalize() shouldBe (GPL_2_0_OR_LATER with WXWINDOWS_EXCEPTION_3_1)
441441
}
442442
}
443443

0 commit comments

Comments
 (0)
Please sign in to comment.