diff --git a/.cargo/config.toml b/.cargo/config.toml index 4cdc805..b263294 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -62,7 +62,6 @@ rustflags = [ "-Wclippy::string_add_assign", "-Wclippy::string_add", "-Wclippy::string_lit_as_bytes", - "-Wclippy::string_to_string", "-Wclippy::todo", "-Wclippy::trait_duplication_in_bounds", "-Wclippy::unimplemented", diff --git a/src/expression/parser.rs b/src/expression/parser.rs index 25600c3..6eab6b7 100644 --- a/src/expression/parser.rs +++ b/src/expression/parser.rs @@ -1,5 +1,5 @@ use crate::{ - AdditionItem, LicenseItem, LicenseReq, ParseMode, + AdditionItem, AdditionRef, LicenseItem, LicenseRef, LicenseReq, ParseMode, error::{ParseError, Reason}, expression::{ExprNode, Expression, ExpressionReq, Operator}, lexer::{Lexer, Token}, @@ -225,10 +225,10 @@ impl Expression { None | Some(Token::And | Token::Or | Token::OpenParen) => { expr_queue.push(ExprNode::Req(ExpressionReq { req: LicenseReq { - license: LicenseItem::Other { + license: LicenseItem::Other(Box::new(LicenseRef { doc_ref: doc_ref.map(String::from), lic_ref: String::from(*lic_ref), - }, + })), addition: None, }, span: lt.span.start as u32..lt.span.end as u32, @@ -378,10 +378,10 @@ impl Expression { Token::AdditionRef { doc_ref, add_ref } => match last_token { Some(Token::With) => match expr_queue.last_mut() { Some(ExprNode::Req(lic)) => { - lic.req.addition = Some(AdditionItem::Other { + lic.req.addition = Some(AdditionItem::Other(Box::new(AdditionRef { doc_ref: doc_ref.map(String::from), add_ref: String::from(*add_ref), - }); + }))); } _ => unreachable!(), }, diff --git a/src/identifiers.rs b/src/identifiers.rs index 9c6784c..3778fe8 100644 --- a/src/identifiers.rs +++ b/src/identifiers.rs @@ -7,2157 +7,4247 @@ * cargo run --manifest-path update/Cargo.toml -- v > src/identifiers.rs */ -pub const IS_FSF_LIBRE: u8 = 0x1; -pub const IS_OSI_APPROVED: u8 = 0x2; -pub const IS_DEPRECATED: u8 = 0x4; -pub const IS_COPYLEFT: u8 = 0x8; -pub const IS_GNU: u8 = 0x10; +use crate::{Exception, License, flags::*}; pub const VERSION: &str = "3.27.0"; -pub const LICENSES: &[(&str, &str, u8)] = &[ - ("0BSD", r#"BSD Zero Clause License"#, IS_OSI_APPROVED), - ("3D-Slicer-1.0", r#"3D Slicer License v1.0"#, 0x0), - ("AAL", r#"Attribution Assurance License"#, IS_OSI_APPROVED), - ("ADSL", r#"Amazon Digital Services License"#, 0x0), - ( - "AFL-1.1", - r#"Academic Free License v1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "AFL-1.2", - r#"Academic Free License v1.2"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "AFL-2.0", - r#"Academic Free License v2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "AFL-2.1", - r#"Academic Free License v2.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "AFL-3.0", - r#"Academic Free License v3.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "AGPL-1.0", - r#"Affero General Public License v1.0"#, - IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "AGPL-1.0-only", - r#"Affero General Public License v1.0 only"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "AGPL-1.0-or-later", - r#"Affero General Public License v1.0 or later"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "AGPL-3.0", - r#"GNU Affero General Public License v3.0"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "AGPL-3.0-only", - r#"GNU Affero General Public License v3.0 only"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "AGPL-3.0-or-later", - r#"GNU Affero General Public License v3.0 or later"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ("AMD-newlib", r#"AMD newlib License"#, 0x0), - ("AMDPLPA", r#"AMD's plpa_map.c License"#, 0x0), - ("AML", r#"Apple MIT License"#, 0x0), - ("AML-glslang", r#"AML glslang variant License"#, 0x0), - ( - "AMPAS", - r#"Academy of Motion Picture Arts and Sciences BSD"#, - 0x0, - ), - ("ANTLR-PD", r#"ANTLR Software Rights Notice"#, 0x0), - ( - "ANTLR-PD-fallback", - r#"ANTLR Software Rights Notice with license fallback"#, - 0x0, - ), - ("APAFML", r#"Adobe Postscript AFM License"#, 0x0), - ("APL-1.0", r#"Adaptive Public License 1.0"#, IS_OSI_APPROVED), - ( - "APSL-1.0", - r#"Apple Public Source License 1.0"#, - IS_OSI_APPROVED, - ), - ( - "APSL-1.1", - r#"Apple Public Source License 1.1"#, - IS_OSI_APPROVED, - ), - ( - "APSL-1.2", - r#"Apple Public Source License 1.2"#, - IS_OSI_APPROVED, - ), - ( - "APSL-2.0", - r#"Apple Public Source License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "ASWF-Digital-Assets-1.0", - r#"ASWF Digital Assets License version 1.0"#, - 0x0, - ), - ( - "ASWF-Digital-Assets-1.1", - r#"ASWF Digital Assets License 1.1"#, - 0x0, - ), - ("Abstyles", r#"Abstyles License"#, 0x0), - ("AdaCore-doc", r#"AdaCore Doc License"#, 0x0), - ( - "Adobe-2006", - r#"Adobe Systems Incorporated Source Code License Agreement"#, - 0x0, - ), - ( - "Adobe-Display-PostScript", - r#"Adobe Display PostScript License"#, - 0x0, - ), - ("Adobe-Glyph", r#"Adobe Glyph List License"#, 0x0), - ("Adobe-Utopia", r#"Adobe Utopia Font License"#, 0x0), - ("Afmparse", r#"Afmparse License"#, 0x0), - ("Aladdin", r#"Aladdin Free Public License"#, 0x0), - ("Apache-1.0", r#"Apache License 1.0"#, IS_FSF_LIBRE), - ( - "Apache-1.1", - r#"Apache License 1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "Apache-2.0", - r#"Apache License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("App-s2p", r#"App::s2p License"#, 0x0), - ("Arphic-1999", r#"Arphic Public License"#, 0x0), - ("Artistic-1.0", r#"Artistic License 1.0"#, IS_OSI_APPROVED), - ( - "Artistic-1.0-Perl", - r#"Artistic License 1.0 (Perl)"#, - IS_OSI_APPROVED, - ), - ( - "Artistic-1.0-cl8", - r#"Artistic License 1.0 w/clause 8"#, - IS_OSI_APPROVED, - ), - ( - "Artistic-2.0", - r#"Artistic License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("Artistic-dist", r#"Artistic License 1.0 (dist)"#, 0x0), - ("Aspell-RU", r#"Aspell Russian License"#, 0x0), - ("BSD-1-Clause", r#"BSD 1-Clause License"#, IS_OSI_APPROVED), - ( - "BSD-2-Clause", - r#"BSD 2-Clause "Simplified" License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "BSD-2-Clause-Darwin", - r#"BSD 2-Clause - Ian Darwin variant"#, - 0x0, - ), - ( - "BSD-2-Clause-FreeBSD", - r#"BSD 2-Clause FreeBSD License"#, - IS_DEPRECATED | IS_FSF_LIBRE, - ), - ( - "BSD-2-Clause-NetBSD", - r#"BSD 2-Clause NetBSD License"#, - IS_DEPRECATED | IS_FSF_LIBRE, - ), - ( - "BSD-2-Clause-Patent", - r#"BSD-2-Clause Plus Patent License"#, - IS_OSI_APPROVED, - ), - ( - "BSD-2-Clause-Views", - r#"BSD 2-Clause with views sentence"#, - 0x0, - ), - ( - "BSD-2-Clause-first-lines", - r#"BSD 2-Clause - first lines requirement"#, - 0x0, - ), - ( - "BSD-2-Clause-pkgconf-disclaimer", - r#"BSD 2-Clause pkgconf disclaimer variant"#, - 0x0, - ), - ( - "BSD-3-Clause", - r#"BSD 3-Clause "New" or "Revised" License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("BSD-3-Clause-Attribution", r#"BSD with attribution"#, 0x0), - ( - "BSD-3-Clause-Clear", - r#"BSD 3-Clause Clear License"#, - IS_FSF_LIBRE, - ), - ( - "BSD-3-Clause-HP", - r#"Hewlett-Packard BSD variant license"#, - 0x0, - ), - ( - "BSD-3-Clause-LBNL", - r#"Lawrence Berkeley National Labs BSD variant license"#, - IS_OSI_APPROVED, - ), - ( - "BSD-3-Clause-Modification", - r#"BSD 3-Clause Modification"#, - 0x0, - ), - ( - "BSD-3-Clause-No-Military-License", - r#"BSD 3-Clause No Military License"#, - 0x0, - ), - ( - "BSD-3-Clause-No-Nuclear-License", - r#"BSD 3-Clause No Nuclear License"#, - 0x0, - ), - ( - "BSD-3-Clause-No-Nuclear-License-2014", - r#"BSD 3-Clause No Nuclear License 2014"#, - 0x0, - ), - ( - "BSD-3-Clause-No-Nuclear-Warranty", - r#"BSD 3-Clause No Nuclear Warranty"#, - 0x0, - ), - ( - "BSD-3-Clause-Open-MPI", - r#"BSD 3-Clause Open MPI variant"#, - 0x0, - ), - ("BSD-3-Clause-Sun", r#"BSD 3-Clause Sun Microsystems"#, 0x0), - ("BSD-3-Clause-acpica", r#"BSD 3-Clause acpica variant"#, 0x0), - ("BSD-3-Clause-flex", r#"BSD 3-Clause Flex variant"#, 0x0), - ( - "BSD-4-Clause", - r#"BSD 4-Clause "Original" or "Old" License"#, - IS_FSF_LIBRE, - ), - ("BSD-4-Clause-Shortened", r#"BSD 4 Clause Shortened"#, 0x0), - ( - "BSD-4-Clause-UC", - r#"BSD-4-Clause (University of California-Specific)"#, - 0x0, - ), - ("BSD-4.3RENO", r#"BSD 4.3 RENO License"#, 0x0), - ("BSD-4.3TAHOE", r#"BSD 4.3 TAHOE License"#, 0x0), - ( - "BSD-Advertising-Acknowledgement", - r#"BSD Advertising Acknowledgement License"#, - 0x0, - ), - ( - "BSD-Attribution-HPND-disclaimer", - r#"BSD with Attribution and HPND disclaimer"#, - 0x0, - ), - ("BSD-Inferno-Nettverk", r#"BSD-Inferno-Nettverk"#, 0x0), - ("BSD-Protection", r#"BSD Protection License"#, IS_COPYLEFT), - ("BSD-Source-Code", r#"BSD Source Code Attribution"#, 0x0), - ( - "BSD-Source-beginning-file", - r#"BSD Source Code Attribution - beginning of file variant"#, - 0x0, - ), - ("BSD-Systemics", r#"Systemics BSD variant license"#, 0x0), - ( - "BSD-Systemics-W3Works", - r#"Systemics W3Works BSD variant license"#, - 0x0, - ), - ( - "BSL-1.0", - r#"Boost Software License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("BUSL-1.1", r#"Business Source License 1.1"#, 0x0), - ("Baekmuk", r#"Baekmuk License"#, 0x0), - ("Bahyph", r#"Bahyph License"#, 0x0), - ("Barr", r#"Barr License"#, 0x0), - ("Beerware", r#"Beerware License"#, 0x0), - ( - "BitTorrent-1.0", - r#"BitTorrent Open Source License v1.0"#, - 0x0, - ), - ( - "BitTorrent-1.1", - r#"BitTorrent Open Source License v1.1"#, - IS_FSF_LIBRE, - ), - ( - "Bitstream-Charter", - r#"Bitstream Charter Font License"#, - 0x0, - ), - ("Bitstream-Vera", r#"Bitstream Vera Font License"#, 0x0), - ( - "BlueOak-1.0.0", - r#"Blue Oak Model License 1.0.0"#, - IS_OSI_APPROVED, - ), - ("Boehm-GC", r#"Boehm-Demers-Weiser GC License"#, 0x0), - ( - "Boehm-GC-without-fee", - r#"Boehm-Demers-Weiser GC License (without fee)"#, - 0x0, - ), - ("Borceux", r#"Borceux license"#, 0x0), - ( - "Brian-Gladman-2-Clause", - r#"Brian Gladman 2-Clause License"#, - 0x0, - ), - ( - "Brian-Gladman-3-Clause", - r#"Brian Gladman 3-Clause License"#, - 0x0, - ), - ( - "C-UDA-1.0", - r#"Computational Use of Data Agreement v1.0"#, - 0x0, - ), - ( - "CAL-1.0", - r#"Cryptographic Autonomy License 1.0"#, - IS_OSI_APPROVED, - ), - ( - "CAL-1.0-Combined-Work-Exception", - r#"Cryptographic Autonomy License 1.0 (Combined Work Exception)"#, - IS_OSI_APPROVED, - ), - ( - "CATOSL-1.1", - r#"Computer Associates Trusted Open Source License 1.1"#, - IS_OSI_APPROVED, - ), - ( - "CC-BY-1.0", - r#"Creative Commons Attribution 1.0 Generic"#, - 0x0, - ), - ( - "CC-BY-2.0", - r#"Creative Commons Attribution 2.0 Generic"#, - 0x0, - ), - ( - "CC-BY-2.5", - r#"Creative Commons Attribution 2.5 Generic"#, - 0x0, - ), - ( - "CC-BY-2.5-AU", - r#"Creative Commons Attribution 2.5 Australia"#, - 0x0, - ), - ( - "CC-BY-3.0", - r#"Creative Commons Attribution 3.0 Unported"#, - 0x0, - ), - ( - "CC-BY-3.0-AT", - r#"Creative Commons Attribution 3.0 Austria"#, - 0x0, - ), - ( - "CC-BY-3.0-AU", - r#"Creative Commons Attribution 3.0 Australia"#, - 0x0, - ), - ( - "CC-BY-3.0-DE", - r#"Creative Commons Attribution 3.0 Germany"#, - 0x0, - ), - ( - "CC-BY-3.0-IGO", - r#"Creative Commons Attribution 3.0 IGO"#, - 0x0, - ), - ( - "CC-BY-3.0-NL", - r#"Creative Commons Attribution 3.0 Netherlands"#, - 0x0, - ), - ( - "CC-BY-3.0-US", - r#"Creative Commons Attribution 3.0 United States"#, - 0x0, - ), - ( - "CC-BY-4.0", - r#"Creative Commons Attribution 4.0 International"#, - IS_FSF_LIBRE, - ), - ( - "CC-BY-NC-1.0", - r#"Creative Commons Attribution Non Commercial 1.0 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-2.0", - r#"Creative Commons Attribution Non Commercial 2.0 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-2.5", - r#"Creative Commons Attribution Non Commercial 2.5 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-3.0", - r#"Creative Commons Attribution Non Commercial 3.0 Unported"#, - 0x0, - ), - ( - "CC-BY-NC-3.0-DE", - r#"Creative Commons Attribution Non Commercial 3.0 Germany"#, - 0x0, - ), - ( - "CC-BY-NC-4.0", - r#"Creative Commons Attribution Non Commercial 4.0 International"#, - 0x0, - ), - ( - "CC-BY-NC-ND-1.0", - r#"Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-ND-2.0", - r#"Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-ND-2.5", - r#"Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic"#, - 0x0, - ), - ( - "CC-BY-NC-ND-3.0", - r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported"#, - 0x0, - ), - ( - "CC-BY-NC-ND-3.0-DE", - r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 Germany"#, - 0x0, - ), - ( - "CC-BY-NC-ND-3.0-IGO", - r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 IGO"#, - 0x0, - ), - ( - "CC-BY-NC-ND-4.0", - r#"Creative Commons Attribution Non Commercial No Derivatives 4.0 International"#, - 0x0, - ), - ( - "CC-BY-NC-SA-1.0", - r#"Creative Commons Attribution Non Commercial Share Alike 1.0 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-2.0", - r#"Creative Commons Attribution Non Commercial Share Alike 2.0 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-2.0-DE", - r#"Creative Commons Attribution Non Commercial Share Alike 2.0 Germany"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-2.0-FR", - r#"Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-2.0-UK", - r#"Creative Commons Attribution Non Commercial Share Alike 2.0 England and Wales"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-2.5", - r#"Creative Commons Attribution Non Commercial Share Alike 2.5 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-3.0", - r#"Creative Commons Attribution Non Commercial Share Alike 3.0 Unported"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-3.0-DE", - r#"Creative Commons Attribution Non Commercial Share Alike 3.0 Germany"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-3.0-IGO", - r#"Creative Commons Attribution Non Commercial Share Alike 3.0 IGO"#, - IS_COPYLEFT, - ), - ( - "CC-BY-NC-SA-4.0", - r#"Creative Commons Attribution Non Commercial Share Alike 4.0 International"#, - IS_COPYLEFT, - ), - ( - "CC-BY-ND-1.0", - r#"Creative Commons Attribution No Derivatives 1.0 Generic"#, - 0x0, - ), - ( - "CC-BY-ND-2.0", - r#"Creative Commons Attribution No Derivatives 2.0 Generic"#, - 0x0, - ), - ( - "CC-BY-ND-2.5", - r#"Creative Commons Attribution No Derivatives 2.5 Generic"#, - 0x0, - ), - ( - "CC-BY-ND-3.0", - r#"Creative Commons Attribution No Derivatives 3.0 Unported"#, - 0x0, - ), - ( - "CC-BY-ND-3.0-DE", - r#"Creative Commons Attribution No Derivatives 3.0 Germany"#, - 0x0, - ), - ( - "CC-BY-ND-4.0", - r#"Creative Commons Attribution No Derivatives 4.0 International"#, - 0x0, - ), - ( - "CC-BY-SA-1.0", - r#"Creative Commons Attribution Share Alike 1.0 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-2.0", - r#"Creative Commons Attribution Share Alike 2.0 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-2.0-UK", - r#"Creative Commons Attribution Share Alike 2.0 England and Wales"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-2.1-JP", - r#"Creative Commons Attribution Share Alike 2.1 Japan"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-2.5", - r#"Creative Commons Attribution Share Alike 2.5 Generic"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-3.0", - r#"Creative Commons Attribution Share Alike 3.0 Unported"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-3.0-AT", - r#"Creative Commons Attribution Share Alike 3.0 Austria"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-3.0-DE", - r#"Creative Commons Attribution Share Alike 3.0 Germany"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-3.0-IGO", - r#"Creative Commons Attribution-ShareAlike 3.0 IGO"#, - IS_COPYLEFT, - ), - ( - "CC-BY-SA-4.0", - r#"Creative Commons Attribution Share Alike 4.0 International"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "CC-PDDC", - r#"Creative Commons Public Domain Dedication and Certification"#, - 0x0, - ), - ( - "CC-PDM-1.0", - r#"Creative Commons Public Domain Mark 1.0 Universal"#, - 0x0, - ), - ( - "CC-SA-1.0", - r#"Creative Commons Share Alike 1.0 Generic"#, - 0x0, - ), - ( - "CC0-1.0", - r#"Creative Commons Zero v1.0 Universal"#, - IS_FSF_LIBRE, - ), - ( - "CDDL-1.0", - r#"Common Development and Distribution License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "CDDL-1.1", - r#"Common Development and Distribution License 1.1"#, - IS_COPYLEFT, - ), - ("CDL-1.0", r#"Common Documentation License 1.0"#, 0x0), - ( - "CDLA-Permissive-1.0", - r#"Community Data License Agreement Permissive 1.0"#, - 0x0, - ), - ( - "CDLA-Permissive-2.0", - r#"Community Data License Agreement Permissive 2.0"#, - 0x0, - ), - ( - "CDLA-Sharing-1.0", - r#"Community Data License Agreement Sharing 1.0"#, - 0x0, - ), - ( - "CECILL-1.0", - r#"CeCILL Free Software License Agreement v1.0"#, - IS_COPYLEFT, - ), - ( - "CECILL-1.1", - r#"CeCILL Free Software License Agreement v1.1"#, - IS_COPYLEFT, - ), - ( - "CECILL-2.0", - r#"CeCILL Free Software License Agreement v2.0"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "CECILL-2.1", - r#"CeCILL Free Software License Agreement v2.1"#, - IS_OSI_APPROVED | IS_COPYLEFT, - ), - ( - "CECILL-B", - r#"CeCILL-B Free Software License Agreement"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "CECILL-C", - r#"CeCILL-C Free Software License Agreement"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("CERN-OHL-1.1", r#"CERN Open Hardware Licence v1.1"#, 0x0), - ("CERN-OHL-1.2", r#"CERN Open Hardware Licence v1.2"#, 0x0), - ( - "CERN-OHL-P-2.0", - r#"CERN Open Hardware Licence Version 2 - Permissive"#, - IS_OSI_APPROVED, - ), - ( - "CERN-OHL-S-2.0", - r#"CERN Open Hardware Licence Version 2 - Strongly Reciprocal"#, - IS_OSI_APPROVED, - ), - ( - "CERN-OHL-W-2.0", - r#"CERN Open Hardware Licence Version 2 - Weakly Reciprocal"#, - IS_OSI_APPROVED, - ), - ("CFITSIO", r#"CFITSIO License"#, 0x0), - ("CMU-Mach", r#"CMU Mach License"#, 0x0), - ( - "CMU-Mach-nodoc", - r#"CMU Mach - no notices-in-documentation variant"#, - 0x0, - ), - ("CNRI-Jython", r#"CNRI Jython License"#, 0x0), - ("CNRI-Python", r#"CNRI Python License"#, IS_OSI_APPROVED), - ( - "CNRI-Python-GPL-Compatible", - r#"CNRI Python Open Source GPL Compatible License Agreement"#, - 0x0, - ), - ("COIL-1.0", r#"Copyfree Open Innovation License"#, 0x0), - ( - "CPAL-1.0", - r#"Common Public Attribution License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "CPL-1.0", - r#"Common Public License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("CPOL-1.02", r#"Code Project Open License 1.02"#, 0x0), - ( - "CUA-OPL-1.0", - r#"CUA Office Public License v1.0"#, - IS_OSI_APPROVED, - ), - ("Caldera", r#"Caldera License"#, 0x0), - ( - "Caldera-no-preamble", - r#"Caldera License (without preamble)"#, - 0x0, - ), - ("Catharon", r#"Catharon License"#, 0x0), - ("ClArtistic", r#"Clarified Artistic License"#, IS_FSF_LIBRE), - ("Clips", r#"Clips License"#, 0x0), - ( - "Community-Spec-1.0", - r#"Community Specification License 1.0"#, - 0x0, - ), - ("Condor-1.1", r#"Condor Public License v1.1"#, IS_FSF_LIBRE), - ( - "Cornell-Lossless-JPEG", - r#"Cornell Lossless JPEG License"#, - 0x0, - ), - ("Cronyx", r#"Cronyx License"#, 0x0), - ("Crossword", r#"Crossword License"#, 0x0), - ("CryptoSwift", r#"CryptoSwift License"#, 0x0), - ("CrystalStacker", r#"CrystalStacker License"#, 0x0), - ("Cube", r#"Cube License"#, 0x0), - ("D-FSL-1.0", r#"Deutsche Freie Software Lizenz"#, 0x0), - ("DEC-3-Clause", r#"DEC 3-Clause License"#, 0x0), - ( - "DL-DE-BY-2.0", - r#"Data licence Germany – attribution – version 2.0"#, - 0x0, - ), - ( - "DL-DE-ZERO-2.0", - r#"Data licence Germany – zero – version 2.0"#, - 0x0, - ), - ("DOC", r#"DOC License"#, 0x0), - ("DRL-1.0", r#"Detection Rule License 1.0"#, 0x0), - ("DRL-1.1", r#"Detection Rule License 1.1"#, 0x0), - ("DSDP", r#"DSDP License"#, 0x0), - ("DocBook-DTD", r#"DocBook DTD License"#, 0x0), - ("DocBook-Schema", r#"DocBook Schema License"#, 0x0), - ("DocBook-Stylesheet", r#"DocBook Stylesheet License"#, 0x0), - ("DocBook-XML", r#"DocBook XML License"#, 0x0), - ("Dotseqn", r#"Dotseqn License"#, 0x0), - ( - "ECL-1.0", - r#"Educational Community License v1.0"#, - IS_OSI_APPROVED, - ), - ( - "ECL-2.0", - r#"Educational Community License v2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("EFL-1.0", r#"Eiffel Forum License v1.0"#, IS_OSI_APPROVED), - ( - "EFL-2.0", - r#"Eiffel Forum License v2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("EPICS", r#"EPICS Open License"#, 0x0), - ( - "EPL-1.0", - r#"Eclipse Public License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "EPL-2.0", - r#"Eclipse Public License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "EUDatagrid", - r#"EU DataGrid Software License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "EUPL-1.0", - r#"European Union Public License 1.0"#, - IS_COPYLEFT, - ), - ( - "EUPL-1.1", - r#"European Union Public License 1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "EUPL-1.2", - r#"European Union Public License 1.2"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("Elastic-2.0", r#"Elastic License 2.0"#, 0x0), - ("Entessa", r#"Entessa Public License v1.0"#, IS_OSI_APPROVED), - ("ErlPL-1.1", r#"Erlang Public License v1.1"#, 0x0), - ("Eurosym", r#"Eurosym License"#, 0x0), - ("FBM", r#"Fuzzy Bitmap License"#, 0x0), - ("FDK-AAC", r#"Fraunhofer FDK AAC Codec Library"#, 0x0), - ("FSFAP", r#"FSF All Permissive License"#, IS_FSF_LIBRE), - ( - "FSFAP-no-warranty-disclaimer", - r#"FSF All Permissive License (without Warranty)"#, - 0x0, - ), - ("FSFUL", r#"FSF Unlimited License"#, 0x0), - ( - "FSFULLR", - r#"FSF Unlimited License (with License Retention)"#, - 0x0, - ), - ( - "FSFULLRSD", - r#"FSF Unlimited License (with License Retention and Short Disclaimer)"#, - 0x0, - ), - ( - "FSFULLRWD", - r#"FSF Unlimited License (With License Retention and Warranty Disclaimer)"#, - 0x0, - ), - ( - "FSL-1.1-ALv2", - r#"Functional Source License, Version 1.1, ALv2 Future License"#, - 0x0, - ), - ( - "FSL-1.1-MIT", - r#"Functional Source License, Version 1.1, MIT Future License"#, - 0x0, - ), - ("FTL", r#"Freetype Project License"#, IS_FSF_LIBRE), - ("Fair", r#"Fair License"#, IS_OSI_APPROVED), - ("Ferguson-Twofish", r#"Ferguson Twofish License"#, 0x0), - ( - "Frameworx-1.0", - r#"Frameworx Open License 1.0"#, - IS_OSI_APPROVED, - ), - ("FreeBSD-DOC", r#"FreeBSD Documentation License"#, 0x0), - ("FreeImage", r#"FreeImage Public License v1.0"#, 0x0), - ("Furuseth", r#"Furuseth License"#, 0x0), - ("GCR-docs", r#"Gnome GCR Documentation License"#, 0x0), - ("GD", r#"GD License"#, 0x0), - ( - "GFDL-1.1", - r#"GNU Free Documentation License v1.1"#, - IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-invariants", - r#"GNU Free Documentation License v1.1 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-invariants-only", - r#"GNU Free Documentation License v1.1 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-invariants-or-later", - r#"GNU Free Documentation License v1.1 or later - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-no-invariants", - r#"GNU Free Documentation License v1.1 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-no-invariants-only", - r#"GNU Free Documentation License v1.1 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-no-invariants-or-later", - r#"GNU Free Documentation License v1.1 or later - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-only", - r#"GNU Free Documentation License v1.1 only"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.1-or-later", - r#"GNU Free Documentation License v1.1 or later"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2", - r#"GNU Free Documentation License v1.2"#, - IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-invariants", - r#"GNU Free Documentation License v1.2 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-invariants-only", - r#"GNU Free Documentation License v1.2 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-invariants-or-later", - r#"GNU Free Documentation License v1.2 or later - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-no-invariants", - r#"GNU Free Documentation License v1.2 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-no-invariants-only", - r#"GNU Free Documentation License v1.2 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-no-invariants-or-later", - r#"GNU Free Documentation License v1.2 or later - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-only", - r#"GNU Free Documentation License v1.2 only"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.2-or-later", - r#"GNU Free Documentation License v1.2 or later"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3", - r#"GNU Free Documentation License v1.3"#, - IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-invariants", - r#"GNU Free Documentation License v1.3 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-invariants-only", - r#"GNU Free Documentation License v1.3 only - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-invariants-or-later", - r#"GNU Free Documentation License v1.3 or later - invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-no-invariants", - r#"GNU Free Documentation License v1.3 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-no-invariants-only", - r#"GNU Free Documentation License v1.3 only - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-no-invariants-or-later", - r#"GNU Free Documentation License v1.3 or later - no invariants"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-only", - r#"GNU Free Documentation License v1.3 only"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GFDL-1.3-or-later", - r#"GNU Free Documentation License v1.3 or later"#, - IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ("GL2PS", r#"GL2PS License"#, 0x0), - ("GLWTPL", r#"Good Luck With That Public License"#, 0x0), - ( - "GPL-1.0", - r#"GNU General Public License v1.0 only"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-1.0+", - r#"GNU General Public License v1.0 or later"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-1.0-only", - r#"GNU General Public License v1.0 only"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-1.0-or-later", - r#"GNU General Public License v1.0 or later"#, - IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0", - r#"GNU General Public License v2.0 only"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0+", - r#"GNU General Public License v2.0 or later"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-only", - r#"GNU General Public License v2.0 only"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-or-later", - r#"GNU General Public License v2.0 or later"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-with-GCC-exception", - r#"GNU General Public License v2.0 w/GCC Runtime Library exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-with-autoconf-exception", - r#"GNU General Public License v2.0 w/Autoconf exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-with-bison-exception", - r#"GNU General Public License v2.0 w/Bison exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-with-classpath-exception", - r#"GNU General Public License v2.0 w/Classpath exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-2.0-with-font-exception", - r#"GNU General Public License v2.0 w/Font exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0", - r#"GNU General Public License v3.0 only"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0+", - r#"GNU General Public License v3.0 or later"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0-only", - r#"GNU General Public License v3.0 only"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0-or-later", - r#"GNU General Public License v3.0 or later"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0-with-GCC-exception", - r#"GNU General Public License v3.0 w/GCC Runtime Library exception"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, - ), - ( - "GPL-3.0-with-autoconf-exception", - r#"GNU General Public License v3.0 w/Autoconf exception"#, - IS_DEPRECATED | IS_COPYLEFT | IS_GNU, - ), - ( - "Game-Programming-Gems", - r#"Game Programming Gems License"#, - 0x0, - ), - ("Giftware", r#"Giftware License"#, 0x0), - ("Glide", r#"3dfx Glide License"#, 0x0), - ("Glulxe", r#"Glulxe License"#, 0x0), - ("Graphics-Gems", r#"Graphics Gems License"#, 0x0), - ("Gutmann", r#"Gutmann License"#, 0x0), - ("HDF5", r#"HDF5 License"#, 0x0), - ("HIDAPI", r#"HIDAPI License"#, 0x0), - ("HP-1986", r#"Hewlett-Packard 1986 License"#, 0x0), - ("HP-1989", r#"Hewlett-Packard 1989 License"#, 0x0), - ( - "HPND", - r#"Historical Permission Notice and Disclaimer"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "HPND-DEC", - r#"Historical Permission Notice and Disclaimer - DEC variant"#, - 0x0, - ), - ( - "HPND-Fenneberg-Livingston", - r#"Historical Permission Notice and Disclaimer - Fenneberg-Livingston variant"#, - 0x0, - ), - ( - "HPND-INRIA-IMAG", - r#"Historical Permission Notice and Disclaimer - INRIA-IMAG variant"#, - 0x0, - ), - ( - "HPND-Intel", - r#"Historical Permission Notice and Disclaimer - Intel variant"#, - 0x0, - ), - ( - "HPND-Kevlin-Henney", - r#"Historical Permission Notice and Disclaimer - Kevlin Henney variant"#, - 0x0, - ), - ( - "HPND-MIT-disclaimer", - r#"Historical Permission Notice and Disclaimer with MIT disclaimer"#, - 0x0, - ), - ( - "HPND-Markus-Kuhn", - r#"Historical Permission Notice and Disclaimer - Markus Kuhn variant"#, - 0x0, - ), - ( - "HPND-Netrek", - r#"Historical Permission Notice and Disclaimer - Netrek variant"#, - 0x0, - ), - ( - "HPND-Pbmplus", - r#"Historical Permission Notice and Disclaimer - Pbmplus variant"#, - 0x0, - ), - ( - "HPND-UC", - r#"Historical Permission Notice and Disclaimer - University of California variant"#, - 0x0, - ), - ( - "HPND-UC-export-US", - r#"Historical Permission Notice and Disclaimer - University of California, US export warning"#, - 0x0, - ), - ( - "HPND-doc", - r#"Historical Permission Notice and Disclaimer - documentation variant"#, - 0x0, - ), - ( - "HPND-doc-sell", - r#"Historical Permission Notice and Disclaimer - documentation sell variant"#, - 0x0, - ), - ( - "HPND-export-US", - r#"HPND with US Government export control warning"#, - 0x0, - ), - ( - "HPND-export-US-acknowledgement", - r#"HPND with US Government export control warning and acknowledgment"#, - 0x0, - ), - ( - "HPND-export-US-modify", - r#"HPND with US Government export control warning and modification rqmt"#, - 0x0, - ), - ( - "HPND-export2-US", - r#"HPND with US Government export control and 2 disclaimers"#, - 0x0, - ), - ( - "HPND-merchantability-variant", - r#"Historical Permission Notice and Disclaimer - merchantability variant"#, - 0x0, - ), - ( - "HPND-sell-MIT-disclaimer-xserver", - r#"Historical Permission Notice and Disclaimer - sell xserver variant with MIT disclaimer"#, - 0x0, - ), - ( - "HPND-sell-regexpr", - r#"Historical Permission Notice and Disclaimer - sell regexpr variant"#, - 0x0, - ), - ( - "HPND-sell-variant", - r#"Historical Permission Notice and Disclaimer - sell variant"#, - 0x0, - ), - ( - "HPND-sell-variant-MIT-disclaimer", - r#"HPND sell variant with MIT disclaimer"#, - 0x0, - ), - ( - "HPND-sell-variant-MIT-disclaimer-rev", - r#"HPND sell variant with MIT disclaimer - reverse"#, - 0x0, - ), - ("HTMLTIDY", r#"HTML Tidy License"#, 0x0), - ("HaskellReport", r#"Haskell Language Report License"#, 0x0), - ("Hippocratic-2.1", r#"Hippocratic License 2.1"#, 0x0), - ( - "IBM-pibs", - r#"IBM PowerPC Initialization and Boot Software"#, - 0x0, - ), - ("ICU", r#"ICU License"#, IS_OSI_APPROVED), - ( - "IEC-Code-Components-EULA", - r#"IEC Code Components End-user licence agreement"#, - 0x0, - ), - ("IJG", r#"Independent JPEG Group License"#, IS_FSF_LIBRE), - ( - "IJG-short", - r#"Independent JPEG Group License - short"#, - 0x0, - ), - ("IPA", r#"IPA Font License"#, IS_OSI_APPROVED | IS_FSF_LIBRE), - ( - "IPL-1.0", - r#"IBM Public License v1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("ISC", r#"ISC License"#, IS_OSI_APPROVED | IS_FSF_LIBRE), - ("ISC-Veillard", r#"ISC Veillard variant"#, 0x0), - ("ImageMagick", r#"ImageMagick License"#, 0x0), - ("Imlib2", r#"Imlib2 License"#, IS_FSF_LIBRE), - ("Info-ZIP", r#"Info-ZIP License"#, 0x0), - ("Inner-Net-2.0", r#"Inner Net License v2.0"#, 0x0), - ("InnoSetup", r#"Inno Setup License"#, 0x0), - ( - "Intel", - r#"Intel Open Source License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "Intel-ACPI", - r#"Intel ACPI Software License Agreement"#, - 0x0, - ), - ("Interbase-1.0", r#"Interbase Public License v1.0"#, 0x0), - ("JPL-image", r#"JPL Image Use Policy"#, 0x0), - ("JPNIC", r#"Japan Network Information Center License"#, 0x0), - ("JSON", r#"JSON License"#, 0x0), - ("Jam", r#"Jam License"#, IS_OSI_APPROVED), - ("JasPer-2.0", r#"JasPer License"#, 0x0), - ("Kastrup", r#"Kastrup License"#, 0x0), - ("Kazlib", r#"Kazlib License"#, 0x0), - ("Knuth-CTAN", r#"Knuth CTAN License"#, 0x0), - ("LAL-1.2", r#"Licence Art Libre 1.2"#, 0x0), - ("LAL-1.3", r#"Licence Art Libre 1.3"#, 0x0), - ( - "LGPL-2.0", - r#"GNU Library General Public License v2 only"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.0+", - r#"GNU Library General Public License v2 or later"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.0-only", - r#"GNU Library General Public License v2 only"#, - IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.0-or-later", - r#"GNU Library General Public License v2 or later"#, - IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.1", - r#"GNU Lesser General Public License v2.1 only"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.1+", - r#"GNU Lesser General Public License v2.1 or later"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.1-only", - r#"GNU Lesser General Public License v2.1 only"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-2.1-or-later", - r#"GNU Lesser General Public License v2.1 or later"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-3.0", - r#"GNU Lesser General Public License v3.0 only"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-3.0+", - r#"GNU Lesser General Public License v3.0 or later"#, - IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-3.0-only", - r#"GNU Lesser General Public License v3.0 only"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPL-3.0-or-later", - r#"GNU Lesser General Public License v3.0 or later"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, - ), - ( - "LGPLLR", - r#"Lesser General Public License For Linguistic Resources"#, - 0x0, - ), - ("LOOP", r#"Common Lisp LOOP License"#, 0x0), - ("LPD-document", r#"LPD Documentation License"#, 0x0), - ( - "LPL-1.0", - r#"Lucent Public License Version 1.0"#, - IS_OSI_APPROVED, - ), - ( - "LPL-1.02", - r#"Lucent Public License v1.02"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("LPPL-1.0", r#"LaTeX Project Public License v1.0"#, 0x0), - ("LPPL-1.1", r#"LaTeX Project Public License v1.1"#, 0x0), - ( - "LPPL-1.2", - r#"LaTeX Project Public License v1.2"#, - IS_FSF_LIBRE, - ), - ( - "LPPL-1.3a", - r#"LaTeX Project Public License v1.3a"#, - IS_FSF_LIBRE, - ), - ( - "LPPL-1.3c", - r#"LaTeX Project Public License v1.3c"#, - IS_OSI_APPROVED, - ), - ( - "LZMA-SDK-9.11-to-9.20", - r#"LZMA SDK License (versions 9.11 to 9.20)"#, - 0x0, - ), - ( - "LZMA-SDK-9.22", - r#"LZMA SDK License (versions 9.22 and beyond)"#, - 0x0, - ), - ("Latex2e", r#"Latex2e License"#, 0x0), - ( - "Latex2e-translated-notice", - r#"Latex2e with translated notice permission"#, - 0x0, - ), - ("Leptonica", r#"Leptonica License"#, 0x0), - ( - "LiLiQ-P-1.1", - r#"Licence Libre du Québec – Permissive version 1.1"#, - IS_OSI_APPROVED, - ), - ( - "LiLiQ-R-1.1", - r#"Licence Libre du Québec – Réciprocité version 1.1"#, - IS_OSI_APPROVED, - ), - ( - "LiLiQ-Rplus-1.1", - r#"Licence Libre du Québec – Réciprocité forte version 1.1"#, - IS_OSI_APPROVED, - ), - ("Libpng", r#"libpng License"#, 0x0), - ( - "Linux-OpenIB", - r#"Linux Kernel Variant of OpenIB.org license"#, - 0x0, - ), - ( - "Linux-man-pages-1-para", - r#"Linux man-pages - 1 paragraph"#, - 0x0, - ), - ( - "Linux-man-pages-copyleft", - r#"Linux man-pages Copyleft"#, - 0x0, - ), - ( - "Linux-man-pages-copyleft-2-para", - r#"Linux man-pages Copyleft - 2 paragraphs"#, - 0x0, - ), - ( - "Linux-man-pages-copyleft-var", - r#"Linux man-pages Copyleft Variant"#, - 0x0, - ), - ("Lucida-Bitmap-Fonts", r#"Lucida Bitmap Fonts License"#, 0x0), - ("MIPS", r#"MIPS License"#, 0x0), - ("MIT", r#"MIT License"#, IS_OSI_APPROVED | IS_FSF_LIBRE), - ("MIT-0", r#"MIT No Attribution"#, IS_OSI_APPROVED), - ("MIT-CMU", r#"CMU License"#, 0x0), - ("MIT-Click", r#"MIT Click License"#, 0x0), - ("MIT-Festival", r#"MIT Festival Variant"#, 0x0), - ("MIT-Khronos-old", r#"MIT Khronos - old variant"#, 0x0), - ( - "MIT-Modern-Variant", - r#"MIT License Modern Variant"#, - IS_OSI_APPROVED, - ), - ("MIT-Wu", r#"MIT Tom Wu Variant"#, 0x0), - ("MIT-advertising", r#"Enlightenment License (e16)"#, 0x0), - ("MIT-enna", r#"enna License"#, 0x0), - ("MIT-feh", r#"feh License"#, 0x0), - ("MIT-open-group", r#"MIT Open Group variant"#, 0x0), - ("MIT-testregex", r#"MIT testregex Variant"#, 0x0), - ("MITNFA", r#"MIT +no-false-attribs license"#, 0x0), - ("MMIXware", r#"MMIXware License"#, 0x0), - ("MPEG-SSG", r#"MPEG Software Simulation"#, 0x0), - ( - "MPL-1.0", - r#"Mozilla Public License 1.0"#, - IS_OSI_APPROVED | IS_COPYLEFT, - ), - ( - "MPL-1.1", - r#"Mozilla Public License 1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "MPL-2.0", - r#"Mozilla Public License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "MPL-2.0-no-copyleft-exception", - r#"Mozilla Public License 2.0 (no copyleft exception)"#, - IS_OSI_APPROVED | IS_COPYLEFT, - ), - ("MS-LPL", r#"Microsoft Limited Public License"#, 0x0), - ( - "MS-PL", - r#"Microsoft Public License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "MS-RL", - r#"Microsoft Reciprocal License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("MTLL", r#"Matrix Template Library License"#, 0x0), - ("Mackerras-3-Clause", r#"Mackerras 3-Clause License"#, 0x0), - ( - "Mackerras-3-Clause-acknowledgment", - r#"Mackerras 3-Clause - acknowledgment variant"#, - 0x0, - ), - ("MakeIndex", r#"MakeIndex License"#, 0x0), - ("Martin-Birgmeier", r#"Martin Birgmeier License"#, 0x0), - ("McPhee-slideshow", r#"McPhee Slideshow License"#, 0x0), - ("Minpack", r#"Minpack License"#, 0x0), - ("MirOS", r#"The MirOS Licence"#, IS_OSI_APPROVED), - ("Motosoto", r#"Motosoto License"#, IS_OSI_APPROVED), - ( - "MulanPSL-1.0", - r#"Mulan Permissive Software License, Version 1"#, - 0x0, - ), - ( - "MulanPSL-2.0", - r#"Mulan Permissive Software License, Version 2"#, - IS_OSI_APPROVED, - ), - ("Multics", r#"Multics License"#, IS_OSI_APPROVED), - ("Mup", r#"Mup License"#, 0x0), - ( - "NAIST-2003", - r#"Nara Institute of Science and Technology License (2003)"#, - 0x0, - ), - ( - "NASA-1.3", - r#"NASA Open Source Agreement 1.3"#, - IS_OSI_APPROVED, - ), - ("NBPL-1.0", r#"Net Boolean Public License v1"#, 0x0), - ("NCBI-PD", r#"NCBI Public Domain Notice"#, 0x0), - ("NCGL-UK-2.0", r#"Non-Commercial Government Licence"#, 0x0), - ("NCL", r#"NCL Source Code License"#, 0x0), - ( - "NCSA", - r#"University of Illinois/NCSA Open Source License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("NGPL", r#"Nethack General Public License"#, IS_OSI_APPROVED), - ( - "NICTA-1.0", - r#"NICTA Public Software License, Version 1.0"#, - 0x0, - ), - ("NIST-PD", r#"NIST Public Domain Notice"#, 0x0), - ( - "NIST-PD-fallback", - r#"NIST Public Domain Notice with license fallback"#, - 0x0, - ), - ("NIST-Software", r#"NIST Software License"#, 0x0), - ( - "NLOD-1.0", - r#"Norwegian Licence for Open Government Data (NLOD) 1.0"#, - 0x0, - ), - ( - "NLOD-2.0", - r#"Norwegian Licence for Open Government Data (NLOD) 2.0"#, - 0x0, - ), - ("NLPL", r#"No Limit Public License"#, 0x0), - ("NOASSERTION", r#"NOASSERTION"#, 0x0), - ("NOSL", r#"Netizen Open Source License"#, IS_FSF_LIBRE), - ( - "NPL-1.0", - r#"Netscape Public License v1.0"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "NPL-1.1", - r#"Netscape Public License v1.1"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "NPOSL-3.0", - r#"Non-Profit Open Software License 3.0"#, - IS_OSI_APPROVED, - ), - ("NRL", r#"NRL License"#, 0x0), - ("NTIA-PD", r#"NTIA Public Domain Notice"#, 0x0), - ("NTP", r#"NTP License"#, IS_OSI_APPROVED), - ("NTP-0", r#"NTP No Attribution"#, 0x0), - ("Naumen", r#"Naumen Public License"#, IS_OSI_APPROVED), - ("Net-SNMP", r#"Net-SNMP License"#, IS_DEPRECATED), - ("NetCDF", r#"NetCDF license"#, 0x0), - ("Newsletr", r#"Newsletr License"#, 0x0), - ( - "Nokia", - r#"Nokia Open Source License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("Noweb", r#"Noweb License"#, 0x0), - ("Nunit", r#"Nunit License"#, IS_DEPRECATED | IS_FSF_LIBRE), - ("O-UDA-1.0", r#"Open Use of Data Agreement v1.0"#, 0x0), - ("OAR", r#"OAR License"#, 0x0), - ("OCCT-PL", r#"Open CASCADE Technology Public License"#, 0x0), - ( - "OCLC-2.0", - r#"OCLC Research Public License 2.0"#, - IS_OSI_APPROVED, - ), - ( - "ODC-By-1.0", - r#"Open Data Commons Attribution License v1.0"#, - 0x0, - ), - ( - "ODbL-1.0", - r#"Open Data Commons Open Database License v1.0"#, - IS_FSF_LIBRE, - ), - ("OFFIS", r#"OFFIS License"#, 0x0), - ("OFL-1.0", r#"SIL Open Font License 1.0"#, IS_FSF_LIBRE), - ( - "OFL-1.0-RFN", - r#"SIL Open Font License 1.0 with Reserved Font Name"#, - 0x0, - ), - ( - "OFL-1.0-no-RFN", - r#"SIL Open Font License 1.0 with no Reserved Font Name"#, - 0x0, - ), - ( - "OFL-1.1", - r#"SIL Open Font License 1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "OFL-1.1-RFN", - r#"SIL Open Font License 1.1 with Reserved Font Name"#, - IS_OSI_APPROVED, - ), - ( - "OFL-1.1-no-RFN", - r#"SIL Open Font License 1.1 with no Reserved Font Name"#, - IS_OSI_APPROVED, - ), - ("OGC-1.0", r#"OGC Software License, Version 1.0"#, 0x0), - ( - "OGDL-Taiwan-1.0", - r#"Taiwan Open Government Data License, version 1.0"#, - 0x0, - ), - ("OGL-Canada-2.0", r#"Open Government Licence - Canada"#, 0x0), - ("OGL-UK-1.0", r#"Open Government Licence v1.0"#, 0x0), - ("OGL-UK-2.0", r#"Open Government Licence v2.0"#, 0x0), - ("OGL-UK-3.0", r#"Open Government Licence v3.0"#, 0x0), - ("OGTSL", r#"Open Group Test Suite License"#, IS_OSI_APPROVED), - ("OLDAP-1.1", r#"Open LDAP Public License v1.1"#, 0x0), - ("OLDAP-1.2", r#"Open LDAP Public License v1.2"#, 0x0), - ("OLDAP-1.3", r#"Open LDAP Public License v1.3"#, 0x0), - ("OLDAP-1.4", r#"Open LDAP Public License v1.4"#, 0x0), - ( - "OLDAP-2.0", - r#"Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)"#, - 0x0, - ), - ("OLDAP-2.0.1", r#"Open LDAP Public License v2.0.1"#, 0x0), - ("OLDAP-2.1", r#"Open LDAP Public License v2.1"#, 0x0), - ("OLDAP-2.2", r#"Open LDAP Public License v2.2"#, 0x0), - ("OLDAP-2.2.1", r#"Open LDAP Public License v2.2.1"#, 0x0), - ("OLDAP-2.2.2", r#"Open LDAP Public License 2.2.2"#, 0x0), - ( - "OLDAP-2.3", - r#"Open LDAP Public License v2.3"#, - IS_FSF_LIBRE, - ), - ("OLDAP-2.4", r#"Open LDAP Public License v2.4"#, 0x0), - ("OLDAP-2.5", r#"Open LDAP Public License v2.5"#, 0x0), - ("OLDAP-2.6", r#"Open LDAP Public License v2.6"#, 0x0), - ( - "OLDAP-2.7", - r#"Open LDAP Public License v2.7"#, - IS_FSF_LIBRE, - ), - ( - "OLDAP-2.8", - r#"Open LDAP Public License v2.8"#, - IS_OSI_APPROVED, - ), - ( - "OLFL-1.3", - r#"Open Logistics Foundation License Version 1.3"#, - IS_OSI_APPROVED, - ), - ("OML", r#"Open Market License"#, 0x0), - ("OPL-1.0", r#"Open Public License v1.0"#, 0x0), - ( - "OPL-UK-3.0", - r#"United Kingdom Open Parliament Licence v3.0"#, - 0x0, - ), - ("OPUBL-1.0", r#"Open Publication License v1.0"#, 0x0), - ( - "OSET-PL-2.1", - r#"OSET Public License version 2.1"#, - IS_OSI_APPROVED, - ), - ( - "OSL-1.0", - r#"Open Software License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "OSL-1.1", - r#"Open Software License 1.1"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "OSL-2.0", - r#"Open Software License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "OSL-2.1", - r#"Open Software License 2.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "OSL-3.0", - r#"Open Software License 3.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("OpenPBS-2.3", r#"OpenPBS v2.3 Software License"#, 0x0), - ("OpenSSL", r#"OpenSSL License"#, IS_FSF_LIBRE), - ("OpenSSL-standalone", r#"OpenSSL License - standalone"#, 0x0), - ("OpenVision", r#"OpenVision License"#, 0x0), - ("PADL", r#"PADL License"#, 0x0), - ( - "PDDL-1.0", - r#"Open Data Commons Public Domain Dedication & License 1.0"#, - 0x0, - ), - ("PHP-3.0", r#"PHP License v3.0"#, IS_OSI_APPROVED), - ( - "PHP-3.01", - r#"PHP License v3.01"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("PPL", r#"Peer Production License"#, 0x0), - ("PSF-2.0", r#"Python Software Foundation License 2.0"#, 0x0), - ( - "Parity-6.0.0", - r#"The Parity Public License 6.0.0"#, - IS_COPYLEFT, - ), - ("Parity-7.0.0", r#"The Parity Public License 7.0.0"#, 0x0), - ("Pixar", r#"Pixar License"#, 0x0), - ("Plexus", r#"Plexus Classworlds License"#, 0x0), - ( - "PolyForm-Noncommercial-1.0.0", - r#"PolyForm Noncommercial License 1.0.0"#, - 0x0, - ), - ( - "PolyForm-Small-Business-1.0.0", - r#"PolyForm Small Business License 1.0.0"#, - 0x0, - ), - ("PostgreSQL", r#"PostgreSQL License"#, IS_OSI_APPROVED), - ( - "Python-2.0", - r#"Python License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("Python-2.0.1", r#"Python License 2.0.1"#, 0x0), - ( - "QPL-1.0", - r#"Q Public License 1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "QPL-1.0-INRIA-2004", - r#"Q Public License 1.0 - INRIA 2004 variant"#, - 0x0, - ), - ("Qhull", r#"Qhull License"#, 0x0), - ("RHeCos-1.1", r#"Red Hat eCos Public License v1.1"#, 0x0), - ( - "RPL-1.1", - r#"Reciprocal Public License 1.1"#, - IS_OSI_APPROVED, - ), - ( - "RPL-1.5", - r#"Reciprocal Public License 1.5"#, - IS_OSI_APPROVED, - ), - ( - "RPSL-1.0", - r#"RealNetworks Public Source License v1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("RSA-MD", r#"RSA Message-Digest License"#, 0x0), - ( - "RSCPL", - r#"Ricoh Source Code Public License"#, - IS_OSI_APPROVED, - ), - ("Rdisc", r#"Rdisc License"#, 0x0), - ("Ruby", r#"Ruby License"#, IS_FSF_LIBRE), - ("Ruby-pty", r#"Ruby pty extension license"#, 0x0), - ("SAX-PD", r#"Sax Public Domain Notice"#, 0x0), - ("SAX-PD-2.0", r#"Sax Public Domain Notice 2.0"#, 0x0), - ("SCEA", r#"SCEA Shared Source License"#, 0x0), - ("SGI-B-1.0", r#"SGI Free Software License B v1.0"#, 0x0), - ("SGI-B-1.1", r#"SGI Free Software License B v1.1"#, 0x0), - ( - "SGI-B-2.0", - r#"SGI Free Software License B v2.0"#, - IS_FSF_LIBRE, - ), - ("SGI-OpenGL", r#"SGI OpenGL License"#, 0x0), - ("SGP4", r#"SGP4 Permission Notice"#, 0x0), - ("SHL-0.5", r#"Solderpad Hardware License v0.5"#, 0x0), - ( - "SHL-0.51", - r#"Solderpad Hardware License, Version 0.51"#, - 0x0, - ), - ( - "SISSL", - r#"Sun Industry Standards Source License v1.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, - ), - ( - "SISSL-1.2", - r#"Sun Industry Standards Source License v1.2"#, - 0x0, - ), - ("SL", r#"SL License"#, 0x0), - ("SMAIL-GPL", r#"SMAIL General Public License"#, 0x0), - ( - "SMLNJ", - r#"Standard ML of New Jersey License"#, - IS_FSF_LIBRE, - ), - ("SMPPL", r#"Secure Messaging Protocol Public License"#, 0x0), - ("SNIA", r#"SNIA Public License 1.1"#, 0x0), - ("SOFA", r#"SOFA Software License"#, 0x0), - ( - "SPL-1.0", - r#"Sun Public License v1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("SSH-OpenSSH", r#"SSH OpenSSH license"#, 0x0), - ("SSH-short", r#"SSH short notice"#, 0x0), - ("SSLeay-standalone", r#"SSLeay License - standalone"#, 0x0), - ("SSPL-1.0", r#"Server Side Public License, v 1"#, 0x0), - ("SUL-1.0", r#"Sustainable Use License v1.0"#, 0x0), - ( - "SWL", - r#"Scheme Widget Library (SWL) Software License Agreement"#, - 0x0, - ), - ("Saxpath", r#"Saxpath License"#, 0x0), - ("SchemeReport", r#"Scheme Language Report License"#, 0x0), - ("Sendmail", r#"Sendmail License"#, 0x0), - ("Sendmail-8.23", r#"Sendmail License 8.23"#, 0x0), - ( - "Sendmail-Open-Source-1.1", - r#"Sendmail Open Source License v1.1"#, - 0x0, - ), - ("SimPL-2.0", r#"Simple Public License 2.0"#, IS_OSI_APPROVED), - ( - "Sleepycat", - r#"Sleepycat License"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("Soundex", r#"Soundex License"#, 0x0), - ("Spencer-86", r#"Spencer License 86"#, 0x0), - ("Spencer-94", r#"Spencer License 94"#, 0x0), - ("Spencer-99", r#"Spencer License 99"#, 0x0), - ( - "StandardML-NJ", - r#"Standard ML of New Jersey License"#, - IS_DEPRECATED | IS_FSF_LIBRE, - ), - ("SugarCRM-1.1.3", r#"SugarCRM Public License v1.1.3"#, 0x0), - ("Sun-PPP", r#"Sun PPP License"#, 0x0), - ("Sun-PPP-2000", r#"Sun PPP License (2000)"#, 0x0), - ("SunPro", r#"SunPro License"#, 0x0), - ("Symlinks", r#"Symlinks License"#, 0x0), - ("TAPR-OHL-1.0", r#"TAPR Open Hardware License v1.0"#, 0x0), - ("TCL", r#"TCL/TK License"#, 0x0), - ("TCP-wrappers", r#"TCP Wrappers License"#, 0x0), - ( - "TGPPL-1.0", - r#"Transitive Grace Period Public Licence 1.0"#, - 0x0, - ), - ("TMate", r#"TMate Open Source License"#, 0x0), - ("TORQUE-1.1", r#"TORQUE v2.5+ Software License v1.1"#, 0x0), - ("TOSL", r#"Trusster Open Source License"#, 0x0), - ("TPDL", r#"Time::ParseDate License"#, 0x0), - ("TPL-1.0", r#"THOR Public License 1.0"#, 0x0), - ("TTWL", r#"Text-Tabs+Wrap License"#, 0x0), - ("TTYP0", r#"TTYP0 License"#, 0x0), - ( - "TU-Berlin-1.0", - r#"Technische Universitaet Berlin License 1.0"#, - 0x0, - ), - ( - "TU-Berlin-2.0", - r#"Technische Universitaet Berlin License 2.0"#, - 0x0, - ), - ("TermReadKey", r#"TermReadKey License"#, 0x0), - ("ThirdEye", r#"ThirdEye License"#, 0x0), - ("TrustedQSL", r#"TrustedQSL License"#, 0x0), - ("UCAR", r#"UCAR License"#, 0x0), - ( - "UCL-1.0", - r#"Upstream Compatibility License v1.0"#, - IS_OSI_APPROVED, - ), - ("UMich-Merit", r#"Michigan/Merit Networks License"#, 0x0), - ( - "UPL-1.0", - r#"Universal Permissive License v1.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "URT-RLE", - r#"Utah Raster Toolkit Run Length Encoded License"#, - 0x0, - ), - ("Ubuntu-font-1.0", r#"Ubuntu Font Licence v1.0"#, 0x0), - ("Unicode-3.0", r#"Unicode License v3"#, IS_OSI_APPROVED), - ( - "Unicode-DFS-2015", - r#"Unicode License Agreement - Data Files and Software (2015)"#, - 0x0, - ), - ( - "Unicode-DFS-2016", - r#"Unicode License Agreement - Data Files and Software (2016)"#, - IS_OSI_APPROVED, - ), - ("Unicode-TOU", r#"Unicode Terms of Use"#, 0x0), - ("UnixCrypt", r#"UnixCrypt License"#, 0x0), - ( - "Unlicense", - r#"The Unlicense"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "Unlicense-libtelnet", - r#"Unlicense - libtelnet variant"#, - 0x0, - ), - ( - "Unlicense-libwhirlpool", - r#"Unlicense - libwhirlpool variant"#, - 0x0, - ), - ("VOSTROM", r#"VOSTROM Public License for Open Source"#, 0x0), - ( - "VSL-1.0", - r#"Vovida Software License v1.0"#, - IS_OSI_APPROVED, - ), - ("Vim", r#"Vim License"#, IS_FSF_LIBRE), - ( - "W3C", - r#"W3C Software Notice and License (2002-12-31)"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "W3C-19980720", - r#"W3C Software Notice and License (1998-07-20)"#, - 0x0, - ), - ( - "W3C-20150513", - r#"W3C Software Notice and Document License (2015-05-13)"#, - IS_OSI_APPROVED, - ), - ( - "WTFPL", - r#"Do What The F*ck You Want To Public License"#, - IS_FSF_LIBRE, - ), - ( - "Watcom-1.0", - r#"Sybase Open Watcom Public License 1.0"#, - IS_OSI_APPROVED, - ), - ("Widget-Workshop", r#"Widget Workshop License"#, 0x0), - ("Wsuipa", r#"Wsuipa License"#, 0x0), - ("X11", r#"X11 License"#, IS_FSF_LIBRE), - ( - "X11-distribute-modifications-variant", - r#"X11 License Distribution Modification Variant"#, - 0x0, - ), - ("X11-swapped", r#"X11 swapped final paragraphs"#, 0x0), - ("XFree86-1.1", r#"XFree86 License 1.1"#, IS_FSF_LIBRE), - ("XSkat", r#"XSkat License"#, 0x0), - ("Xdebug-1.03", r#"Xdebug License v 1.03"#, 0x0), - ("Xerox", r#"Xerox License"#, 0x0), - ("Xfig", r#"Xfig License"#, 0x0), - ("Xnet", r#"X.Net License"#, IS_OSI_APPROVED), - ("YPL-1.0", r#"Yahoo! Public License v1.0"#, 0x0), - ( - "YPL-1.1", - r#"Yahoo! Public License v1.1"#, - IS_FSF_LIBRE | IS_COPYLEFT, - ), - ("ZPL-1.1", r#"Zope Public License 1.1"#, 0x0), - ( - "ZPL-2.0", - r#"Zope Public License 2.0"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ( - "ZPL-2.1", - r#"Zope Public License 2.1"#, - IS_OSI_APPROVED | IS_FSF_LIBRE, - ), - ("Zed", r#"Zed License"#, 0x0), - ("Zeeff", r#"Zeeff License"#, 0x0), - ("Zend-2.0", r#"Zend License v2.0"#, IS_FSF_LIBRE), - ("Zimbra-1.3", r#"Zimbra Public License v1.3"#, IS_FSF_LIBRE), - ("Zimbra-1.4", r#"Zimbra Public License v1.4"#, 0x0), - ("Zlib", r#"zlib License"#, IS_OSI_APPROVED | IS_FSF_LIBRE), - ("any-OSI", r#"Any OSI License"#, 0x0), - ( - "any-OSI-perl-modules", - r#"Any OSI License - Perl Modules"#, - 0x0, - ), - ( - "bcrypt-Solar-Designer", - r#"bcrypt Solar Designer License"#, - 0x0, - ), - ("blessing", r#"SQLite Blessing"#, 0x0), - ( - "bzip2-1.0.5", - r#"bzip2 and libbzip2 License v1.0.5"#, - IS_DEPRECATED, - ), - ("bzip2-1.0.6", r#"bzip2 and libbzip2 License v1.0.6"#, 0x0), - ("check-cvs", r#"check-cvs License"#, 0x0), - ("checkmk", r#"Checkmk License"#, 0x0), - ("copyleft-next-0.3.0", r#"copyleft-next 0.3.0"#, 0x0), - ("copyleft-next-0.3.1", r#"copyleft-next 0.3.1"#, 0x0), - ("curl", r#"curl License"#, 0x0), - ( - "cve-tou", - r#"Common Vulnerability Enumeration ToU License"#, - 0x0, - ), - ("diffmark", r#"diffmark license"#, 0x0), - ("dtoa", r#"David M. Gay dtoa License"#, 0x0), - ("dvipdfm", r#"dvipdfm License"#, 0x0), - ( - "eCos-2.0", - r#"eCos license version 2.0"#, - IS_DEPRECATED | IS_FSF_LIBRE, - ), - ("eGenix", r#"eGenix.com Public License 1.1.0"#, 0x0), - ("etalab-2.0", r#"Etalab Open License 2.0"#, 0x0), - ("fwlw", r#"fwlw License"#, 0x0), - ("gSOAP-1.3b", r#"gSOAP Public License v1.3b"#, 0x0), - ("generic-xts", r#"Generic XTS License"#, 0x0), - ("gnuplot", r#"gnuplot License"#, IS_FSF_LIBRE), - ("gtkbook", r#"gtkbook License"#, 0x0), - ("hdparm", r#"hdparm License"#, 0x0), - ( - "iMatix", - r#"iMatix Standard Function Library Agreement"#, - IS_FSF_LIBRE, - ), - ("jove", r#"Jove License"#, 0x0), - ( - "libpng-1.6.35", - r#"PNG Reference Library License v1 (for libpng 0.5 through 1.6.35)"#, - 0x0, - ), - ("libpng-2.0", r#"PNG Reference Library version 2"#, 0x0), - ("libselinux-1.0", r#"libselinux public domain notice"#, 0x0), - ("libtiff", r#"libtiff License"#, 0x0), - ( - "libutil-David-Nugent", - r#"libutil David Nugent License"#, - 0x0, - ), - ("lsof", r#"lsof License"#, 0x0), - ("magaz", r#"magaz License"#, 0x0), - ("mailprio", r#"mailprio License"#, 0x0), - ("man2html", r#"man2html License"#, 0x0), - ("metamail", r#"metamail License"#, 0x0), - ("mpi-permissive", r#"mpi Permissive License"#, 0x0), - ("mpich2", r#"mpich2 License"#, 0x0), - ("mplus", r#"mplus Font License"#, 0x0), - ("ngrep", r#"ngrep License"#, 0x0), - ("pkgconf", r#"pkgconf License"#, 0x0), - ("pnmstitch", r#"pnmstitch License"#, 0x0), - ("psfrag", r#"psfrag License"#, 0x0), - ("psutils", r#"psutils License"#, 0x0), - ("python-ldap", r#"Python ldap License"#, 0x0), - ("radvd", r#"radvd License"#, 0x0), - ("snprintf", r#"snprintf License"#, 0x0), - ("softSurfer", r#"softSurfer License"#, 0x0), - ("ssh-keyscan", r#"ssh-keyscan License"#, 0x0), - ("swrule", r#"swrule License"#, 0x0), - ("threeparttable", r#"threeparttable License"#, 0x0), - ("ulem", r#"ulem License"#, 0x0), - ("w3m", r#"w3m License"#, 0x0), - ("wwl", r#"WWL License"#, 0x0), - ( - "wxWindows", - r#"wxWindows Library License"#, - IS_DEPRECATED | IS_OSI_APPROVED, - ), - ("xinetd", r#"xinetd License"#, IS_FSF_LIBRE | IS_COPYLEFT), - ( - "xkeyboard-config-Zinoviev", - r#"xkeyboard-config Zinoviev License"#, - 0x0, - ), - ("xlock", r#"xlock License"#, 0x0), - ("xpp", r#"XPP License"#, 0x0), - ("xzoom", r#"xzoom License"#, 0x0), - ( - "zlib-acknowledgement", - r#"zlib/libpng License with Acknowledgement"#, - 0x0, - ), +pub const LICENSES: &[License] = &[ + License { + name: "0BSD", + full_name: r#"BSD Zero Clause License"#, + index: 0, + flags: IS_OSI_APPROVED, + }, + License { + name: "3D-Slicer-1.0", + full_name: r#"3D Slicer License v1.0"#, + index: 1, + flags: 0x0, + }, + License { + name: "AAL", + full_name: r#"Attribution Assurance License"#, + index: 2, + flags: IS_OSI_APPROVED, + }, + License { + name: "ADSL", + full_name: r#"Amazon Digital Services License"#, + index: 3, + flags: 0x0, + }, + License { + name: "AFL-1.1", + full_name: r#"Academic Free License v1.1"#, + index: 4, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "AFL-1.2", + full_name: r#"Academic Free License v1.2"#, + index: 5, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "AFL-2.0", + full_name: r#"Academic Free License v2.0"#, + index: 6, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "AFL-2.1", + full_name: r#"Academic Free License v2.1"#, + index: 7, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "AFL-3.0", + full_name: r#"Academic Free License v3.0"#, + index: 8, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "AGPL-1.0", + full_name: r#"Affero General Public License v1.0"#, + index: 9, + flags: IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "AGPL-1.0-only", + full_name: r#"Affero General Public License v1.0 only"#, + index: 10, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "AGPL-1.0-or-later", + full_name: r#"Affero General Public License v1.0 or later"#, + index: 11, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "AGPL-3.0", + full_name: r#"GNU Affero General Public License v3.0"#, + index: 12, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "AGPL-3.0-only", + full_name: r#"GNU Affero General Public License v3.0 only"#, + index: 13, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "AGPL-3.0-or-later", + full_name: r#"GNU Affero General Public License v3.0 or later"#, + index: 14, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "AMD-newlib", + full_name: r#"AMD newlib License"#, + index: 15, + flags: 0x0, + }, + License { + name: "AMDPLPA", + full_name: r#"AMD's plpa_map.c License"#, + index: 16, + flags: 0x0, + }, + License { + name: "AML", + full_name: r#"Apple MIT License"#, + index: 17, + flags: 0x0, + }, + License { + name: "AML-glslang", + full_name: r#"AML glslang variant License"#, + index: 18, + flags: 0x0, + }, + License { + name: "AMPAS", + full_name: r#"Academy of Motion Picture Arts and Sciences BSD"#, + index: 19, + flags: 0x0, + }, + License { + name: "ANTLR-PD", + full_name: r#"ANTLR Software Rights Notice"#, + index: 20, + flags: 0x0, + }, + License { + name: "ANTLR-PD-fallback", + full_name: r#"ANTLR Software Rights Notice with license fallback"#, + index: 21, + flags: 0x0, + }, + License { + name: "APAFML", + full_name: r#"Adobe Postscript AFM License"#, + index: 22, + flags: 0x0, + }, + License { + name: "APL-1.0", + full_name: r#"Adaptive Public License 1.0"#, + index: 23, + flags: IS_OSI_APPROVED, + }, + License { + name: "APSL-1.0", + full_name: r#"Apple Public Source License 1.0"#, + index: 24, + flags: IS_OSI_APPROVED, + }, + License { + name: "APSL-1.1", + full_name: r#"Apple Public Source License 1.1"#, + index: 25, + flags: IS_OSI_APPROVED, + }, + License { + name: "APSL-1.2", + full_name: r#"Apple Public Source License 1.2"#, + index: 26, + flags: IS_OSI_APPROVED, + }, + License { + name: "APSL-2.0", + full_name: r#"Apple Public Source License 2.0"#, + index: 27, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "ASWF-Digital-Assets-1.0", + full_name: r#"ASWF Digital Assets License version 1.0"#, + index: 28, + flags: 0x0, + }, + License { + name: "ASWF-Digital-Assets-1.1", + full_name: r#"ASWF Digital Assets License 1.1"#, + index: 29, + flags: 0x0, + }, + License { + name: "Abstyles", + full_name: r#"Abstyles License"#, + index: 30, + flags: 0x0, + }, + License { + name: "AdaCore-doc", + full_name: r#"AdaCore Doc License"#, + index: 31, + flags: 0x0, + }, + License { + name: "Adobe-2006", + full_name: r#"Adobe Systems Incorporated Source Code License Agreement"#, + index: 32, + flags: 0x0, + }, + License { + name: "Adobe-Display-PostScript", + full_name: r#"Adobe Display PostScript License"#, + index: 33, + flags: 0x0, + }, + License { + name: "Adobe-Glyph", + full_name: r#"Adobe Glyph List License"#, + index: 34, + flags: 0x0, + }, + License { + name: "Adobe-Utopia", + full_name: r#"Adobe Utopia Font License"#, + index: 35, + flags: 0x0, + }, + License { + name: "Afmparse", + full_name: r#"Afmparse License"#, + index: 36, + flags: 0x0, + }, + License { + name: "Aladdin", + full_name: r#"Aladdin Free Public License"#, + index: 37, + flags: 0x0, + }, + License { + name: "Apache-1.0", + full_name: r#"Apache License 1.0"#, + index: 38, + flags: IS_FSF_LIBRE, + }, + License { + name: "Apache-1.1", + full_name: r#"Apache License 1.1"#, + index: 39, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Apache-2.0", + full_name: r#"Apache License 2.0"#, + index: 40, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "App-s2p", + full_name: r#"App::s2p License"#, + index: 41, + flags: 0x0, + }, + License { + name: "Arphic-1999", + full_name: r#"Arphic Public License"#, + index: 42, + flags: 0x0, + }, + License { + name: "Artistic-1.0", + full_name: r#"Artistic License 1.0"#, + index: 43, + flags: IS_OSI_APPROVED, + }, + License { + name: "Artistic-1.0-Perl", + full_name: r#"Artistic License 1.0 (Perl)"#, + index: 44, + flags: IS_OSI_APPROVED, + }, + License { + name: "Artistic-1.0-cl8", + full_name: r#"Artistic License 1.0 w/clause 8"#, + index: 45, + flags: IS_OSI_APPROVED, + }, + License { + name: "Artistic-2.0", + full_name: r#"Artistic License 2.0"#, + index: 46, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Artistic-dist", + full_name: r#"Artistic License 1.0 (dist)"#, + index: 47, + flags: 0x0, + }, + License { + name: "Aspell-RU", + full_name: r#"Aspell Russian License"#, + index: 48, + flags: 0x0, + }, + License { + name: "BSD-1-Clause", + full_name: r#"BSD 1-Clause License"#, + index: 49, + flags: IS_OSI_APPROVED, + }, + License { + name: "BSD-2-Clause", + full_name: r#"BSD 2-Clause "Simplified" License"#, + index: 50, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "BSD-2-Clause-Darwin", + full_name: r#"BSD 2-Clause - Ian Darwin variant"#, + index: 51, + flags: 0x0, + }, + License { + name: "BSD-2-Clause-FreeBSD", + full_name: r#"BSD 2-Clause FreeBSD License"#, + index: 52, + flags: IS_DEPRECATED | IS_FSF_LIBRE, + }, + License { + name: "BSD-2-Clause-NetBSD", + full_name: r#"BSD 2-Clause NetBSD License"#, + index: 53, + flags: IS_DEPRECATED | IS_FSF_LIBRE, + }, + License { + name: "BSD-2-Clause-Patent", + full_name: r#"BSD-2-Clause Plus Patent License"#, + index: 54, + flags: IS_OSI_APPROVED, + }, + License { + name: "BSD-2-Clause-Views", + full_name: r#"BSD 2-Clause with views sentence"#, + index: 55, + flags: 0x0, + }, + License { + name: "BSD-2-Clause-first-lines", + full_name: r#"BSD 2-Clause - first lines requirement"#, + index: 56, + flags: 0x0, + }, + License { + name: "BSD-2-Clause-pkgconf-disclaimer", + full_name: r#"BSD 2-Clause pkgconf disclaimer variant"#, + index: 57, + flags: 0x0, + }, + License { + name: "BSD-3-Clause", + full_name: r#"BSD 3-Clause "New" or "Revised" License"#, + index: 58, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "BSD-3-Clause-Attribution", + full_name: r#"BSD with attribution"#, + index: 59, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-Clear", + full_name: r#"BSD 3-Clause Clear License"#, + index: 60, + flags: IS_FSF_LIBRE, + }, + License { + name: "BSD-3-Clause-HP", + full_name: r#"Hewlett-Packard BSD variant license"#, + index: 61, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-LBNL", + full_name: r#"Lawrence Berkeley National Labs BSD variant license"#, + index: 62, + flags: IS_OSI_APPROVED, + }, + License { + name: "BSD-3-Clause-Modification", + full_name: r#"BSD 3-Clause Modification"#, + index: 63, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-No-Military-License", + full_name: r#"BSD 3-Clause No Military License"#, + index: 64, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-No-Nuclear-License", + full_name: r#"BSD 3-Clause No Nuclear License"#, + index: 65, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-No-Nuclear-License-2014", + full_name: r#"BSD 3-Clause No Nuclear License 2014"#, + index: 66, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-No-Nuclear-Warranty", + full_name: r#"BSD 3-Clause No Nuclear Warranty"#, + index: 67, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-Open-MPI", + full_name: r#"BSD 3-Clause Open MPI variant"#, + index: 68, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-Sun", + full_name: r#"BSD 3-Clause Sun Microsystems"#, + index: 69, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-acpica", + full_name: r#"BSD 3-Clause acpica variant"#, + index: 70, + flags: 0x0, + }, + License { + name: "BSD-3-Clause-flex", + full_name: r#"BSD 3-Clause Flex variant"#, + index: 71, + flags: 0x0, + }, + License { + name: "BSD-4-Clause", + full_name: r#"BSD 4-Clause "Original" or "Old" License"#, + index: 72, + flags: IS_FSF_LIBRE, + }, + License { + name: "BSD-4-Clause-Shortened", + full_name: r#"BSD 4 Clause Shortened"#, + index: 73, + flags: 0x0, + }, + License { + name: "BSD-4-Clause-UC", + full_name: r#"BSD-4-Clause (University of California-Specific)"#, + index: 74, + flags: 0x0, + }, + License { + name: "BSD-4.3RENO", + full_name: r#"BSD 4.3 RENO License"#, + index: 75, + flags: 0x0, + }, + License { + name: "BSD-4.3TAHOE", + full_name: r#"BSD 4.3 TAHOE License"#, + index: 76, + flags: 0x0, + }, + License { + name: "BSD-Advertising-Acknowledgement", + full_name: r#"BSD Advertising Acknowledgement License"#, + index: 77, + flags: 0x0, + }, + License { + name: "BSD-Attribution-HPND-disclaimer", + full_name: r#"BSD with Attribution and HPND disclaimer"#, + index: 78, + flags: 0x0, + }, + License { + name: "BSD-Inferno-Nettverk", + full_name: r#"BSD-Inferno-Nettverk"#, + index: 79, + flags: 0x0, + }, + License { + name: "BSD-Protection", + full_name: r#"BSD Protection License"#, + index: 80, + flags: IS_COPYLEFT, + }, + License { + name: "BSD-Source-Code", + full_name: r#"BSD Source Code Attribution"#, + index: 81, + flags: 0x0, + }, + License { + name: "BSD-Source-beginning-file", + full_name: r#"BSD Source Code Attribution - beginning of file variant"#, + index: 82, + flags: 0x0, + }, + License { + name: "BSD-Systemics", + full_name: r#"Systemics BSD variant license"#, + index: 83, + flags: 0x0, + }, + License { + name: "BSD-Systemics-W3Works", + full_name: r#"Systemics W3Works BSD variant license"#, + index: 84, + flags: 0x0, + }, + License { + name: "BSL-1.0", + full_name: r#"Boost Software License 1.0"#, + index: 85, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "BUSL-1.1", + full_name: r#"Business Source License 1.1"#, + index: 86, + flags: 0x0, + }, + License { + name: "Baekmuk", + full_name: r#"Baekmuk License"#, + index: 87, + flags: 0x0, + }, + License { + name: "Bahyph", + full_name: r#"Bahyph License"#, + index: 88, + flags: 0x0, + }, + License { + name: "Barr", + full_name: r#"Barr License"#, + index: 89, + flags: 0x0, + }, + License { + name: "Beerware", + full_name: r#"Beerware License"#, + index: 90, + flags: 0x0, + }, + License { + name: "BitTorrent-1.0", + full_name: r#"BitTorrent Open Source License v1.0"#, + index: 91, + flags: 0x0, + }, + License { + name: "BitTorrent-1.1", + full_name: r#"BitTorrent Open Source License v1.1"#, + index: 92, + flags: IS_FSF_LIBRE, + }, + License { + name: "Bitstream-Charter", + full_name: r#"Bitstream Charter Font License"#, + index: 93, + flags: 0x0, + }, + License { + name: "Bitstream-Vera", + full_name: r#"Bitstream Vera Font License"#, + index: 94, + flags: 0x0, + }, + License { + name: "BlueOak-1.0.0", + full_name: r#"Blue Oak Model License 1.0.0"#, + index: 95, + flags: IS_OSI_APPROVED, + }, + License { + name: "Boehm-GC", + full_name: r#"Boehm-Demers-Weiser GC License"#, + index: 96, + flags: 0x0, + }, + License { + name: "Boehm-GC-without-fee", + full_name: r#"Boehm-Demers-Weiser GC License (without fee)"#, + index: 97, + flags: 0x0, + }, + License { + name: "Borceux", + full_name: r#"Borceux license"#, + index: 98, + flags: 0x0, + }, + License { + name: "Brian-Gladman-2-Clause", + full_name: r#"Brian Gladman 2-Clause License"#, + index: 99, + flags: 0x0, + }, + License { + name: "Brian-Gladman-3-Clause", + full_name: r#"Brian Gladman 3-Clause License"#, + index: 100, + flags: 0x0, + }, + License { + name: "C-UDA-1.0", + full_name: r#"Computational Use of Data Agreement v1.0"#, + index: 101, + flags: 0x0, + }, + License { + name: "CAL-1.0", + full_name: r#"Cryptographic Autonomy License 1.0"#, + index: 102, + flags: IS_OSI_APPROVED, + }, + License { + name: "CAL-1.0-Combined-Work-Exception", + full_name: r#"Cryptographic Autonomy License 1.0 (Combined Work Exception)"#, + index: 103, + flags: IS_OSI_APPROVED, + }, + License { + name: "CATOSL-1.1", + full_name: r#"Computer Associates Trusted Open Source License 1.1"#, + index: 104, + flags: IS_OSI_APPROVED, + }, + License { + name: "CC-BY-1.0", + full_name: r#"Creative Commons Attribution 1.0 Generic"#, + index: 105, + flags: 0x0, + }, + License { + name: "CC-BY-2.0", + full_name: r#"Creative Commons Attribution 2.0 Generic"#, + index: 106, + flags: 0x0, + }, + License { + name: "CC-BY-2.5", + full_name: r#"Creative Commons Attribution 2.5 Generic"#, + index: 107, + flags: 0x0, + }, + License { + name: "CC-BY-2.5-AU", + full_name: r#"Creative Commons Attribution 2.5 Australia"#, + index: 108, + flags: 0x0, + }, + License { + name: "CC-BY-3.0", + full_name: r#"Creative Commons Attribution 3.0 Unported"#, + index: 109, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-AT", + full_name: r#"Creative Commons Attribution 3.0 Austria"#, + index: 110, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-AU", + full_name: r#"Creative Commons Attribution 3.0 Australia"#, + index: 111, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-DE", + full_name: r#"Creative Commons Attribution 3.0 Germany"#, + index: 112, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-IGO", + full_name: r#"Creative Commons Attribution 3.0 IGO"#, + index: 113, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-NL", + full_name: r#"Creative Commons Attribution 3.0 Netherlands"#, + index: 114, + flags: 0x0, + }, + License { + name: "CC-BY-3.0-US", + full_name: r#"Creative Commons Attribution 3.0 United States"#, + index: 115, + flags: 0x0, + }, + License { + name: "CC-BY-4.0", + full_name: r#"Creative Commons Attribution 4.0 International"#, + index: 116, + flags: IS_FSF_LIBRE, + }, + License { + name: "CC-BY-NC-1.0", + full_name: r#"Creative Commons Attribution Non Commercial 1.0 Generic"#, + index: 117, + flags: 0x0, + }, + License { + name: "CC-BY-NC-2.0", + full_name: r#"Creative Commons Attribution Non Commercial 2.0 Generic"#, + index: 118, + flags: 0x0, + }, + License { + name: "CC-BY-NC-2.5", + full_name: r#"Creative Commons Attribution Non Commercial 2.5 Generic"#, + index: 119, + flags: 0x0, + }, + License { + name: "CC-BY-NC-3.0", + full_name: r#"Creative Commons Attribution Non Commercial 3.0 Unported"#, + index: 120, + flags: 0x0, + }, + License { + name: "CC-BY-NC-3.0-DE", + full_name: r#"Creative Commons Attribution Non Commercial 3.0 Germany"#, + index: 121, + flags: 0x0, + }, + License { + name: "CC-BY-NC-4.0", + full_name: r#"Creative Commons Attribution Non Commercial 4.0 International"#, + index: 122, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-1.0", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic"#, + index: 123, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-2.0", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic"#, + index: 124, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-2.5", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic"#, + index: 125, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-3.0", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported"#, + index: 126, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-3.0-DE", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 Germany"#, + index: 127, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-3.0-IGO", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 3.0 IGO"#, + index: 128, + flags: 0x0, + }, + License { + name: "CC-BY-NC-ND-4.0", + full_name: r#"Creative Commons Attribution Non Commercial No Derivatives 4.0 International"#, + index: 129, + flags: 0x0, + }, + License { + name: "CC-BY-NC-SA-1.0", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 1.0 Generic"#, + index: 130, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-2.0", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 2.0 Generic"#, + index: 131, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-2.0-DE", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 2.0 Germany"#, + index: 132, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-2.0-FR", + full_name: r#"Creative Commons Attribution-NonCommercial-ShareAlike 2.0 France"#, + index: 133, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-2.0-UK", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 2.0 England and Wales"#, + index: 134, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-2.5", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 2.5 Generic"#, + index: 135, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-3.0", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 3.0 Unported"#, + index: 136, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-3.0-DE", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 3.0 Germany"#, + index: 137, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-3.0-IGO", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 3.0 IGO"#, + index: 138, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-NC-SA-4.0", + full_name: r#"Creative Commons Attribution Non Commercial Share Alike 4.0 International"#, + index: 139, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-ND-1.0", + full_name: r#"Creative Commons Attribution No Derivatives 1.0 Generic"#, + index: 140, + flags: 0x0, + }, + License { + name: "CC-BY-ND-2.0", + full_name: r#"Creative Commons Attribution No Derivatives 2.0 Generic"#, + index: 141, + flags: 0x0, + }, + License { + name: "CC-BY-ND-2.5", + full_name: r#"Creative Commons Attribution No Derivatives 2.5 Generic"#, + index: 142, + flags: 0x0, + }, + License { + name: "CC-BY-ND-3.0", + full_name: r#"Creative Commons Attribution No Derivatives 3.0 Unported"#, + index: 143, + flags: 0x0, + }, + License { + name: "CC-BY-ND-3.0-DE", + full_name: r#"Creative Commons Attribution No Derivatives 3.0 Germany"#, + index: 144, + flags: 0x0, + }, + License { + name: "CC-BY-ND-4.0", + full_name: r#"Creative Commons Attribution No Derivatives 4.0 International"#, + index: 145, + flags: 0x0, + }, + License { + name: "CC-BY-SA-1.0", + full_name: r#"Creative Commons Attribution Share Alike 1.0 Generic"#, + index: 146, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-2.0", + full_name: r#"Creative Commons Attribution Share Alike 2.0 Generic"#, + index: 147, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-2.0-UK", + full_name: r#"Creative Commons Attribution Share Alike 2.0 England and Wales"#, + index: 148, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-2.1-JP", + full_name: r#"Creative Commons Attribution Share Alike 2.1 Japan"#, + index: 149, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-2.5", + full_name: r#"Creative Commons Attribution Share Alike 2.5 Generic"#, + index: 150, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-3.0", + full_name: r#"Creative Commons Attribution Share Alike 3.0 Unported"#, + index: 151, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-3.0-AT", + full_name: r#"Creative Commons Attribution Share Alike 3.0 Austria"#, + index: 152, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-3.0-DE", + full_name: r#"Creative Commons Attribution Share Alike 3.0 Germany"#, + index: 153, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-3.0-IGO", + full_name: r#"Creative Commons Attribution-ShareAlike 3.0 IGO"#, + index: 154, + flags: IS_COPYLEFT, + }, + License { + name: "CC-BY-SA-4.0", + full_name: r#"Creative Commons Attribution Share Alike 4.0 International"#, + index: 155, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CC-PDDC", + full_name: r#"Creative Commons Public Domain Dedication and Certification"#, + index: 156, + flags: 0x0, + }, + License { + name: "CC-PDM-1.0", + full_name: r#"Creative Commons Public Domain Mark 1.0 Universal"#, + index: 157, + flags: 0x0, + }, + License { + name: "CC-SA-1.0", + full_name: r#"Creative Commons Share Alike 1.0 Generic"#, + index: 158, + flags: 0x0, + }, + License { + name: "CC0-1.0", + full_name: r#"Creative Commons Zero v1.0 Universal"#, + index: 159, + flags: IS_FSF_LIBRE, + }, + License { + name: "CDDL-1.0", + full_name: r#"Common Development and Distribution License 1.0"#, + index: 160, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CDDL-1.1", + full_name: r#"Common Development and Distribution License 1.1"#, + index: 161, + flags: IS_COPYLEFT, + }, + License { + name: "CDL-1.0", + full_name: r#"Common Documentation License 1.0"#, + index: 162, + flags: 0x0, + }, + License { + name: "CDLA-Permissive-1.0", + full_name: r#"Community Data License Agreement Permissive 1.0"#, + index: 163, + flags: 0x0, + }, + License { + name: "CDLA-Permissive-2.0", + full_name: r#"Community Data License Agreement Permissive 2.0"#, + index: 164, + flags: 0x0, + }, + License { + name: "CDLA-Sharing-1.0", + full_name: r#"Community Data License Agreement Sharing 1.0"#, + index: 165, + flags: 0x0, + }, + License { + name: "CECILL-1.0", + full_name: r#"CeCILL Free Software License Agreement v1.0"#, + index: 166, + flags: IS_COPYLEFT, + }, + License { + name: "CECILL-1.1", + full_name: r#"CeCILL Free Software License Agreement v1.1"#, + index: 167, + flags: IS_COPYLEFT, + }, + License { + name: "CECILL-2.0", + full_name: r#"CeCILL Free Software License Agreement v2.0"#, + index: 168, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CECILL-2.1", + full_name: r#"CeCILL Free Software License Agreement v2.1"#, + index: 169, + flags: IS_OSI_APPROVED | IS_COPYLEFT, + }, + License { + name: "CECILL-B", + full_name: r#"CeCILL-B Free Software License Agreement"#, + index: 170, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CECILL-C", + full_name: r#"CeCILL-C Free Software License Agreement"#, + index: 171, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CERN-OHL-1.1", + full_name: r#"CERN Open Hardware Licence v1.1"#, + index: 172, + flags: 0x0, + }, + License { + name: "CERN-OHL-1.2", + full_name: r#"CERN Open Hardware Licence v1.2"#, + index: 173, + flags: 0x0, + }, + License { + name: "CERN-OHL-P-2.0", + full_name: r#"CERN Open Hardware Licence Version 2 - Permissive"#, + index: 174, + flags: IS_OSI_APPROVED, + }, + License { + name: "CERN-OHL-S-2.0", + full_name: r#"CERN Open Hardware Licence Version 2 - Strongly Reciprocal"#, + index: 175, + flags: IS_OSI_APPROVED, + }, + License { + name: "CERN-OHL-W-2.0", + full_name: r#"CERN Open Hardware Licence Version 2 - Weakly Reciprocal"#, + index: 176, + flags: IS_OSI_APPROVED, + }, + License { + name: "CFITSIO", + full_name: r#"CFITSIO License"#, + index: 177, + flags: 0x0, + }, + License { + name: "CMU-Mach", + full_name: r#"CMU Mach License"#, + index: 178, + flags: 0x0, + }, + License { + name: "CMU-Mach-nodoc", + full_name: r#"CMU Mach - no notices-in-documentation variant"#, + index: 179, + flags: 0x0, + }, + License { + name: "CNRI-Jython", + full_name: r#"CNRI Jython License"#, + index: 180, + flags: 0x0, + }, + License { + name: "CNRI-Python", + full_name: r#"CNRI Python License"#, + index: 181, + flags: IS_OSI_APPROVED, + }, + License { + name: "CNRI-Python-GPL-Compatible", + full_name: r#"CNRI Python Open Source GPL Compatible License Agreement"#, + index: 182, + flags: 0x0, + }, + License { + name: "COIL-1.0", + full_name: r#"Copyfree Open Innovation License"#, + index: 183, + flags: 0x0, + }, + License { + name: "CPAL-1.0", + full_name: r#"Common Public Attribution License 1.0"#, + index: 184, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "CPL-1.0", + full_name: r#"Common Public License 1.0"#, + index: 185, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "CPOL-1.02", + full_name: r#"Code Project Open License 1.02"#, + index: 186, + flags: 0x0, + }, + License { + name: "CUA-OPL-1.0", + full_name: r#"CUA Office Public License v1.0"#, + index: 187, + flags: IS_OSI_APPROVED, + }, + License { + name: "Caldera", + full_name: r#"Caldera License"#, + index: 188, + flags: 0x0, + }, + License { + name: "Caldera-no-preamble", + full_name: r#"Caldera License (without preamble)"#, + index: 189, + flags: 0x0, + }, + License { + name: "Catharon", + full_name: r#"Catharon License"#, + index: 190, + flags: 0x0, + }, + License { + name: "ClArtistic", + full_name: r#"Clarified Artistic License"#, + index: 191, + flags: IS_FSF_LIBRE, + }, + License { + name: "Clips", + full_name: r#"Clips License"#, + index: 192, + flags: 0x0, + }, + License { + name: "Community-Spec-1.0", + full_name: r#"Community Specification License 1.0"#, + index: 193, + flags: 0x0, + }, + License { + name: "Condor-1.1", + full_name: r#"Condor Public License v1.1"#, + index: 194, + flags: IS_FSF_LIBRE, + }, + License { + name: "Cornell-Lossless-JPEG", + full_name: r#"Cornell Lossless JPEG License"#, + index: 195, + flags: 0x0, + }, + License { + name: "Cronyx", + full_name: r#"Cronyx License"#, + index: 196, + flags: 0x0, + }, + License { + name: "Crossword", + full_name: r#"Crossword License"#, + index: 197, + flags: 0x0, + }, + License { + name: "CryptoSwift", + full_name: r#"CryptoSwift License"#, + index: 198, + flags: 0x0, + }, + License { + name: "CrystalStacker", + full_name: r#"CrystalStacker License"#, + index: 199, + flags: 0x0, + }, + License { + name: "Cube", + full_name: r#"Cube License"#, + index: 200, + flags: 0x0, + }, + License { + name: "D-FSL-1.0", + full_name: r#"Deutsche Freie Software Lizenz"#, + index: 201, + flags: 0x0, + }, + License { + name: "DEC-3-Clause", + full_name: r#"DEC 3-Clause License"#, + index: 202, + flags: 0x0, + }, + License { + name: "DL-DE-BY-2.0", + full_name: r#"Data licence Germany – attribution – version 2.0"#, + index: 203, + flags: 0x0, + }, + License { + name: "DL-DE-ZERO-2.0", + full_name: r#"Data licence Germany – zero – version 2.0"#, + index: 204, + flags: 0x0, + }, + License { + name: "DOC", + full_name: r#"DOC License"#, + index: 205, + flags: 0x0, + }, + License { + name: "DRL-1.0", + full_name: r#"Detection Rule License 1.0"#, + index: 206, + flags: 0x0, + }, + License { + name: "DRL-1.1", + full_name: r#"Detection Rule License 1.1"#, + index: 207, + flags: 0x0, + }, + License { + name: "DSDP", + full_name: r#"DSDP License"#, + index: 208, + flags: 0x0, + }, + License { + name: "DocBook-DTD", + full_name: r#"DocBook DTD License"#, + index: 209, + flags: 0x0, + }, + License { + name: "DocBook-Schema", + full_name: r#"DocBook Schema License"#, + index: 210, + flags: 0x0, + }, + License { + name: "DocBook-Stylesheet", + full_name: r#"DocBook Stylesheet License"#, + index: 211, + flags: 0x0, + }, + License { + name: "DocBook-XML", + full_name: r#"DocBook XML License"#, + index: 212, + flags: 0x0, + }, + License { + name: "Dotseqn", + full_name: r#"Dotseqn License"#, + index: 213, + flags: 0x0, + }, + License { + name: "ECL-1.0", + full_name: r#"Educational Community License v1.0"#, + index: 214, + flags: IS_OSI_APPROVED, + }, + License { + name: "ECL-2.0", + full_name: r#"Educational Community License v2.0"#, + index: 215, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "EFL-1.0", + full_name: r#"Eiffel Forum License v1.0"#, + index: 216, + flags: IS_OSI_APPROVED, + }, + License { + name: "EFL-2.0", + full_name: r#"Eiffel Forum License v2.0"#, + index: 217, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "EPICS", + full_name: r#"EPICS Open License"#, + index: 218, + flags: 0x0, + }, + License { + name: "EPL-1.0", + full_name: r#"Eclipse Public License 1.0"#, + index: 219, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "EPL-2.0", + full_name: r#"Eclipse Public License 2.0"#, + index: 220, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "EUDatagrid", + full_name: r#"EU DataGrid Software License"#, + index: 221, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "EUPL-1.0", + full_name: r#"European Union Public License 1.0"#, + index: 222, + flags: IS_COPYLEFT, + }, + License { + name: "EUPL-1.1", + full_name: r#"European Union Public License 1.1"#, + index: 223, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "EUPL-1.2", + full_name: r#"European Union Public License 1.2"#, + index: 224, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "Elastic-2.0", + full_name: r#"Elastic License 2.0"#, + index: 225, + flags: 0x0, + }, + License { + name: "Entessa", + full_name: r#"Entessa Public License v1.0"#, + index: 226, + flags: IS_OSI_APPROVED, + }, + License { + name: "ErlPL-1.1", + full_name: r#"Erlang Public License v1.1"#, + index: 227, + flags: 0x0, + }, + License { + name: "Eurosym", + full_name: r#"Eurosym License"#, + index: 228, + flags: 0x0, + }, + License { + name: "FBM", + full_name: r#"Fuzzy Bitmap License"#, + index: 229, + flags: 0x0, + }, + License { + name: "FDK-AAC", + full_name: r#"Fraunhofer FDK AAC Codec Library"#, + index: 230, + flags: 0x0, + }, + License { + name: "FSFAP", + full_name: r#"FSF All Permissive License"#, + index: 231, + flags: IS_FSF_LIBRE, + }, + License { + name: "FSFAP-no-warranty-disclaimer", + full_name: r#"FSF All Permissive License (without Warranty)"#, + index: 232, + flags: 0x0, + }, + License { + name: "FSFUL", + full_name: r#"FSF Unlimited License"#, + index: 233, + flags: 0x0, + }, + License { + name: "FSFULLR", + full_name: r#"FSF Unlimited License (with License Retention)"#, + index: 234, + flags: 0x0, + }, + License { + name: "FSFULLRSD", + full_name: r#"FSF Unlimited License (with License Retention and Short Disclaimer)"#, + index: 235, + flags: 0x0, + }, + License { + name: "FSFULLRWD", + full_name: r#"FSF Unlimited License (With License Retention and Warranty Disclaimer)"#, + index: 236, + flags: 0x0, + }, + License { + name: "FSL-1.1-ALv2", + full_name: r#"Functional Source License, Version 1.1, ALv2 Future License"#, + index: 237, + flags: 0x0, + }, + License { + name: "FSL-1.1-MIT", + full_name: r#"Functional Source License, Version 1.1, MIT Future License"#, + index: 238, + flags: 0x0, + }, + License { + name: "FTL", + full_name: r#"Freetype Project License"#, + index: 239, + flags: IS_FSF_LIBRE, + }, + License { + name: "Fair", + full_name: r#"Fair License"#, + index: 240, + flags: IS_OSI_APPROVED, + }, + License { + name: "Ferguson-Twofish", + full_name: r#"Ferguson Twofish License"#, + index: 241, + flags: 0x0, + }, + License { + name: "Frameworx-1.0", + full_name: r#"Frameworx Open License 1.0"#, + index: 242, + flags: IS_OSI_APPROVED, + }, + License { + name: "FreeBSD-DOC", + full_name: r#"FreeBSD Documentation License"#, + index: 243, + flags: 0x0, + }, + License { + name: "FreeImage", + full_name: r#"FreeImage Public License v1.0"#, + index: 244, + flags: 0x0, + }, + License { + name: "Furuseth", + full_name: r#"Furuseth License"#, + index: 245, + flags: 0x0, + }, + License { + name: "GCR-docs", + full_name: r#"Gnome GCR Documentation License"#, + index: 246, + flags: 0x0, + }, + License { + name: "GD", + full_name: r#"GD License"#, + index: 247, + flags: 0x0, + }, + License { + name: "GFDL-1.1", + full_name: r#"GNU Free Documentation License v1.1"#, + index: 248, + flags: IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-invariants", + full_name: r#"GNU Free Documentation License v1.1 only - invariants"#, + index: 249, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-invariants-only", + full_name: r#"GNU Free Documentation License v1.1 only - invariants"#, + index: 250, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.1 or later - invariants"#, + index: 251, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-no-invariants", + full_name: r#"GNU Free Documentation License v1.1 only - no invariants"#, + index: 252, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-no-invariants-only", + full_name: r#"GNU Free Documentation License v1.1 only - no invariants"#, + index: 253, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-no-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.1 or later - no invariants"#, + index: 254, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-only", + full_name: r#"GNU Free Documentation License v1.1 only"#, + index: 255, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.1-or-later", + full_name: r#"GNU Free Documentation License v1.1 or later"#, + index: 256, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2", + full_name: r#"GNU Free Documentation License v1.2"#, + index: 257, + flags: IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-invariants", + full_name: r#"GNU Free Documentation License v1.2 only - invariants"#, + index: 258, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-invariants-only", + full_name: r#"GNU Free Documentation License v1.2 only - invariants"#, + index: 259, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.2 or later - invariants"#, + index: 260, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-no-invariants", + full_name: r#"GNU Free Documentation License v1.2 only - no invariants"#, + index: 261, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-no-invariants-only", + full_name: r#"GNU Free Documentation License v1.2 only - no invariants"#, + index: 262, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-no-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.2 or later - no invariants"#, + index: 263, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-only", + full_name: r#"GNU Free Documentation License v1.2 only"#, + index: 264, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.2-or-later", + full_name: r#"GNU Free Documentation License v1.2 or later"#, + index: 265, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3", + full_name: r#"GNU Free Documentation License v1.3"#, + index: 266, + flags: IS_DEPRECATED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-invariants", + full_name: r#"GNU Free Documentation License v1.3 only - invariants"#, + index: 267, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-invariants-only", + full_name: r#"GNU Free Documentation License v1.3 only - invariants"#, + index: 268, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.3 or later - invariants"#, + index: 269, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-no-invariants", + full_name: r#"GNU Free Documentation License v1.3 only - no invariants"#, + index: 270, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-no-invariants-only", + full_name: r#"GNU Free Documentation License v1.3 only - no invariants"#, + index: 271, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-no-invariants-or-later", + full_name: r#"GNU Free Documentation License v1.3 or later - no invariants"#, + index: 272, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-only", + full_name: r#"GNU Free Documentation License v1.3 only"#, + index: 273, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GFDL-1.3-or-later", + full_name: r#"GNU Free Documentation License v1.3 or later"#, + index: 274, + flags: IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GL2PS", + full_name: r#"GL2PS License"#, + index: 275, + flags: 0x0, + }, + License { + name: "GLWTPL", + full_name: r#"Good Luck With That Public License"#, + index: 276, + flags: 0x0, + }, + License { + name: "GPL-1.0", + full_name: r#"GNU General Public License v1.0 only"#, + index: 277, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-1.0+", + full_name: r#"GNU General Public License v1.0 or later"#, + index: 278, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-1.0-only", + full_name: r#"GNU General Public License v1.0 only"#, + index: 279, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-1.0-or-later", + full_name: r#"GNU General Public License v1.0 or later"#, + index: 280, + flags: IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0", + full_name: r#"GNU General Public License v2.0 only"#, + index: 281, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0+", + full_name: r#"GNU General Public License v2.0 or later"#, + index: 282, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-only", + full_name: r#"GNU General Public License v2.0 only"#, + index: 283, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-or-later", + full_name: r#"GNU General Public License v2.0 or later"#, + index: 284, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-with-GCC-exception", + full_name: r#"GNU General Public License v2.0 w/GCC Runtime Library exception"#, + index: 285, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-with-autoconf-exception", + full_name: r#"GNU General Public License v2.0 w/Autoconf exception"#, + index: 286, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-with-bison-exception", + full_name: r#"GNU General Public License v2.0 w/Bison exception"#, + index: 287, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-with-classpath-exception", + full_name: r#"GNU General Public License v2.0 w/Classpath exception"#, + index: 288, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-2.0-with-font-exception", + full_name: r#"GNU General Public License v2.0 w/Font exception"#, + index: 289, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0", + full_name: r#"GNU General Public License v3.0 only"#, + index: 290, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0+", + full_name: r#"GNU General Public License v3.0 or later"#, + index: 291, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0-only", + full_name: r#"GNU General Public License v3.0 only"#, + index: 292, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0-or-later", + full_name: r#"GNU General Public License v3.0 or later"#, + index: 293, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0-with-GCC-exception", + full_name: r#"GNU General Public License v3.0 w/GCC Runtime Library exception"#, + index: 294, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "GPL-3.0-with-autoconf-exception", + full_name: r#"GNU General Public License v3.0 w/Autoconf exception"#, + index: 295, + flags: IS_DEPRECATED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "Game-Programming-Gems", + full_name: r#"Game Programming Gems License"#, + index: 296, + flags: 0x0, + }, + License { + name: "Giftware", + full_name: r#"Giftware License"#, + index: 297, + flags: 0x0, + }, + License { + name: "Glide", + full_name: r#"3dfx Glide License"#, + index: 298, + flags: 0x0, + }, + License { + name: "Glulxe", + full_name: r#"Glulxe License"#, + index: 299, + flags: 0x0, + }, + License { + name: "Graphics-Gems", + full_name: r#"Graphics Gems License"#, + index: 300, + flags: 0x0, + }, + License { + name: "Gutmann", + full_name: r#"Gutmann License"#, + index: 301, + flags: 0x0, + }, + License { + name: "HDF5", + full_name: r#"HDF5 License"#, + index: 302, + flags: 0x0, + }, + License { + name: "HIDAPI", + full_name: r#"HIDAPI License"#, + index: 303, + flags: 0x0, + }, + License { + name: "HP-1986", + full_name: r#"Hewlett-Packard 1986 License"#, + index: 304, + flags: 0x0, + }, + License { + name: "HP-1989", + full_name: r#"Hewlett-Packard 1989 License"#, + index: 305, + flags: 0x0, + }, + License { + name: "HPND", + full_name: r#"Historical Permission Notice and Disclaimer"#, + index: 306, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "HPND-DEC", + full_name: r#"Historical Permission Notice and Disclaimer - DEC variant"#, + index: 307, + flags: 0x0, + }, + License { + name: "HPND-Fenneberg-Livingston", + full_name: r#"Historical Permission Notice and Disclaimer - Fenneberg-Livingston variant"#, + index: 308, + flags: 0x0, + }, + License { + name: "HPND-INRIA-IMAG", + full_name: r#"Historical Permission Notice and Disclaimer - INRIA-IMAG variant"#, + index: 309, + flags: 0x0, + }, + License { + name: "HPND-Intel", + full_name: r#"Historical Permission Notice and Disclaimer - Intel variant"#, + index: 310, + flags: 0x0, + }, + License { + name: "HPND-Kevlin-Henney", + full_name: r#"Historical Permission Notice and Disclaimer - Kevlin Henney variant"#, + index: 311, + flags: 0x0, + }, + License { + name: "HPND-MIT-disclaimer", + full_name: r#"Historical Permission Notice and Disclaimer with MIT disclaimer"#, + index: 312, + flags: 0x0, + }, + License { + name: "HPND-Markus-Kuhn", + full_name: r#"Historical Permission Notice and Disclaimer - Markus Kuhn variant"#, + index: 313, + flags: 0x0, + }, + License { + name: "HPND-Netrek", + full_name: r#"Historical Permission Notice and Disclaimer - Netrek variant"#, + index: 314, + flags: 0x0, + }, + License { + name: "HPND-Pbmplus", + full_name: r#"Historical Permission Notice and Disclaimer - Pbmplus variant"#, + index: 315, + flags: 0x0, + }, + License { + name: "HPND-UC", + full_name: r#"Historical Permission Notice and Disclaimer - University of California variant"#, + index: 316, + flags: 0x0, + }, + License { + name: "HPND-UC-export-US", + full_name: r#"Historical Permission Notice and Disclaimer - University of California, US export warning"#, + index: 317, + flags: 0x0, + }, + License { + name: "HPND-doc", + full_name: r#"Historical Permission Notice and Disclaimer - documentation variant"#, + index: 318, + flags: 0x0, + }, + License { + name: "HPND-doc-sell", + full_name: r#"Historical Permission Notice and Disclaimer - documentation sell variant"#, + index: 319, + flags: 0x0, + }, + License { + name: "HPND-export-US", + full_name: r#"HPND with US Government export control warning"#, + index: 320, + flags: 0x0, + }, + License { + name: "HPND-export-US-acknowledgement", + full_name: r#"HPND with US Government export control warning and acknowledgment"#, + index: 321, + flags: 0x0, + }, + License { + name: "HPND-export-US-modify", + full_name: r#"HPND with US Government export control warning and modification rqmt"#, + index: 322, + flags: 0x0, + }, + License { + name: "HPND-export2-US", + full_name: r#"HPND with US Government export control and 2 disclaimers"#, + index: 323, + flags: 0x0, + }, + License { + name: "HPND-merchantability-variant", + full_name: r#"Historical Permission Notice and Disclaimer - merchantability variant"#, + index: 324, + flags: 0x0, + }, + License { + name: "HPND-sell-MIT-disclaimer-xserver", + full_name: r#"Historical Permission Notice and Disclaimer - sell xserver variant with MIT disclaimer"#, + index: 325, + flags: 0x0, + }, + License { + name: "HPND-sell-regexpr", + full_name: r#"Historical Permission Notice and Disclaimer - sell regexpr variant"#, + index: 326, + flags: 0x0, + }, + License { + name: "HPND-sell-variant", + full_name: r#"Historical Permission Notice and Disclaimer - sell variant"#, + index: 327, + flags: 0x0, + }, + License { + name: "HPND-sell-variant-MIT-disclaimer", + full_name: r#"HPND sell variant with MIT disclaimer"#, + index: 328, + flags: 0x0, + }, + License { + name: "HPND-sell-variant-MIT-disclaimer-rev", + full_name: r#"HPND sell variant with MIT disclaimer - reverse"#, + index: 329, + flags: 0x0, + }, + License { + name: "HTMLTIDY", + full_name: r#"HTML Tidy License"#, + index: 330, + flags: 0x0, + }, + License { + name: "HaskellReport", + full_name: r#"Haskell Language Report License"#, + index: 331, + flags: 0x0, + }, + License { + name: "Hippocratic-2.1", + full_name: r#"Hippocratic License 2.1"#, + index: 332, + flags: 0x0, + }, + License { + name: "IBM-pibs", + full_name: r#"IBM PowerPC Initialization and Boot Software"#, + index: 333, + flags: 0x0, + }, + License { + name: "ICU", + full_name: r#"ICU License"#, + index: 334, + flags: IS_OSI_APPROVED, + }, + License { + name: "IEC-Code-Components-EULA", + full_name: r#"IEC Code Components End-user licence agreement"#, + index: 335, + flags: 0x0, + }, + License { + name: "IJG", + full_name: r#"Independent JPEG Group License"#, + index: 336, + flags: IS_FSF_LIBRE, + }, + License { + name: "IJG-short", + full_name: r#"Independent JPEG Group License - short"#, + index: 337, + flags: 0x0, + }, + License { + name: "IPA", + full_name: r#"IPA Font License"#, + index: 338, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "IPL-1.0", + full_name: r#"IBM Public License v1.0"#, + index: 339, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "ISC", + full_name: r#"ISC License"#, + index: 340, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "ISC-Veillard", + full_name: r#"ISC Veillard variant"#, + index: 341, + flags: 0x0, + }, + License { + name: "ImageMagick", + full_name: r#"ImageMagick License"#, + index: 342, + flags: 0x0, + }, + License { + name: "Imlib2", + full_name: r#"Imlib2 License"#, + index: 343, + flags: IS_FSF_LIBRE, + }, + License { + name: "Info-ZIP", + full_name: r#"Info-ZIP License"#, + index: 344, + flags: 0x0, + }, + License { + name: "Inner-Net-2.0", + full_name: r#"Inner Net License v2.0"#, + index: 345, + flags: 0x0, + }, + License { + name: "InnoSetup", + full_name: r#"Inno Setup License"#, + index: 346, + flags: 0x0, + }, + License { + name: "Intel", + full_name: r#"Intel Open Source License"#, + index: 347, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Intel-ACPI", + full_name: r#"Intel ACPI Software License Agreement"#, + index: 348, + flags: 0x0, + }, + License { + name: "Interbase-1.0", + full_name: r#"Interbase Public License v1.0"#, + index: 349, + flags: 0x0, + }, + License { + name: "JPL-image", + full_name: r#"JPL Image Use Policy"#, + index: 350, + flags: 0x0, + }, + License { + name: "JPNIC", + full_name: r#"Japan Network Information Center License"#, + index: 351, + flags: 0x0, + }, + License { + name: "JSON", + full_name: r#"JSON License"#, + index: 352, + flags: 0x0, + }, + License { + name: "Jam", + full_name: r#"Jam License"#, + index: 353, + flags: IS_OSI_APPROVED, + }, + License { + name: "JasPer-2.0", + full_name: r#"JasPer License"#, + index: 354, + flags: 0x0, + }, + License { + name: "Kastrup", + full_name: r#"Kastrup License"#, + index: 355, + flags: 0x0, + }, + License { + name: "Kazlib", + full_name: r#"Kazlib License"#, + index: 356, + flags: 0x0, + }, + License { + name: "Knuth-CTAN", + full_name: r#"Knuth CTAN License"#, + index: 357, + flags: 0x0, + }, + License { + name: "LAL-1.2", + full_name: r#"Licence Art Libre 1.2"#, + index: 358, + flags: 0x0, + }, + License { + name: "LAL-1.3", + full_name: r#"Licence Art Libre 1.3"#, + index: 359, + flags: 0x0, + }, + License { + name: "LGPL-2.0", + full_name: r#"GNU Library General Public License v2 only"#, + index: 360, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.0+", + full_name: r#"GNU Library General Public License v2 or later"#, + index: 361, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.0-only", + full_name: r#"GNU Library General Public License v2 only"#, + index: 362, + flags: IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.0-or-later", + full_name: r#"GNU Library General Public License v2 or later"#, + index: 363, + flags: IS_OSI_APPROVED | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.1", + full_name: r#"GNU Lesser General Public License v2.1 only"#, + index: 364, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.1+", + full_name: r#"GNU Lesser General Public License v2.1 or later"#, + index: 365, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.1-only", + full_name: r#"GNU Lesser General Public License v2.1 only"#, + index: 366, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-2.1-or-later", + full_name: r#"GNU Lesser General Public License v2.1 or later"#, + index: 367, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-3.0", + full_name: r#"GNU Lesser General Public License v3.0 only"#, + index: 368, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-3.0+", + full_name: r#"GNU Lesser General Public License v3.0 or later"#, + index: 369, + flags: IS_DEPRECATED | IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-3.0-only", + full_name: r#"GNU Lesser General Public License v3.0 only"#, + index: 370, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPL-3.0-or-later", + full_name: r#"GNU Lesser General Public License v3.0 or later"#, + index: 371, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT | IS_GNU, + }, + License { + name: "LGPLLR", + full_name: r#"Lesser General Public License For Linguistic Resources"#, + index: 372, + flags: 0x0, + }, + License { + name: "LOOP", + full_name: r#"Common Lisp LOOP License"#, + index: 373, + flags: 0x0, + }, + License { + name: "LPD-document", + full_name: r#"LPD Documentation License"#, + index: 374, + flags: 0x0, + }, + License { + name: "LPL-1.0", + full_name: r#"Lucent Public License Version 1.0"#, + index: 375, + flags: IS_OSI_APPROVED, + }, + License { + name: "LPL-1.02", + full_name: r#"Lucent Public License v1.02"#, + index: 376, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "LPPL-1.0", + full_name: r#"LaTeX Project Public License v1.0"#, + index: 377, + flags: 0x0, + }, + License { + name: "LPPL-1.1", + full_name: r#"LaTeX Project Public License v1.1"#, + index: 378, + flags: 0x0, + }, + License { + name: "LPPL-1.2", + full_name: r#"LaTeX Project Public License v1.2"#, + index: 379, + flags: IS_FSF_LIBRE, + }, + License { + name: "LPPL-1.3a", + full_name: r#"LaTeX Project Public License v1.3a"#, + index: 380, + flags: IS_FSF_LIBRE, + }, + License { + name: "LPPL-1.3c", + full_name: r#"LaTeX Project Public License v1.3c"#, + index: 381, + flags: IS_OSI_APPROVED, + }, + License { + name: "LZMA-SDK-9.11-to-9.20", + full_name: r#"LZMA SDK License (versions 9.11 to 9.20)"#, + index: 382, + flags: 0x0, + }, + License { + name: "LZMA-SDK-9.22", + full_name: r#"LZMA SDK License (versions 9.22 and beyond)"#, + index: 383, + flags: 0x0, + }, + License { + name: "Latex2e", + full_name: r#"Latex2e License"#, + index: 384, + flags: 0x0, + }, + License { + name: "Latex2e-translated-notice", + full_name: r#"Latex2e with translated notice permission"#, + index: 385, + flags: 0x0, + }, + License { + name: "Leptonica", + full_name: r#"Leptonica License"#, + index: 386, + flags: 0x0, + }, + License { + name: "LiLiQ-P-1.1", + full_name: r#"Licence Libre du Québec – Permissive version 1.1"#, + index: 387, + flags: IS_OSI_APPROVED, + }, + License { + name: "LiLiQ-R-1.1", + full_name: r#"Licence Libre du Québec – Réciprocité version 1.1"#, + index: 388, + flags: IS_OSI_APPROVED, + }, + License { + name: "LiLiQ-Rplus-1.1", + full_name: r#"Licence Libre du Québec – Réciprocité forte version 1.1"#, + index: 389, + flags: IS_OSI_APPROVED, + }, + License { + name: "Libpng", + full_name: r#"libpng License"#, + index: 390, + flags: 0x0, + }, + License { + name: "Linux-OpenIB", + full_name: r#"Linux Kernel Variant of OpenIB.org license"#, + index: 391, + flags: 0x0, + }, + License { + name: "Linux-man-pages-1-para", + full_name: r#"Linux man-pages - 1 paragraph"#, + index: 392, + flags: 0x0, + }, + License { + name: "Linux-man-pages-copyleft", + full_name: r#"Linux man-pages Copyleft"#, + index: 393, + flags: 0x0, + }, + License { + name: "Linux-man-pages-copyleft-2-para", + full_name: r#"Linux man-pages Copyleft - 2 paragraphs"#, + index: 394, + flags: 0x0, + }, + License { + name: "Linux-man-pages-copyleft-var", + full_name: r#"Linux man-pages Copyleft Variant"#, + index: 395, + flags: 0x0, + }, + License { + name: "Lucida-Bitmap-Fonts", + full_name: r#"Lucida Bitmap Fonts License"#, + index: 396, + flags: 0x0, + }, + License { + name: "MIPS", + full_name: r#"MIPS License"#, + index: 397, + flags: 0x0, + }, + License { + name: "MIT", + full_name: r#"MIT License"#, + index: 398, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "MIT-0", + full_name: r#"MIT No Attribution"#, + index: 399, + flags: IS_OSI_APPROVED, + }, + License { + name: "MIT-CMU", + full_name: r#"CMU License"#, + index: 400, + flags: 0x0, + }, + License { + name: "MIT-Click", + full_name: r#"MIT Click License"#, + index: 401, + flags: 0x0, + }, + License { + name: "MIT-Festival", + full_name: r#"MIT Festival Variant"#, + index: 402, + flags: 0x0, + }, + License { + name: "MIT-Khronos-old", + full_name: r#"MIT Khronos - old variant"#, + index: 403, + flags: 0x0, + }, + License { + name: "MIT-Modern-Variant", + full_name: r#"MIT License Modern Variant"#, + index: 404, + flags: IS_OSI_APPROVED, + }, + License { + name: "MIT-Wu", + full_name: r#"MIT Tom Wu Variant"#, + index: 405, + flags: 0x0, + }, + License { + name: "MIT-advertising", + full_name: r#"Enlightenment License (e16)"#, + index: 406, + flags: 0x0, + }, + License { + name: "MIT-enna", + full_name: r#"enna License"#, + index: 407, + flags: 0x0, + }, + License { + name: "MIT-feh", + full_name: r#"feh License"#, + index: 408, + flags: 0x0, + }, + License { + name: "MIT-open-group", + full_name: r#"MIT Open Group variant"#, + index: 409, + flags: 0x0, + }, + License { + name: "MIT-testregex", + full_name: r#"MIT testregex Variant"#, + index: 410, + flags: 0x0, + }, + License { + name: "MITNFA", + full_name: r#"MIT +no-false-attribs license"#, + index: 411, + flags: 0x0, + }, + License { + name: "MMIXware", + full_name: r#"MMIXware License"#, + index: 412, + flags: 0x0, + }, + License { + name: "MPEG-SSG", + full_name: r#"MPEG Software Simulation"#, + index: 413, + flags: 0x0, + }, + License { + name: "MPL-1.0", + full_name: r#"Mozilla Public License 1.0"#, + index: 414, + flags: IS_OSI_APPROVED | IS_COPYLEFT, + }, + License { + name: "MPL-1.1", + full_name: r#"Mozilla Public License 1.1"#, + index: 415, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "MPL-2.0", + full_name: r#"Mozilla Public License 2.0"#, + index: 416, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "MPL-2.0-no-copyleft-exception", + full_name: r#"Mozilla Public License 2.0 (no copyleft exception)"#, + index: 417, + flags: IS_OSI_APPROVED | IS_COPYLEFT, + }, + License { + name: "MS-LPL", + full_name: r#"Microsoft Limited Public License"#, + index: 418, + flags: 0x0, + }, + License { + name: "MS-PL", + full_name: r#"Microsoft Public License"#, + index: 419, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "MS-RL", + full_name: r#"Microsoft Reciprocal License"#, + index: 420, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "MTLL", + full_name: r#"Matrix Template Library License"#, + index: 421, + flags: 0x0, + }, + License { + name: "Mackerras-3-Clause", + full_name: r#"Mackerras 3-Clause License"#, + index: 422, + flags: 0x0, + }, + License { + name: "Mackerras-3-Clause-acknowledgment", + full_name: r#"Mackerras 3-Clause - acknowledgment variant"#, + index: 423, + flags: 0x0, + }, + License { + name: "MakeIndex", + full_name: r#"MakeIndex License"#, + index: 424, + flags: 0x0, + }, + License { + name: "Martin-Birgmeier", + full_name: r#"Martin Birgmeier License"#, + index: 425, + flags: 0x0, + }, + License { + name: "McPhee-slideshow", + full_name: r#"McPhee Slideshow License"#, + index: 426, + flags: 0x0, + }, + License { + name: "Minpack", + full_name: r#"Minpack License"#, + index: 427, + flags: 0x0, + }, + License { + name: "MirOS", + full_name: r#"The MirOS Licence"#, + index: 428, + flags: IS_OSI_APPROVED, + }, + License { + name: "Motosoto", + full_name: r#"Motosoto License"#, + index: 429, + flags: IS_OSI_APPROVED, + }, + License { + name: "MulanPSL-1.0", + full_name: r#"Mulan Permissive Software License, Version 1"#, + index: 430, + flags: 0x0, + }, + License { + name: "MulanPSL-2.0", + full_name: r#"Mulan Permissive Software License, Version 2"#, + index: 431, + flags: IS_OSI_APPROVED, + }, + License { + name: "Multics", + full_name: r#"Multics License"#, + index: 432, + flags: IS_OSI_APPROVED, + }, + License { + name: "Mup", + full_name: r#"Mup License"#, + index: 433, + flags: 0x0, + }, + License { + name: "NAIST-2003", + full_name: r#"Nara Institute of Science and Technology License (2003)"#, + index: 434, + flags: 0x0, + }, + License { + name: "NASA-1.3", + full_name: r#"NASA Open Source Agreement 1.3"#, + index: 435, + flags: IS_OSI_APPROVED, + }, + License { + name: "NBPL-1.0", + full_name: r#"Net Boolean Public License v1"#, + index: 436, + flags: 0x0, + }, + License { + name: "NCBI-PD", + full_name: r#"NCBI Public Domain Notice"#, + index: 437, + flags: 0x0, + }, + License { + name: "NCGL-UK-2.0", + full_name: r#"Non-Commercial Government Licence"#, + index: 438, + flags: 0x0, + }, + License { + name: "NCL", + full_name: r#"NCL Source Code License"#, + index: 439, + flags: 0x0, + }, + License { + name: "NCSA", + full_name: r#"University of Illinois/NCSA Open Source License"#, + index: 440, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "NGPL", + full_name: r#"Nethack General Public License"#, + index: 441, + flags: IS_OSI_APPROVED, + }, + License { + name: "NICTA-1.0", + full_name: r#"NICTA Public Software License, Version 1.0"#, + index: 442, + flags: 0x0, + }, + License { + name: "NIST-PD", + full_name: r#"NIST Public Domain Notice"#, + index: 443, + flags: 0x0, + }, + License { + name: "NIST-PD-fallback", + full_name: r#"NIST Public Domain Notice with license fallback"#, + index: 444, + flags: 0x0, + }, + License { + name: "NIST-Software", + full_name: r#"NIST Software License"#, + index: 445, + flags: 0x0, + }, + License { + name: "NLOD-1.0", + full_name: r#"Norwegian Licence for Open Government Data (NLOD) 1.0"#, + index: 446, + flags: 0x0, + }, + License { + name: "NLOD-2.0", + full_name: r#"Norwegian Licence for Open Government Data (NLOD) 2.0"#, + index: 447, + flags: 0x0, + }, + License { + name: "NLPL", + full_name: r#"No Limit Public License"#, + index: 448, + flags: 0x0, + }, + License { + name: "NOASSERTION", + full_name: r#"NOASSERTION"#, + index: 449, + flags: 0x0, + }, + License { + name: "NOSL", + full_name: r#"Netizen Open Source License"#, + index: 450, + flags: IS_FSF_LIBRE, + }, + License { + name: "NPL-1.0", + full_name: r#"Netscape Public License v1.0"#, + index: 451, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "NPL-1.1", + full_name: r#"Netscape Public License v1.1"#, + index: 452, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "NPOSL-3.0", + full_name: r#"Non-Profit Open Software License 3.0"#, + index: 453, + flags: IS_OSI_APPROVED, + }, + License { + name: "NRL", + full_name: r#"NRL License"#, + index: 454, + flags: 0x0, + }, + License { + name: "NTIA-PD", + full_name: r#"NTIA Public Domain Notice"#, + index: 455, + flags: 0x0, + }, + License { + name: "NTP", + full_name: r#"NTP License"#, + index: 456, + flags: IS_OSI_APPROVED, + }, + License { + name: "NTP-0", + full_name: r#"NTP No Attribution"#, + index: 457, + flags: 0x0, + }, + License { + name: "Naumen", + full_name: r#"Naumen Public License"#, + index: 458, + flags: IS_OSI_APPROVED, + }, + License { + name: "Net-SNMP", + full_name: r#"Net-SNMP License"#, + index: 459, + flags: IS_DEPRECATED, + }, + License { + name: "NetCDF", + full_name: r#"NetCDF license"#, + index: 460, + flags: 0x0, + }, + License { + name: "Newsletr", + full_name: r#"Newsletr License"#, + index: 461, + flags: 0x0, + }, + License { + name: "Nokia", + full_name: r#"Nokia Open Source License"#, + index: 462, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Noweb", + full_name: r#"Noweb License"#, + index: 463, + flags: 0x0, + }, + License { + name: "Nunit", + full_name: r#"Nunit License"#, + index: 464, + flags: IS_DEPRECATED | IS_FSF_LIBRE, + }, + License { + name: "O-UDA-1.0", + full_name: r#"Open Use of Data Agreement v1.0"#, + index: 465, + flags: 0x0, + }, + License { + name: "OAR", + full_name: r#"OAR License"#, + index: 466, + flags: 0x0, + }, + License { + name: "OCCT-PL", + full_name: r#"Open CASCADE Technology Public License"#, + index: 467, + flags: 0x0, + }, + License { + name: "OCLC-2.0", + full_name: r#"OCLC Research Public License 2.0"#, + index: 468, + flags: IS_OSI_APPROVED, + }, + License { + name: "ODC-By-1.0", + full_name: r#"Open Data Commons Attribution License v1.0"#, + index: 469, + flags: 0x0, + }, + License { + name: "ODbL-1.0", + full_name: r#"Open Data Commons Open Database License v1.0"#, + index: 470, + flags: IS_FSF_LIBRE, + }, + License { + name: "OFFIS", + full_name: r#"OFFIS License"#, + index: 471, + flags: 0x0, + }, + License { + name: "OFL-1.0", + full_name: r#"SIL Open Font License 1.0"#, + index: 472, + flags: IS_FSF_LIBRE, + }, + License { + name: "OFL-1.0-RFN", + full_name: r#"SIL Open Font License 1.0 with Reserved Font Name"#, + index: 473, + flags: 0x0, + }, + License { + name: "OFL-1.0-no-RFN", + full_name: r#"SIL Open Font License 1.0 with no Reserved Font Name"#, + index: 474, + flags: 0x0, + }, + License { + name: "OFL-1.1", + full_name: r#"SIL Open Font License 1.1"#, + index: 475, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "OFL-1.1-RFN", + full_name: r#"SIL Open Font License 1.1 with Reserved Font Name"#, + index: 476, + flags: IS_OSI_APPROVED, + }, + License { + name: "OFL-1.1-no-RFN", + full_name: r#"SIL Open Font License 1.1 with no Reserved Font Name"#, + index: 477, + flags: IS_OSI_APPROVED, + }, + License { + name: "OGC-1.0", + full_name: r#"OGC Software License, Version 1.0"#, + index: 478, + flags: 0x0, + }, + License { + name: "OGDL-Taiwan-1.0", + full_name: r#"Taiwan Open Government Data License, version 1.0"#, + index: 479, + flags: 0x0, + }, + License { + name: "OGL-Canada-2.0", + full_name: r#"Open Government Licence - Canada"#, + index: 480, + flags: 0x0, + }, + License { + name: "OGL-UK-1.0", + full_name: r#"Open Government Licence v1.0"#, + index: 481, + flags: 0x0, + }, + License { + name: "OGL-UK-2.0", + full_name: r#"Open Government Licence v2.0"#, + index: 482, + flags: 0x0, + }, + License { + name: "OGL-UK-3.0", + full_name: r#"Open Government Licence v3.0"#, + index: 483, + flags: 0x0, + }, + License { + name: "OGTSL", + full_name: r#"Open Group Test Suite License"#, + index: 484, + flags: IS_OSI_APPROVED, + }, + License { + name: "OLDAP-1.1", + full_name: r#"Open LDAP Public License v1.1"#, + index: 485, + flags: 0x0, + }, + License { + name: "OLDAP-1.2", + full_name: r#"Open LDAP Public License v1.2"#, + index: 486, + flags: 0x0, + }, + License { + name: "OLDAP-1.3", + full_name: r#"Open LDAP Public License v1.3"#, + index: 487, + flags: 0x0, + }, + License { + name: "OLDAP-1.4", + full_name: r#"Open LDAP Public License v1.4"#, + index: 488, + flags: 0x0, + }, + License { + name: "OLDAP-2.0", + full_name: r#"Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)"#, + index: 489, + flags: 0x0, + }, + License { + name: "OLDAP-2.0.1", + full_name: r#"Open LDAP Public License v2.0.1"#, + index: 490, + flags: 0x0, + }, + License { + name: "OLDAP-2.1", + full_name: r#"Open LDAP Public License v2.1"#, + index: 491, + flags: 0x0, + }, + License { + name: "OLDAP-2.2", + full_name: r#"Open LDAP Public License v2.2"#, + index: 492, + flags: 0x0, + }, + License { + name: "OLDAP-2.2.1", + full_name: r#"Open LDAP Public License v2.2.1"#, + index: 493, + flags: 0x0, + }, + License { + name: "OLDAP-2.2.2", + full_name: r#"Open LDAP Public License 2.2.2"#, + index: 494, + flags: 0x0, + }, + License { + name: "OLDAP-2.3", + full_name: r#"Open LDAP Public License v2.3"#, + index: 495, + flags: IS_FSF_LIBRE, + }, + License { + name: "OLDAP-2.4", + full_name: r#"Open LDAP Public License v2.4"#, + index: 496, + flags: 0x0, + }, + License { + name: "OLDAP-2.5", + full_name: r#"Open LDAP Public License v2.5"#, + index: 497, + flags: 0x0, + }, + License { + name: "OLDAP-2.6", + full_name: r#"Open LDAP Public License v2.6"#, + index: 498, + flags: 0x0, + }, + License { + name: "OLDAP-2.7", + full_name: r#"Open LDAP Public License v2.7"#, + index: 499, + flags: IS_FSF_LIBRE, + }, + License { + name: "OLDAP-2.8", + full_name: r#"Open LDAP Public License v2.8"#, + index: 500, + flags: IS_OSI_APPROVED, + }, + License { + name: "OLFL-1.3", + full_name: r#"Open Logistics Foundation License Version 1.3"#, + index: 501, + flags: IS_OSI_APPROVED, + }, + License { + name: "OML", + full_name: r#"Open Market License"#, + index: 502, + flags: 0x0, + }, + License { + name: "OPL-1.0", + full_name: r#"Open Public License v1.0"#, + index: 503, + flags: 0x0, + }, + License { + name: "OPL-UK-3.0", + full_name: r#"United Kingdom Open Parliament Licence v3.0"#, + index: 504, + flags: 0x0, + }, + License { + name: "OPUBL-1.0", + full_name: r#"Open Publication License v1.0"#, + index: 505, + flags: 0x0, + }, + License { + name: "OSET-PL-2.1", + full_name: r#"OSET Public License version 2.1"#, + index: 506, + flags: IS_OSI_APPROVED, + }, + License { + name: "OSL-1.0", + full_name: r#"Open Software License 1.0"#, + index: 507, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "OSL-1.1", + full_name: r#"Open Software License 1.1"#, + index: 508, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "OSL-2.0", + full_name: r#"Open Software License 2.0"#, + index: 509, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "OSL-2.1", + full_name: r#"Open Software License 2.1"#, + index: 510, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "OSL-3.0", + full_name: r#"Open Software License 3.0"#, + index: 511, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "OpenPBS-2.3", + full_name: r#"OpenPBS v2.3 Software License"#, + index: 512, + flags: 0x0, + }, + License { + name: "OpenSSL", + full_name: r#"OpenSSL License"#, + index: 513, + flags: IS_FSF_LIBRE, + }, + License { + name: "OpenSSL-standalone", + full_name: r#"OpenSSL License - standalone"#, + index: 514, + flags: 0x0, + }, + License { + name: "OpenVision", + full_name: r#"OpenVision License"#, + index: 515, + flags: 0x0, + }, + License { + name: "PADL", + full_name: r#"PADL License"#, + index: 516, + flags: 0x0, + }, + License { + name: "PDDL-1.0", + full_name: r#"Open Data Commons Public Domain Dedication & License 1.0"#, + index: 517, + flags: 0x0, + }, + License { + name: "PHP-3.0", + full_name: r#"PHP License v3.0"#, + index: 518, + flags: IS_OSI_APPROVED, + }, + License { + name: "PHP-3.01", + full_name: r#"PHP License v3.01"#, + index: 519, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "PPL", + full_name: r#"Peer Production License"#, + index: 520, + flags: 0x0, + }, + License { + name: "PSF-2.0", + full_name: r#"Python Software Foundation License 2.0"#, + index: 521, + flags: 0x0, + }, + License { + name: "Parity-6.0.0", + full_name: r#"The Parity Public License 6.0.0"#, + index: 522, + flags: IS_COPYLEFT, + }, + License { + name: "Parity-7.0.0", + full_name: r#"The Parity Public License 7.0.0"#, + index: 523, + flags: 0x0, + }, + License { + name: "Pixar", + full_name: r#"Pixar License"#, + index: 524, + flags: 0x0, + }, + License { + name: "Plexus", + full_name: r#"Plexus Classworlds License"#, + index: 525, + flags: 0x0, + }, + License { + name: "PolyForm-Noncommercial-1.0.0", + full_name: r#"PolyForm Noncommercial License 1.0.0"#, + index: 526, + flags: 0x0, + }, + License { + name: "PolyForm-Small-Business-1.0.0", + full_name: r#"PolyForm Small Business License 1.0.0"#, + index: 527, + flags: 0x0, + }, + License { + name: "PostgreSQL", + full_name: r#"PostgreSQL License"#, + index: 528, + flags: IS_OSI_APPROVED, + }, + License { + name: "Python-2.0", + full_name: r#"Python License 2.0"#, + index: 529, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Python-2.0.1", + full_name: r#"Python License 2.0.1"#, + index: 530, + flags: 0x0, + }, + License { + name: "QPL-1.0", + full_name: r#"Q Public License 1.0"#, + index: 531, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "QPL-1.0-INRIA-2004", + full_name: r#"Q Public License 1.0 - INRIA 2004 variant"#, + index: 532, + flags: 0x0, + }, + License { + name: "Qhull", + full_name: r#"Qhull License"#, + index: 533, + flags: 0x0, + }, + License { + name: "RHeCos-1.1", + full_name: r#"Red Hat eCos Public License v1.1"#, + index: 534, + flags: 0x0, + }, + License { + name: "RPL-1.1", + full_name: r#"Reciprocal Public License 1.1"#, + index: 535, + flags: IS_OSI_APPROVED, + }, + License { + name: "RPL-1.5", + full_name: r#"Reciprocal Public License 1.5"#, + index: 536, + flags: IS_OSI_APPROVED, + }, + License { + name: "RPSL-1.0", + full_name: r#"RealNetworks Public Source License v1.0"#, + index: 537, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "RSA-MD", + full_name: r#"RSA Message-Digest License"#, + index: 538, + flags: 0x0, + }, + License { + name: "RSCPL", + full_name: r#"Ricoh Source Code Public License"#, + index: 539, + flags: IS_OSI_APPROVED, + }, + License { + name: "Rdisc", + full_name: r#"Rdisc License"#, + index: 540, + flags: 0x0, + }, + License { + name: "Ruby", + full_name: r#"Ruby License"#, + index: 541, + flags: IS_FSF_LIBRE, + }, + License { + name: "Ruby-pty", + full_name: r#"Ruby pty extension license"#, + index: 542, + flags: 0x0, + }, + License { + name: "SAX-PD", + full_name: r#"Sax Public Domain Notice"#, + index: 543, + flags: 0x0, + }, + License { + name: "SAX-PD-2.0", + full_name: r#"Sax Public Domain Notice 2.0"#, + index: 544, + flags: 0x0, + }, + License { + name: "SCEA", + full_name: r#"SCEA Shared Source License"#, + index: 545, + flags: 0x0, + }, + License { + name: "SGI-B-1.0", + full_name: r#"SGI Free Software License B v1.0"#, + index: 546, + flags: 0x0, + }, + License { + name: "SGI-B-1.1", + full_name: r#"SGI Free Software License B v1.1"#, + index: 547, + flags: 0x0, + }, + License { + name: "SGI-B-2.0", + full_name: r#"SGI Free Software License B v2.0"#, + index: 548, + flags: IS_FSF_LIBRE, + }, + License { + name: "SGI-OpenGL", + full_name: r#"SGI OpenGL License"#, + index: 549, + flags: 0x0, + }, + License { + name: "SGP4", + full_name: r#"SGP4 Permission Notice"#, + index: 550, + flags: 0x0, + }, + License { + name: "SHL-0.5", + full_name: r#"Solderpad Hardware License v0.5"#, + index: 551, + flags: 0x0, + }, + License { + name: "SHL-0.51", + full_name: r#"Solderpad Hardware License, Version 0.51"#, + index: 552, + flags: 0x0, + }, + License { + name: "SISSL", + full_name: r#"Sun Industry Standards Source License v1.1"#, + index: 553, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "SISSL-1.2", + full_name: r#"Sun Industry Standards Source License v1.2"#, + index: 554, + flags: 0x0, + }, + License { + name: "SL", + full_name: r#"SL License"#, + index: 555, + flags: 0x0, + }, + License { + name: "SMAIL-GPL", + full_name: r#"SMAIL General Public License"#, + index: 556, + flags: 0x0, + }, + License { + name: "SMLNJ", + full_name: r#"Standard ML of New Jersey License"#, + index: 557, + flags: IS_FSF_LIBRE, + }, + License { + name: "SMPPL", + full_name: r#"Secure Messaging Protocol Public License"#, + index: 558, + flags: 0x0, + }, + License { + name: "SNIA", + full_name: r#"SNIA Public License 1.1"#, + index: 559, + flags: 0x0, + }, + License { + name: "SOFA", + full_name: r#"SOFA Software License"#, + index: 560, + flags: 0x0, + }, + License { + name: "SPL-1.0", + full_name: r#"Sun Public License v1.0"#, + index: 561, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "SSH-OpenSSH", + full_name: r#"SSH OpenSSH license"#, + index: 562, + flags: 0x0, + }, + License { + name: "SSH-short", + full_name: r#"SSH short notice"#, + index: 563, + flags: 0x0, + }, + License { + name: "SSLeay-standalone", + full_name: r#"SSLeay License - standalone"#, + index: 564, + flags: 0x0, + }, + License { + name: "SSPL-1.0", + full_name: r#"Server Side Public License, v 1"#, + index: 565, + flags: 0x0, + }, + License { + name: "SUL-1.0", + full_name: r#"Sustainable Use License v1.0"#, + index: 566, + flags: 0x0, + }, + License { + name: "SWL", + full_name: r#"Scheme Widget Library (SWL) Software License Agreement"#, + index: 567, + flags: 0x0, + }, + License { + name: "Saxpath", + full_name: r#"Saxpath License"#, + index: 568, + flags: 0x0, + }, + License { + name: "SchemeReport", + full_name: r#"Scheme Language Report License"#, + index: 569, + flags: 0x0, + }, + License { + name: "Sendmail", + full_name: r#"Sendmail License"#, + index: 570, + flags: 0x0, + }, + License { + name: "Sendmail-8.23", + full_name: r#"Sendmail License 8.23"#, + index: 571, + flags: 0x0, + }, + License { + name: "Sendmail-Open-Source-1.1", + full_name: r#"Sendmail Open Source License v1.1"#, + index: 572, + flags: 0x0, + }, + License { + name: "SimPL-2.0", + full_name: r#"Simple Public License 2.0"#, + index: 573, + flags: IS_OSI_APPROVED, + }, + License { + name: "Sleepycat", + full_name: r#"Sleepycat License"#, + index: 574, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Soundex", + full_name: r#"Soundex License"#, + index: 575, + flags: 0x0, + }, + License { + name: "Spencer-86", + full_name: r#"Spencer License 86"#, + index: 576, + flags: 0x0, + }, + License { + name: "Spencer-94", + full_name: r#"Spencer License 94"#, + index: 577, + flags: 0x0, + }, + License { + name: "Spencer-99", + full_name: r#"Spencer License 99"#, + index: 578, + flags: 0x0, + }, + License { + name: "StandardML-NJ", + full_name: r#"Standard ML of New Jersey License"#, + index: 579, + flags: IS_DEPRECATED | IS_FSF_LIBRE, + }, + License { + name: "SugarCRM-1.1.3", + full_name: r#"SugarCRM Public License v1.1.3"#, + index: 580, + flags: 0x0, + }, + License { + name: "Sun-PPP", + full_name: r#"Sun PPP License"#, + index: 581, + flags: 0x0, + }, + License { + name: "Sun-PPP-2000", + full_name: r#"Sun PPP License (2000)"#, + index: 582, + flags: 0x0, + }, + License { + name: "SunPro", + full_name: r#"SunPro License"#, + index: 583, + flags: 0x0, + }, + License { + name: "Symlinks", + full_name: r#"Symlinks License"#, + index: 584, + flags: 0x0, + }, + License { + name: "TAPR-OHL-1.0", + full_name: r#"TAPR Open Hardware License v1.0"#, + index: 585, + flags: 0x0, + }, + License { + name: "TCL", + full_name: r#"TCL/TK License"#, + index: 586, + flags: 0x0, + }, + License { + name: "TCP-wrappers", + full_name: r#"TCP Wrappers License"#, + index: 587, + flags: 0x0, + }, + License { + name: "TGPPL-1.0", + full_name: r#"Transitive Grace Period Public Licence 1.0"#, + index: 588, + flags: 0x0, + }, + License { + name: "TMate", + full_name: r#"TMate Open Source License"#, + index: 589, + flags: 0x0, + }, + License { + name: "TORQUE-1.1", + full_name: r#"TORQUE v2.5+ Software License v1.1"#, + index: 590, + flags: 0x0, + }, + License { + name: "TOSL", + full_name: r#"Trusster Open Source License"#, + index: 591, + flags: 0x0, + }, + License { + name: "TPDL", + full_name: r#"Time::ParseDate License"#, + index: 592, + flags: 0x0, + }, + License { + name: "TPL-1.0", + full_name: r#"THOR Public License 1.0"#, + index: 593, + flags: 0x0, + }, + License { + name: "TTWL", + full_name: r#"Text-Tabs+Wrap License"#, + index: 594, + flags: 0x0, + }, + License { + name: "TTYP0", + full_name: r#"TTYP0 License"#, + index: 595, + flags: 0x0, + }, + License { + name: "TU-Berlin-1.0", + full_name: r#"Technische Universitaet Berlin License 1.0"#, + index: 596, + flags: 0x0, + }, + License { + name: "TU-Berlin-2.0", + full_name: r#"Technische Universitaet Berlin License 2.0"#, + index: 597, + flags: 0x0, + }, + License { + name: "TermReadKey", + full_name: r#"TermReadKey License"#, + index: 598, + flags: 0x0, + }, + License { + name: "ThirdEye", + full_name: r#"ThirdEye License"#, + index: 599, + flags: 0x0, + }, + License { + name: "TrustedQSL", + full_name: r#"TrustedQSL License"#, + index: 600, + flags: 0x0, + }, + License { + name: "UCAR", + full_name: r#"UCAR License"#, + index: 601, + flags: 0x0, + }, + License { + name: "UCL-1.0", + full_name: r#"Upstream Compatibility License v1.0"#, + index: 602, + flags: IS_OSI_APPROVED, + }, + License { + name: "UMich-Merit", + full_name: r#"Michigan/Merit Networks License"#, + index: 603, + flags: 0x0, + }, + License { + name: "UPL-1.0", + full_name: r#"Universal Permissive License v1.0"#, + index: 604, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "URT-RLE", + full_name: r#"Utah Raster Toolkit Run Length Encoded License"#, + index: 605, + flags: 0x0, + }, + License { + name: "Ubuntu-font-1.0", + full_name: r#"Ubuntu Font Licence v1.0"#, + index: 606, + flags: 0x0, + }, + License { + name: "Unicode-3.0", + full_name: r#"Unicode License v3"#, + index: 607, + flags: IS_OSI_APPROVED, + }, + License { + name: "Unicode-DFS-2015", + full_name: r#"Unicode License Agreement - Data Files and Software (2015)"#, + index: 608, + flags: 0x0, + }, + License { + name: "Unicode-DFS-2016", + full_name: r#"Unicode License Agreement - Data Files and Software (2016)"#, + index: 609, + flags: IS_OSI_APPROVED, + }, + License { + name: "Unicode-TOU", + full_name: r#"Unicode Terms of Use"#, + index: 610, + flags: 0x0, + }, + License { + name: "UnixCrypt", + full_name: r#"UnixCrypt License"#, + index: 611, + flags: 0x0, + }, + License { + name: "Unlicense", + full_name: r#"The Unlicense"#, + index: 612, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Unlicense-libtelnet", + full_name: r#"Unlicense - libtelnet variant"#, + index: 613, + flags: 0x0, + }, + License { + name: "Unlicense-libwhirlpool", + full_name: r#"Unlicense - libwhirlpool variant"#, + index: 614, + flags: 0x0, + }, + License { + name: "VOSTROM", + full_name: r#"VOSTROM Public License for Open Source"#, + index: 615, + flags: 0x0, + }, + License { + name: "VSL-1.0", + full_name: r#"Vovida Software License v1.0"#, + index: 616, + flags: IS_OSI_APPROVED, + }, + License { + name: "Vim", + full_name: r#"Vim License"#, + index: 617, + flags: IS_FSF_LIBRE, + }, + License { + name: "W3C", + full_name: r#"W3C Software Notice and License (2002-12-31)"#, + index: 618, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "W3C-19980720", + full_name: r#"W3C Software Notice and License (1998-07-20)"#, + index: 619, + flags: 0x0, + }, + License { + name: "W3C-20150513", + full_name: r#"W3C Software Notice and Document License (2015-05-13)"#, + index: 620, + flags: IS_OSI_APPROVED, + }, + License { + name: "WTFPL", + full_name: r#"Do What The F*ck You Want To Public License"#, + index: 621, + flags: IS_FSF_LIBRE, + }, + License { + name: "Watcom-1.0", + full_name: r#"Sybase Open Watcom Public License 1.0"#, + index: 622, + flags: IS_OSI_APPROVED, + }, + License { + name: "Widget-Workshop", + full_name: r#"Widget Workshop License"#, + index: 623, + flags: 0x0, + }, + License { + name: "Wsuipa", + full_name: r#"Wsuipa License"#, + index: 624, + flags: 0x0, + }, + License { + name: "X11", + full_name: r#"X11 License"#, + index: 625, + flags: IS_FSF_LIBRE, + }, + License { + name: "X11-distribute-modifications-variant", + full_name: r#"X11 License Distribution Modification Variant"#, + index: 626, + flags: 0x0, + }, + License { + name: "X11-swapped", + full_name: r#"X11 swapped final paragraphs"#, + index: 627, + flags: 0x0, + }, + License { + name: "XFree86-1.1", + full_name: r#"XFree86 License 1.1"#, + index: 628, + flags: IS_FSF_LIBRE, + }, + License { + name: "XSkat", + full_name: r#"XSkat License"#, + index: 629, + flags: 0x0, + }, + License { + name: "Xdebug-1.03", + full_name: r#"Xdebug License v 1.03"#, + index: 630, + flags: 0x0, + }, + License { + name: "Xerox", + full_name: r#"Xerox License"#, + index: 631, + flags: 0x0, + }, + License { + name: "Xfig", + full_name: r#"Xfig License"#, + index: 632, + flags: 0x0, + }, + License { + name: "Xnet", + full_name: r#"X.Net License"#, + index: 633, + flags: IS_OSI_APPROVED, + }, + License { + name: "YPL-1.0", + full_name: r#"Yahoo! Public License v1.0"#, + index: 634, + flags: 0x0, + }, + License { + name: "YPL-1.1", + full_name: r#"Yahoo! Public License v1.1"#, + index: 635, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "ZPL-1.1", + full_name: r#"Zope Public License 1.1"#, + index: 636, + flags: 0x0, + }, + License { + name: "ZPL-2.0", + full_name: r#"Zope Public License 2.0"#, + index: 637, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "ZPL-2.1", + full_name: r#"Zope Public License 2.1"#, + index: 638, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "Zed", + full_name: r#"Zed License"#, + index: 639, + flags: 0x0, + }, + License { + name: "Zeeff", + full_name: r#"Zeeff License"#, + index: 640, + flags: 0x0, + }, + License { + name: "Zend-2.0", + full_name: r#"Zend License v2.0"#, + index: 641, + flags: IS_FSF_LIBRE, + }, + License { + name: "Zimbra-1.3", + full_name: r#"Zimbra Public License v1.3"#, + index: 642, + flags: IS_FSF_LIBRE, + }, + License { + name: "Zimbra-1.4", + full_name: r#"Zimbra Public License v1.4"#, + index: 643, + flags: 0x0, + }, + License { + name: "Zlib", + full_name: r#"zlib License"#, + index: 644, + flags: IS_OSI_APPROVED | IS_FSF_LIBRE, + }, + License { + name: "any-OSI", + full_name: r#"Any OSI License"#, + index: 645, + flags: 0x0, + }, + License { + name: "any-OSI-perl-modules", + full_name: r#"Any OSI License - Perl Modules"#, + index: 646, + flags: 0x0, + }, + License { + name: "bcrypt-Solar-Designer", + full_name: r#"bcrypt Solar Designer License"#, + index: 647, + flags: 0x0, + }, + License { + name: "blessing", + full_name: r#"SQLite Blessing"#, + index: 648, + flags: 0x0, + }, + License { + name: "bzip2-1.0.5", + full_name: r#"bzip2 and libbzip2 License v1.0.5"#, + index: 649, + flags: IS_DEPRECATED, + }, + License { + name: "bzip2-1.0.6", + full_name: r#"bzip2 and libbzip2 License v1.0.6"#, + index: 650, + flags: 0x0, + }, + License { + name: "check-cvs", + full_name: r#"check-cvs License"#, + index: 651, + flags: 0x0, + }, + License { + name: "checkmk", + full_name: r#"Checkmk License"#, + index: 652, + flags: 0x0, + }, + License { + name: "copyleft-next-0.3.0", + full_name: r#"copyleft-next 0.3.0"#, + index: 653, + flags: 0x0, + }, + License { + name: "copyleft-next-0.3.1", + full_name: r#"copyleft-next 0.3.1"#, + index: 654, + flags: 0x0, + }, + License { + name: "curl", + full_name: r#"curl License"#, + index: 655, + flags: 0x0, + }, + License { + name: "cve-tou", + full_name: r#"Common Vulnerability Enumeration ToU License"#, + index: 656, + flags: 0x0, + }, + License { + name: "diffmark", + full_name: r#"diffmark license"#, + index: 657, + flags: 0x0, + }, + License { + name: "dtoa", + full_name: r#"David M. Gay dtoa License"#, + index: 658, + flags: 0x0, + }, + License { + name: "dvipdfm", + full_name: r#"dvipdfm License"#, + index: 659, + flags: 0x0, + }, + License { + name: "eCos-2.0", + full_name: r#"eCos license version 2.0"#, + index: 660, + flags: IS_DEPRECATED | IS_FSF_LIBRE, + }, + License { + name: "eGenix", + full_name: r#"eGenix.com Public License 1.1.0"#, + index: 661, + flags: 0x0, + }, + License { + name: "etalab-2.0", + full_name: r#"Etalab Open License 2.0"#, + index: 662, + flags: 0x0, + }, + License { + name: "fwlw", + full_name: r#"fwlw License"#, + index: 663, + flags: 0x0, + }, + License { + name: "gSOAP-1.3b", + full_name: r#"gSOAP Public License v1.3b"#, + index: 664, + flags: 0x0, + }, + License { + name: "generic-xts", + full_name: r#"Generic XTS License"#, + index: 665, + flags: 0x0, + }, + License { + name: "gnuplot", + full_name: r#"gnuplot License"#, + index: 666, + flags: IS_FSF_LIBRE, + }, + License { + name: "gtkbook", + full_name: r#"gtkbook License"#, + index: 667, + flags: 0x0, + }, + License { + name: "hdparm", + full_name: r#"hdparm License"#, + index: 668, + flags: 0x0, + }, + License { + name: "iMatix", + full_name: r#"iMatix Standard Function Library Agreement"#, + index: 669, + flags: IS_FSF_LIBRE, + }, + License { + name: "jove", + full_name: r#"Jove License"#, + index: 670, + flags: 0x0, + }, + License { + name: "libpng-1.6.35", + full_name: r#"PNG Reference Library License v1 (for libpng 0.5 through 1.6.35)"#, + index: 671, + flags: 0x0, + }, + License { + name: "libpng-2.0", + full_name: r#"PNG Reference Library version 2"#, + index: 672, + flags: 0x0, + }, + License { + name: "libselinux-1.0", + full_name: r#"libselinux public domain notice"#, + index: 673, + flags: 0x0, + }, + License { + name: "libtiff", + full_name: r#"libtiff License"#, + index: 674, + flags: 0x0, + }, + License { + name: "libutil-David-Nugent", + full_name: r#"libutil David Nugent License"#, + index: 675, + flags: 0x0, + }, + License { + name: "lsof", + full_name: r#"lsof License"#, + index: 676, + flags: 0x0, + }, + License { + name: "magaz", + full_name: r#"magaz License"#, + index: 677, + flags: 0x0, + }, + License { + name: "mailprio", + full_name: r#"mailprio License"#, + index: 678, + flags: 0x0, + }, + License { + name: "man2html", + full_name: r#"man2html License"#, + index: 679, + flags: 0x0, + }, + License { + name: "metamail", + full_name: r#"metamail License"#, + index: 680, + flags: 0x0, + }, + License { + name: "mpi-permissive", + full_name: r#"mpi Permissive License"#, + index: 681, + flags: 0x0, + }, + License { + name: "mpich2", + full_name: r#"mpich2 License"#, + index: 682, + flags: 0x0, + }, + License { + name: "mplus", + full_name: r#"mplus Font License"#, + index: 683, + flags: 0x0, + }, + License { + name: "ngrep", + full_name: r#"ngrep License"#, + index: 684, + flags: 0x0, + }, + License { + name: "pkgconf", + full_name: r#"pkgconf License"#, + index: 685, + flags: 0x0, + }, + License { + name: "pnmstitch", + full_name: r#"pnmstitch License"#, + index: 686, + flags: 0x0, + }, + License { + name: "psfrag", + full_name: r#"psfrag License"#, + index: 687, + flags: 0x0, + }, + License { + name: "psutils", + full_name: r#"psutils License"#, + index: 688, + flags: 0x0, + }, + License { + name: "python-ldap", + full_name: r#"Python ldap License"#, + index: 689, + flags: 0x0, + }, + License { + name: "radvd", + full_name: r#"radvd License"#, + index: 690, + flags: 0x0, + }, + License { + name: "snprintf", + full_name: r#"snprintf License"#, + index: 691, + flags: 0x0, + }, + License { + name: "softSurfer", + full_name: r#"softSurfer License"#, + index: 692, + flags: 0x0, + }, + License { + name: "ssh-keyscan", + full_name: r#"ssh-keyscan License"#, + index: 693, + flags: 0x0, + }, + License { + name: "swrule", + full_name: r#"swrule License"#, + index: 694, + flags: 0x0, + }, + License { + name: "threeparttable", + full_name: r#"threeparttable License"#, + index: 695, + flags: 0x0, + }, + License { + name: "ulem", + full_name: r#"ulem License"#, + index: 696, + flags: 0x0, + }, + License { + name: "w3m", + full_name: r#"w3m License"#, + index: 697, + flags: 0x0, + }, + License { + name: "wwl", + full_name: r#"WWL License"#, + index: 698, + flags: 0x0, + }, + License { + name: "wxWindows", + full_name: r#"wxWindows Library License"#, + index: 699, + flags: IS_DEPRECATED | IS_OSI_APPROVED, + }, + License { + name: "xinetd", + full_name: r#"xinetd License"#, + index: 700, + flags: IS_FSF_LIBRE | IS_COPYLEFT, + }, + License { + name: "xkeyboard-config-Zinoviev", + full_name: r#"xkeyboard-config Zinoviev License"#, + index: 701, + flags: 0x0, + }, + License { + name: "xlock", + full_name: r#"xlock License"#, + index: 702, + flags: 0x0, + }, + License { + name: "xpp", + full_name: r#"XPP License"#, + index: 703, + flags: 0x0, + }, + License { + name: "xzoom", + full_name: r#"xzoom License"#, + index: 704, + flags: 0x0, + }, + License { + name: "zlib-acknowledgement", + full_name: r#"zlib/libpng License with Acknowledgement"#, + index: 705, + flags: 0x0, + }, ]; /// Pairs an invalid license identifier with its valid SPDX license identifier. @@ -2198,84 +4288,400 @@ pub const IMPRECISE_NAMES: &[(&str, &str)] = &[ ("zlib", "Zlib"), ]; -pub const EXCEPTIONS: &[(&str, u8)] = &[ - ("389-exception", 0), - ("Asterisk-exception", 0), - ("Asterisk-linking-protocols-exception", 0), - ("Autoconf-exception-2.0", 0), - ("Autoconf-exception-3.0", 0), - ("Autoconf-exception-generic", 0), - ("Autoconf-exception-generic-3.0", 0), - ("Autoconf-exception-macro", 0), - ("Bison-exception-1.24", 0), - ("Bison-exception-2.2", 0), - ("Bootloader-exception", 0), - ("CGAL-linking-exception", 0), - ("CLISP-exception-2.0", 0), - ("Classpath-exception-2.0", 0), - ("DigiRule-FOSS-exception", 0), - ("Digia-Qt-LGPL-exception-1.1", 0), - ("FLTK-exception", 0), - ("Fawkes-Runtime-exception", 0), - ("Font-exception-2.0", 0), - ("GCC-exception-2.0", 0), - ("GCC-exception-2.0-note", 0), - ("GCC-exception-3.1", 0), - ("GNAT-exception", 0), - ("GNOME-examples-exception", 0), - ("GNU-compiler-exception", 0), - ("GPL-3.0-389-ds-base-exception", 0), - ("GPL-3.0-interface-exception", 0), - ("GPL-3.0-linking-exception", 0), - ("GPL-3.0-linking-source-exception", 0), - ("GPL-CC-1.0", 0), - ("GStreamer-exception-2005", 0), - ("GStreamer-exception-2008", 0), - ("Gmsh-exception", 0), - ("Independent-modules-exception", 0), - ("KiCad-libraries-exception", 0), - ("LGPL-3.0-linking-exception", 0), - ("LLGPL", 0), - ("LLVM-exception", 0), - ("LZMA-exception", 0), - ("Libtool-exception", 0), - ("Linux-syscall-note", 0), - ("Nokia-Qt-exception-1.1", IS_DEPRECATED), - ("OCCT-exception-1.0", 0), - ("OCaml-LGPL-linking-exception", 0), - ("OpenJDK-assembly-exception-1.0", 0), - ("PCRE2-exception", 0), - ("PS-or-PDF-font-exception-20170817", 0), - ("QPL-1.0-INRIA-2004-exception", 0), - ("Qt-GPL-exception-1.0", 0), - ("Qt-LGPL-exception-1.1", 0), - ("Qwt-exception-1.0", 0), - ("RRDtool-FLOSS-exception-2.0", 0), - ("SANE-exception", 0), - ("SHL-2.0", 0), - ("SHL-2.1", 0), - ("SWI-exception", 0), - ("Swift-exception", 0), - ("Texinfo-exception", 0), - ("UBDL-exception", 0), - ("Universal-FOSS-exception-1.0", 0), - ("WxWindows-exception-3.1", 0), - ("cryptsetup-OpenSSL-exception", 0), - ("eCos-exception-2.0", 0), - ("erlang-otp-linking-exception", 0), - ("fmt-exception", 0), - ("freertos-exception-2.0", 0), - ("gnu-javamail-exception", 0), - ("harbour-exception", 0), - ("i2p-gpl-java-exception", 0), - ("libpri-OpenH323-exception", 0), - ("mif-exception", 0), - ("mxml-exception", 0), - ("openvpn-openssl-exception", 0), - ("polyparse-exception", 0), - ("romic-exception", 0), - ("stunnel-exception", 0), - ("u-boot-exception-2.0", 0), - ("vsftpd-openssl-exception", 0), - ("x11vnc-openssl-exception", 0), +pub const EXCEPTIONS: &[Exception] = &[ + Exception { + name: "389-exception", + index: 0, + flags: 0, + }, + Exception { + name: "Asterisk-exception", + index: 1, + flags: 0, + }, + Exception { + name: "Asterisk-linking-protocols-exception", + index: 2, + flags: 0, + }, + Exception { + name: "Autoconf-exception-2.0", + index: 3, + flags: 0, + }, + Exception { + name: "Autoconf-exception-3.0", + index: 4, + flags: 0, + }, + Exception { + name: "Autoconf-exception-generic", + index: 5, + flags: 0, + }, + Exception { + name: "Autoconf-exception-generic-3.0", + index: 6, + flags: 0, + }, + Exception { + name: "Autoconf-exception-macro", + index: 7, + flags: 0, + }, + Exception { + name: "Bison-exception-1.24", + index: 8, + flags: 0, + }, + Exception { + name: "Bison-exception-2.2", + index: 9, + flags: 0, + }, + Exception { + name: "Bootloader-exception", + index: 10, + flags: 0, + }, + Exception { + name: "CGAL-linking-exception", + index: 11, + flags: 0, + }, + Exception { + name: "CLISP-exception-2.0", + index: 12, + flags: 0, + }, + Exception { + name: "Classpath-exception-2.0", + index: 13, + flags: 0, + }, + Exception { + name: "DigiRule-FOSS-exception", + index: 14, + flags: 0, + }, + Exception { + name: "Digia-Qt-LGPL-exception-1.1", + index: 15, + flags: 0, + }, + Exception { + name: "FLTK-exception", + index: 16, + flags: 0, + }, + Exception { + name: "Fawkes-Runtime-exception", + index: 17, + flags: 0, + }, + Exception { + name: "Font-exception-2.0", + index: 18, + flags: 0, + }, + Exception { + name: "GCC-exception-2.0", + index: 19, + flags: 0, + }, + Exception { + name: "GCC-exception-2.0-note", + index: 20, + flags: 0, + }, + Exception { + name: "GCC-exception-3.1", + index: 21, + flags: 0, + }, + Exception { + name: "GNAT-exception", + index: 22, + flags: 0, + }, + Exception { + name: "GNOME-examples-exception", + index: 23, + flags: 0, + }, + Exception { + name: "GNU-compiler-exception", + index: 24, + flags: 0, + }, + Exception { + name: "GPL-3.0-389-ds-base-exception", + index: 25, + flags: 0, + }, + Exception { + name: "GPL-3.0-interface-exception", + index: 26, + flags: 0, + }, + Exception { + name: "GPL-3.0-linking-exception", + index: 27, + flags: 0, + }, + Exception { + name: "GPL-3.0-linking-source-exception", + index: 28, + flags: 0, + }, + Exception { + name: "GPL-CC-1.0", + index: 29, + flags: 0, + }, + Exception { + name: "GStreamer-exception-2005", + index: 30, + flags: 0, + }, + Exception { + name: "GStreamer-exception-2008", + index: 31, + flags: 0, + }, + Exception { + name: "Gmsh-exception", + index: 32, + flags: 0, + }, + Exception { + name: "Independent-modules-exception", + index: 33, + flags: 0, + }, + Exception { + name: "KiCad-libraries-exception", + index: 34, + flags: 0, + }, + Exception { + name: "LGPL-3.0-linking-exception", + index: 35, + flags: 0, + }, + Exception { + name: "LLGPL", + index: 36, + flags: 0, + }, + Exception { + name: "LLVM-exception", + index: 37, + flags: 0, + }, + Exception { + name: "LZMA-exception", + index: 38, + flags: 0, + }, + Exception { + name: "Libtool-exception", + index: 39, + flags: 0, + }, + Exception { + name: "Linux-syscall-note", + index: 40, + flags: 0, + }, + Exception { + name: "Nokia-Qt-exception-1.1", + index: 41, + flags: IS_DEPRECATED, + }, + Exception { + name: "OCCT-exception-1.0", + index: 42, + flags: 0, + }, + Exception { + name: "OCaml-LGPL-linking-exception", + index: 43, + flags: 0, + }, + Exception { + name: "OpenJDK-assembly-exception-1.0", + index: 44, + flags: 0, + }, + Exception { + name: "PCRE2-exception", + index: 45, + flags: 0, + }, + Exception { + name: "PS-or-PDF-font-exception-20170817", + index: 46, + flags: 0, + }, + Exception { + name: "QPL-1.0-INRIA-2004-exception", + index: 47, + flags: 0, + }, + Exception { + name: "Qt-GPL-exception-1.0", + index: 48, + flags: 0, + }, + Exception { + name: "Qt-LGPL-exception-1.1", + index: 49, + flags: 0, + }, + Exception { + name: "Qwt-exception-1.0", + index: 50, + flags: 0, + }, + Exception { + name: "RRDtool-FLOSS-exception-2.0", + index: 51, + flags: 0, + }, + Exception { + name: "SANE-exception", + index: 52, + flags: 0, + }, + Exception { + name: "SHL-2.0", + index: 53, + flags: 0, + }, + Exception { + name: "SHL-2.1", + index: 54, + flags: 0, + }, + Exception { + name: "SWI-exception", + index: 55, + flags: 0, + }, + Exception { + name: "Swift-exception", + index: 56, + flags: 0, + }, + Exception { + name: "Texinfo-exception", + index: 57, + flags: 0, + }, + Exception { + name: "UBDL-exception", + index: 58, + flags: 0, + }, + Exception { + name: "Universal-FOSS-exception-1.0", + index: 59, + flags: 0, + }, + Exception { + name: "WxWindows-exception-3.1", + index: 60, + flags: 0, + }, + Exception { + name: "cryptsetup-OpenSSL-exception", + index: 61, + flags: 0, + }, + Exception { + name: "eCos-exception-2.0", + index: 62, + flags: 0, + }, + Exception { + name: "erlang-otp-linking-exception", + index: 63, + flags: 0, + }, + Exception { + name: "fmt-exception", + index: 64, + flags: 0, + }, + Exception { + name: "freertos-exception-2.0", + index: 65, + flags: 0, + }, + Exception { + name: "gnu-javamail-exception", + index: 66, + flags: 0, + }, + Exception { + name: "harbour-exception", + index: 67, + flags: 0, + }, + Exception { + name: "i2p-gpl-java-exception", + index: 68, + flags: 0, + }, + Exception { + name: "libpri-OpenH323-exception", + index: 69, + flags: 0, + }, + Exception { + name: "mif-exception", + index: 70, + flags: 0, + }, + Exception { + name: "mxml-exception", + index: 71, + flags: 0, + }, + Exception { + name: "openvpn-openssl-exception", + index: 72, + flags: 0, + }, + Exception { + name: "polyparse-exception", + index: 73, + flags: 0, + }, + Exception { + name: "romic-exception", + index: 74, + flags: 0, + }, + Exception { + name: "stunnel-exception", + index: 75, + flags: 0, + }, + Exception { + name: "u-boot-exception-2.0", + index: 76, + flags: 0, + }, + Exception { + name: "vsftpd-openssl-exception", + index: 77, + flags: 0, + }, + Exception { + name: "x11vnc-openssl-exception", + index: 78, + flags: 0, + }, ]; diff --git a/src/lib.rs b/src/lib.rs index 1af0890..7403e6a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,6 @@ pub mod text; pub use error::ParseError; pub use expression::Expression; -use identifiers::{IS_COPYLEFT, IS_DEPRECATED, IS_FSF_LIBRE, IS_GNU, IS_OSI_APPROVED}; pub use lexer::ParseMode; pub use licensee::Licensee; use std::{ @@ -20,6 +19,33 @@ use std::{ fmt, }; +pub mod flags { + pub type Type = u8; + + /// Whether the license is listed as free by the [Free Software Foundation](https://www.gnu.org/licenses/license-list.en.html) + pub const IS_FSF_LIBRE: Type = 0x1; + /// Whether the license complies with the Open Source Definition as determined by the [Open Source Initiative](https://opensource.org/licenses) + pub const IS_OSI_APPROVED: Type = 0x2; + /// Whether the license or exception has been deprecated and should no longer be used + pub const IS_DEPRECATED: Type = 0x4; + /// Whether the license is considered copyleft + pub const IS_COPYLEFT: Type = 0x8; + /// Whether the license is a GNU license + pub const IS_GNU: Type = 0x10; +} + +/// An SPDX license +pub struct License { + /// The short identifier for the license + pub name: &'static str, + /// The full name of the license + pub full_name: &'static str, + /// The index in the full license list where this license is positioned + pub index: usize, + /// The flags for this license + pub flags: flags::Type, +} + /// Unique identifier for a particular license /// /// ``` @@ -32,27 +58,24 @@ use std::{ /// && !bsd.is_copyleft() /// ); /// ``` -#[derive(Copy, Clone, Eq)] +#[derive(Copy, Clone)] pub struct LicenseId { - /// The short identifier for the license - pub name: &'static str, - /// The full name of the license - pub full_name: &'static str, - index: usize, - flags: u8, + l: &'static License, } impl PartialEq for LicenseId { #[inline] fn eq(&self, o: &Self) -> bool { - self.index == o.index + self.l.index == o.l.index } } +impl Eq for LicenseId {} + impl Ord for LicenseId { #[inline] fn cmp(&self, o: &Self) -> Ordering { - self.index.cmp(&o.index) + self.l.index.cmp(&o.l.index) } } @@ -63,6 +86,15 @@ impl PartialOrd for LicenseId { } } +impl std::ops::Deref for LicenseId { + type Target = License; + + #[inline] + fn deref(&self) -> &Self::Target { + self.l + } +} + impl LicenseId { /// Returns true if the license is [considered free by the FSF](https://www.gnu.org/licenses/license-list.en.html) /// @@ -72,7 +104,7 @@ impl LicenseId { #[inline] #[must_use] pub fn is_fsf_free_libre(self) -> bool { - self.flags & IS_FSF_LIBRE != 0 + self.l.flags & flags::IS_FSF_LIBRE != 0 } /// Returns true if the license is [OSI approved](https://opensource.org/licenses) @@ -83,7 +115,7 @@ impl LicenseId { #[inline] #[must_use] pub fn is_osi_approved(self) -> bool { - self.flags & IS_OSI_APPROVED != 0 + self.l.flags & flags::IS_OSI_APPROVED != 0 } /// Returns true if the license is deprecated @@ -94,7 +126,7 @@ impl LicenseId { #[inline] #[must_use] pub fn is_deprecated(self) -> bool { - self.flags & IS_DEPRECATED != 0 + self.l.flags & flags::IS_DEPRECATED != 0 } /// Returns true if the license is [copyleft](https://en.wikipedia.org/wiki/Copyleft) @@ -105,7 +137,7 @@ impl LicenseId { #[inline] #[must_use] pub fn is_copyleft(self) -> bool { - self.flags & IS_COPYLEFT != 0 + self.l.flags & flags::IS_COPYLEFT != 0 } /// Returns true if the license is a [GNU license](https://www.gnu.org/licenses/identify-licenses-clearly.html), @@ -117,7 +149,7 @@ impl LicenseId { #[inline] #[must_use] pub fn is_gnu(self) -> bool { - self.flags & IS_GNU != 0 + self.l.flags & flags::IS_GNU != 0 } /// Retrieves the version of the license ID, if any @@ -129,7 +161,8 @@ impl LicenseId { /// ``` #[inline] pub fn version(self) -> Option<&'static str> { - self.name + self.l + .name .split('-') .find(|comp| comp.chars().all(|c| c == '.' || c.is_ascii_digit())) } @@ -142,7 +175,7 @@ impl LicenseId { /// ``` #[inline] pub fn base(self) -> &'static str { - self.name.split_once('-').map_or(self.name, |(n, _)| n) + self.l.name.split_once('-').map_or(self.l.name, |(n, _)| n) } /// Attempts to retrieve the license text @@ -153,41 +186,50 @@ impl LicenseId { #[cfg(feature = "text")] #[inline] pub fn text(self) -> &'static str { - text::LICENSE_TEXTS[self.index].1 + text::LICENSE_TEXTS[self.l.index].1 } } impl fmt::Debug for LicenseId { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}", self.name) + write!(f, "{}", self.l.name) } } +/// An SPDX exception +pub struct Exception { + /// The name of the exception + pub name: &'static str, + /// The index in the full exception list where this exception is positioned + pub index: usize, + /// The flags for the exception + pub flags: flags::Type, +} + /// Unique identifier for a particular exception /// /// ``` /// let exception_id = spdx::exception_id("LLVM-exception").unwrap(); /// assert!(!exception_id.is_deprecated()); /// ``` -#[derive(Copy, Clone, Eq)] +#[derive(Copy, Clone)] pub struct ExceptionId { - /// The short identifier for the exception - pub name: &'static str, - index: usize, - flags: u8, + e: &'static Exception, } impl PartialEq for ExceptionId { #[inline] fn eq(&self, o: &Self) -> bool { - self.index == o.index + self.e.index == o.e.index } } +impl Eq for ExceptionId {} + impl Ord for ExceptionId { #[inline] fn cmp(&self, o: &Self) -> Ordering { - self.index.cmp(&o.index) + self.e.index.cmp(&o.e.index) } } @@ -198,6 +240,15 @@ impl PartialOrd for ExceptionId { } } +impl std::ops::Deref for ExceptionId { + type Target = Exception; + + #[inline] + fn deref(&self) -> &Self::Target { + self.e + } +} + impl ExceptionId { /// Returns true if the exception is deprecated /// @@ -207,7 +258,7 @@ impl ExceptionId { #[inline] #[must_use] pub fn is_deprecated(self) -> bool { - self.flags & IS_DEPRECATED != 0 + self.e.flags & flags::IS_DEPRECATED != 0 } /// Attempts to retrieve the license exception text @@ -218,13 +269,13 @@ impl ExceptionId { #[cfg(feature = "text")] #[inline] pub fn text(self) -> &'static str { - text::EXCEPTION_TEXTS[self.index].1 + text::EXCEPTION_TEXTS[self.e.index].1 } } impl fmt::Debug for ExceptionId { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}", self.name) + write!(f, "{}", self.e.name) } } @@ -268,11 +319,32 @@ impl fmt::Display for LicenseReq { } } +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] +pub struct LicenseRef { + /// Purpose: Identify any external SPDX documents referenced within this SPDX document. + /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.h430e9ypa0j9) for + /// more details. + pub doc_ref: Option, + /// Purpose: Provide a locally unique identifier to refer to licenses that are not found on the SPDX License List. + /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.4f1mdlm) for + /// more details. + pub lic_ref: String, +} + +impl fmt::Display for LicenseRef { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { + match (&self.doc_ref, &self.lic_ref) { + (Some(d), a) => write!(f, "DocumentRef-{d}:LicenseRef-{a}"), + (None, a) => write!(f, "LicenseRef-{a}"), + } + } +} + /// A single license term in a license expression, according to the SPDX spec. /// /// This can be either an SPDX license, which is mapped to a [`LicenseId`] from /// a valid SPDX short identifier, or else a document and/or license ref -#[derive(Debug, Clone, Eq)] +#[derive(Debug, Clone)] pub enum LicenseItem { /// A regular SPDX license id Spdx { @@ -281,16 +353,7 @@ pub enum LicenseItem { /// the software under either the specific version, or any later versions or_later: bool, }, - Other { - /// Purpose: Identify any external SPDX documents referenced within this SPDX document. - /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.h430e9ypa0j9) for - /// more details. - doc_ref: Option, - /// Purpose: Provide a locally unique identifier to refer to licenses that are not found on the SPDX License List. - /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.4f1mdlm) for - /// more details. - lic_ref: String, - }, + Other(Box), } impl LicenseItem { @@ -321,19 +384,7 @@ impl Ord for LicenseItem { Ordering::Equal => la.cmp(lb), o => o, }, - ( - Self::Other { - doc_ref: ad, - lic_ref: al, - }, - Self::Other { - doc_ref: bd, - lic_ref: bl, - }, - ) => match ad.cmp(bd) { - Ordering::Equal => al.cmp(bl), - o => o, - }, + (Self::Other(a), Self::Other(b)) => a.cmp(b), (Self::Spdx { .. }, Self::Other { .. }) => Ordering::Less, (Self::Other { .. }, Self::Spdx { .. }) => Ordering::Greater, } @@ -345,19 +396,7 @@ impl PartialOrd for LicenseItem { fn partial_cmp(&self, o: &Self) -> Option { match (self, o) { (Self::Spdx { id: a, .. }, Self::Spdx { id: b, .. }) => a.partial_cmp(b), - ( - Self::Other { - doc_ref: ad, - lic_ref: al, - }, - Self::Other { - doc_ref: bd, - lic_ref: bl, - }, - ) => match ad.cmp(bd) { - Ordering::Equal => al.partial_cmp(bl), - o => Some(o), - }, + (Self::Other(a), Self::Other(b)) => a.partial_cmp(b), (Self::Spdx { .. }, Self::Other { .. }) => Some(cmp::Ordering::Less), (Self::Other { .. }, Self::Spdx { .. }) => Some(cmp::Ordering::Greater), } @@ -370,6 +409,8 @@ impl PartialEq for LicenseItem { } } +impl Eq for LicenseItem {} + impl fmt::Display for LicenseItem { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { match self { @@ -386,14 +427,28 @@ impl fmt::Display for LicenseItem { Ok(()) } - LicenseItem::Other { - doc_ref: Some(d), - lic_ref: l, - } => write!(f, "DocumentRef-{d}:LicenseRef-{l}"), - LicenseItem::Other { - doc_ref: None, - lic_ref: l, - } => write!(f, "LicenseRef-{l}"), + LicenseItem::Other(refs) => refs.fmt(f), + } + } +} + +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] +pub struct AdditionRef { + /// Purpose: Identify any external SPDX documents referenced within this SPDX document. + /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.h430e9ypa0j9) for + /// more details. + pub doc_ref: Option, + /// Purpose: Provide a locally unique identifier to refer to additional text that are not found on the SPDX License List. + /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.4f1mdlm) for + /// more details. + pub add_ref: String, +} + +impl fmt::Display for AdditionRef { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { + match (&self.doc_ref, &self.add_ref) { + (Some(d), a) => write!(f, "DocumentRef-{d}:AdditionRef-{a}"), + (None, a) => write!(f, "AdditionRef-{a}"), } } } @@ -402,20 +457,11 @@ impl fmt::Display for LicenseItem { /// /// This can be either an SPDX license exception, which is mapped to a [`ExceptionId`] /// from a valid SPDX short identifier, or else a document and/or addition ref -#[derive(Debug, Clone, Eq)] +#[derive(Debug, Clone)] pub enum AdditionItem { /// A regular SPDX license exception id Spdx(ExceptionId), - Other { - /// Purpose: Identify any external SPDX documents referenced within this SPDX document. - /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.h430e9ypa0j9) for - /// more details. - doc_ref: Option, - /// Purpose: Provide a locally unique identifier to refer to additional text that are not found on the SPDX License List. - /// See the [spec](https://spdx.org/spdx-specification-21-web-version#h.4f1mdlm) for - /// more details. - add_ref: String, - }, + Other(Box), } impl AdditionItem { @@ -437,19 +483,7 @@ impl Ord for AdditionItem { Ordering::Equal => a.cmp(b), o => o, }, - ( - Self::Other { - doc_ref: ad, - add_ref: aa, - }, - Self::Other { - doc_ref: bd, - add_ref: ba, - }, - ) => match ad.cmp(bd) { - Ordering::Equal => aa.cmp(ba), - o => o, - }, + (Self::Other(a), Self::Other(b)) => a.cmp(b), (Self::Spdx(_), Self::Other { .. }) => Ordering::Less, (Self::Other { .. }, Self::Spdx(_)) => Ordering::Greater, } @@ -461,19 +495,7 @@ impl PartialOrd for AdditionItem { fn partial_cmp(&self, o: &Self) -> Option { match (self, o) { (Self::Spdx(a), Self::Spdx(b)) => a.partial_cmp(b), - ( - Self::Other { - doc_ref: ad, - add_ref: aa, - }, - Self::Other { - doc_ref: bd, - add_ref: ba, - }, - ) => match ad.cmp(bd) { - Ordering::Equal => aa.partial_cmp(ba), - o => Some(o), - }, + (Self::Other(a), Self::Other(b)) => a.partial_cmp(b), (Self::Spdx(_), Self::Other { .. }) => Some(cmp::Ordering::Less), (Self::Other { .. }, Self::Spdx(_)) => Some(cmp::Ordering::Greater), } @@ -485,24 +507,18 @@ impl PartialEq for AdditionItem { matches!(self.partial_cmp(o), Some(cmp::Ordering::Equal)) } } +impl Eq for AdditionItem {} impl fmt::Display for AdditionItem { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { match self { AdditionItem::Spdx(id) => id.name.fmt(f), - AdditionItem::Other { - doc_ref: Some(d), - add_ref: a, - } => write!(f, "DocumentRef-{d}:AdditionRef-{a}"), - AdditionItem::Other { - doc_ref: None, - add_ref: a, - } => write!(f, "AdditionRef-{a}"), + AdditionItem::Other(refs) => refs.fmt(f), } } } -/// Attempts to find a [`LicenseId`] for the string. +/// Attempts to find a [`LicenseId`] given a short id. /// /// Note that any `+` at the end is trimmed when searching for a match. /// @@ -515,15 +531,9 @@ impl fmt::Display for AdditionItem { pub fn license_id(name: &str) -> Option { let name = name.trim_end_matches('+'); identifiers::LICENSES - .binary_search_by(|lic| lic.0.cmp(name)) - .map(|index| { - let (name, full_name, flags) = identifiers::LICENSES[index]; - LicenseId { - name, - full_name, - index, - flags, - } + .binary_search_by(|lic| lic.name.cmp(name)) + .map(|index| LicenseId { + l: &identifiers::LICENSES[index], }) .ok() } @@ -593,10 +603,9 @@ pub fn imprecise_license_id(name: &str) -> Option<(LicenseId, usize)> { #[must_use] pub fn exception_id(name: &str) -> Option { identifiers::EXCEPTIONS - .binary_search_by(|exc| exc.0.cmp(name)) - .map(|index| { - let (name, flags) = identifiers::EXCEPTIONS[index]; - ExceptionId { name, index, flags } + .binary_search_by(|exc| exc.name.cmp(name)) + .map(|index| ExceptionId { + e: &identifiers::EXCEPTIONS[index], }) .ok() } diff --git a/src/licensee.rs b/src/licensee.rs index cccfd7e..d7ff5f3 100644 --- a/src/licensee.rs +++ b/src/licensee.rs @@ -1,5 +1,5 @@ use crate::{ - AdditionItem, LicenseItem, LicenseReq, + AdditionItem, LicenseItem, LicenseRef, LicenseReq, error::{ParseError, Reason}, lexer::{Lexer, Token}, }; @@ -110,10 +110,12 @@ impl Licensee { or_later: false, } } - Token::LicenseRef { doc_ref, lic_ref } => LicenseItem::Other { - doc_ref: doc_ref.map(String::from), - lic_ref: lic_ref.to_owned(), - }, + Token::LicenseRef { doc_ref, lic_ref } => { + LicenseItem::Other(Box::new(LicenseRef { + doc_ref: doc_ref.map(String::from), + lic_ref: lic_ref.to_owned(), + })) + } _ => { return Err(ParseError { original: original.to_owned(), @@ -138,10 +140,12 @@ impl Licensee { match lt.token { Token::Exception(id) => Some(AdditionItem::Spdx(id)), - Token::AdditionRef { doc_ref, add_ref } => Some(AdditionItem::Other { - doc_ref: doc_ref.map(String::from), - add_ref: add_ref.to_owned(), - }), + Token::AdditionRef { doc_ref, add_ref } => { + Some(AdditionItem::Other(Box::new(crate::AdditionRef { + doc_ref: doc_ref.map(String::from), + add_ref: add_ref.to_owned(), + }))) + } _ => { return Err(ParseError { original: original.to_owned(), @@ -219,17 +223,8 @@ impl Licensee { } } } - ( - LicenseItem::Other { - doc_ref: doc_a, - lic_ref: lic_a, - }, - LicenseItem::Other { - doc_ref: doc_b, - lic_ref: lic_b, - }, - ) => { - if doc_a != doc_b || lic_a != lic_b { + (LicenseItem::Other(a), LicenseItem::Other(b)) => { + if a != b { return false; } } @@ -268,7 +263,9 @@ impl AsRef for Licensee { #[cfg(test)] mod test { - use crate::{AdditionItem, LicenseItem, LicenseReq, Licensee, exception_id, license_id}; + use crate::{ + AdditionItem, LicenseItem, LicenseRef, LicenseReq, Licensee, exception_id, license_id, + }; const LICENSEES: &[&str] = &[ "LicenseRef-Embark-Proprietary", @@ -356,10 +353,10 @@ mod test { licensees.sort(); let req = LicenseReq { - license: LicenseItem::Other { + license: LicenseItem::Other(Box::new(LicenseRef { doc_ref: None, lic_ref: "Embark-Proprietary".to_owned(), - }, + })), addition: None, }; diff --git a/tests/check.rs b/tests/check.rs index ab83c66..6f3b654 100644 --- a/tests/check.rs +++ b/tests/check.rs @@ -537,12 +537,12 @@ fn unsatisfied_minimize() { fn too_many_to_minimize() { let mut ridiculous = String::new(); let mut ohno = Vec::new(); - for (lic, _, flags) in spdx::identifiers::LICENSES { - if (flags & spdx::identifiers::IS_GNU) == 0 { - ridiculous.push_str(lic); + for lic in spdx::identifiers::LICENSES { + if (lic.flags & spdx::flags::IS_GNU) == 0 { + ridiculous.push_str(lic.name); ridiculous.push_str(" AND "); - ohno.push(spdx::Licensee::parse_mode(lic, spdx::ParseMode::LAX).unwrap()); + ohno.push(spdx::Licensee::parse_mode(lic.name, spdx::ParseMode::LAX).unwrap()); } if ohno.len() >= 65 { diff --git a/update/src/main.rs b/update/src/main.rs index ae046a3..0ecb246 100644 --- a/update/src/main.rs +++ b/update/src/main.rs @@ -102,10 +102,10 @@ fn write_exceptions(identifiers: &mut impl Write, texts: &mut impl Write) -> Res }; } - writeln!(identifiers, "pub const EXCEPTIONS: &[(&str, u8)] = &[")?; + writeln!(identifiers, "pub const EXCEPTIONS: &[Exception] = &[")?; v.sort_by_key(|v| v.0); - for (exc, flags) in v.iter() { - writeln!(identifiers, " (\"{exc}\", {flags}),")?; + for (index, (exc, flags)) in v.iter().enumerate() { + writeln!(identifiers, " Exception {{ name: \"{exc}\", index: {index}, flags: {flags} }},")?; } writeln!(identifiers, "];")?; @@ -147,7 +147,7 @@ fn is_gnu(license: &str) -> bool { || license.starts_with("LGPL-") } -fn write_license_texts<'lic>( +fn write_license_texts( texts: &mut impl Write, licenses: impl Iterator>, ) -> Result<()> { @@ -208,11 +208,7 @@ fn write_licenses(identifiers: &mut impl Write, texts: &mut impl Write) -> Resul writeln!( identifiers, " -pub const IS_FSF_LIBRE: u8 = 0x1; -pub const IS_OSI_APPROVED: u8 = 0x2; -pub const IS_DEPRECATED: u8 = 0x4; -pub const IS_COPYLEFT: u8 = 0x8; -pub const IS_GNU: u8 = 0x10; +use crate::{{Exception, License, flags::*}}; " )?; @@ -309,9 +305,9 @@ pub const IS_GNU: u8 = 0x10; bail!("Malformed JSON: {lic_list_ver:?}") } writeln!(identifiers)?; - writeln!(identifiers, "pub const LICENSES: &[(&str, &str, u8)] = &[")?; - for (id, name, flags) in &v { - writeln!(identifiers, " (\"{id}\", r#\"{name}\"#, {flags}),")?; + writeln!(identifiers, "pub const LICENSES: &[License] = &[")?; + for (index, (id, name, flags)) in v.iter().enumerate() { + writeln!(identifiers, " License {{ name: \"{id}\", full_name: r#\"{name}\"#, index: {index}, flags: {flags} }},")?; } writeln!(identifiers, "];\n")?; @@ -352,7 +348,7 @@ fn real_main() -> Result<()> { println!("cloning..."); assert!( std::process::Command::new("git") - .args(&[ + .args([ "clone", "https://github.com/spdx/license-list-data.git", ROOT @@ -365,7 +361,7 @@ fn real_main() -> Result<()> { println!("fetching..."); assert!( std::process::Command::new("git") - .args(&["-C", ROOT, "fetch"]) + .args(["-C", ROOT, "fetch"]) .status() .unwrap() .success() @@ -375,7 +371,7 @@ fn real_main() -> Result<()> { println!("checking out..."); assert!( std::process::Command::new("git") - .args(&["-C", ROOT, "checkout", &upstream_tag]) + .args(["-C", ROOT, "checkout", &upstream_tag]) .status() .unwrap() .success() @@ -417,16 +413,16 @@ fn real_main() -> Result<()> { // Run rustfmt on the final files std::process::Command::new("rustfmt") - .args(&["--edition", "2018", "src/identifiers.rs"]) + .args(["--edition", "2018", "src/identifiers.rs"]) .status() - .with_context(|| format!("failed to run rustfmt"))?; + .context("failed to run rustfmt")?; std::process::Command::new("rustfmt") - .args(&["--edition", "2018", "src/text.rs"]) + .args(["--edition", "2018", "src/text.rs"]) .status() - .with_context(|| format!("failed to run rustfmt"))?; + .context("failed to run rustfmt")?; - let mut readme = std::fs::read_to_string("README.md").context("failed to read README.md")?; + let readme = std::fs::read_to_string("README.md").context("failed to read README.md")?; const VERSION: &str = "SPDX%20Version-"; @@ -443,13 +439,13 @@ fn real_main() -> Result<()> { std::fs::File::create("README.md").context("failed to open README.md")?, ); rmfile - .write(readme[..index + VERSION.len()].as_bytes()) + .write(&readme.as_bytes()[..index + VERSION.len()]) .context("failed to write prefix")?; rmfile - .write(upstream_tag[1..].as_bytes()) + .write(&upstream_tag.as_bytes()[1..]) .context("failed to write version")?; rmfile - .write(readme[end_index..].as_bytes()) + .write(&readme.as_bytes()[end_index..]) .context("failed to write suffix")?; Ok(())