Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 4.67 KB

license-fields.md

File metadata and controls

53 lines (45 loc) · 4.67 KB

Explanation of SPDX License List Fields

The following information describes how each field on the license and exception list is treated. Criteria listed below applies to both licenses and exceptions, unless otherwise noted or obviously not applicable. Where a field maps to an XML tag, that is noted.

A) Full Name

  • The full name should use the title found in the license file or be consistent with naming from other well-known sources (i.e., OSI, Fedora, etc.), where applicable. If possible and applicable, input from the license author or steward should be sought. If there is no obvious license name, then use the determined short identifier followed by "license" or "exception".
  • The full name may omit certain words, such as "the," for alphabetical sorting purposes
  • No commas in full name
  • The word "version" is not spelled out; "v" or nothing is used to indicate license version (for space reasons), use lower case v and no period or space between v and the number
  • No abbreviations are included (in parenthesis) after the full name
  • XML tag = name within the license tag; and titleText

B) Short Identifier

  • Short identifier to be used to identify a match to licenses or exceptions in the context of an SPDX file, a source file, or elsewhere
  • Short identifiers consist of ASCII letters (A-Za-z), digits (0-9), full stops (.) and hyphen or minus signs (-)
  • Short identifiers consist of an abbreviation based on a common short name or acronym or harmonized with other well-known open source naming sources, if applicable. If there is no such information, then the originating project name or copyright holder name may be used. Where the license bears close resemblance to an existing license, an identifier incorporating the existing license identifier may be used and is helpful for grouping similar licenses (e.g, HPND-<variants>)
  • Where applicable, the abbreviation will be followed by a dash and then the version number, in X.Y format. If the license or exception has not been versioned by the author, yet there are multiple versions, a year or other such differentiator can be used
  • Short identifiers should be as short in length as possible while staying consistent with all other criteria
  • Short identifiers for exceptions should include the word "exception" unless there is a compelling reason not to; and should only include a version number if the exception itself is versioned
  • XML tag = licenseId within the license tag

C) Other web pages for license/exception

  • Include URL for the official text of the license or exception
  • If the license is OSI approved, also include URL for OSI license page
  • Include another URL that has text version of license, if neither of the first two options are available
  • Note that a URL may refer to an original URL for the license which is no longer active. We don't remove inactive URLs. New or best available URLs may be added.
  • Include a URL to the license or exception in its native language (e.g. French for CeCILL). Include URLs to English or other translations where multiple, equivalent official translations exist (e.g. EUPL)
  • XML tag = crossRef for each URL within crossRefs tag

D) Notes

  • Include date of release, if found, for licenses with multiple versions, using European date format: day - month - year
  • Only factual information is included here
  • Does not contain information (or links to information) that includes any kind of interpretation or comment about the license (even if written by the license author)
  • Links to other official language translations of the license
  • For exceptions, includes a reference to the license(s) to which this exception typically applies
  • XML tag = notes

E) OSI Approved?

  • If the license is OSI-approved, this field will indicate "Y" and otherwise left blank
  • XML tag = isOsiApproved

F) FSF Free/Libre?

  • If the license is listed as free by the FSF, this field will indicate "Y". If the license is listed as not free by the FSF, the field will indicate "N". Otherwise, the field will be left blank.

G) Text

  • Full license text of the license or exception
  • XML tag = text

H) Standard License Header

  • Should only include text intended to be put in the header of source files or other files as specified in the license or license appendix when specifically delineated
  • Indicate if there is any variation in the header (i.e. for files developed by a contributor versus when applying license to original work)
  • Do not include NOTICE info intended for a separate notice file
  • Leave this field blank if there is no standard header as specifically defined in the license
  • XML tag = standardLicenseHeader