Dear Henri,

In message <CAPVuaYvf_SQ2fkQBzBspJitDDC6yyy0hj4pCrQ=wzfzy28+...@mail.gmail.com> 
you wrote:
> 
> What would be the correct tag to put in a license and license source header
> to make life easier for SPDX?
> 
> I see 'SPDX-License-Identifier' referenced in 2013 emails, but searching
> the spec doesn't find that.
> 
> As an example, If I've an Apache 2.0 license, should I be inserting
> 'SPDX-License-Identifier: Apache 2.0' into the LICENSE.txt and each source
> header?
> 
> If that's the case, is there any best practice location to put it in?

I can't recommend something as "best practice", but I can explain what
we did in the U-Boot boot loader project [1].  U-Boot is covered by a
porject-wide GPL-v2.0 license, but many files are covered by other
license terms.

For details, please see the commit log [2] in the git repository.

[1] http://www.denx.de/wiki/U-Boot
[2] 
http://git.denx.de/?p=u-boot.git;a=commit;h=eca3aeb352c964bdb28b8e191d6326370245e03f

In short, what we did is this:

1) We added a directory "Licenses".  This includes

   a) a file README which defines the project-woide license terms and
      also explains the use of SPDX Unique Lincense Identifiers in
      this project, plus a table that maps these license tags to
      file names containing the actual license texts.
   b) a file Exceptions with poject-specific exceptions from the
      project-wide (GPL-v2.0) license terms
   c) verbatim copies of the licenses used in this project:

        -> ls -l Licenses/
        total 108
        -rw-rw-r-- 1 wd wd   627 Jul 25  2013 Exceptions
        -rw-rw-r-- 1 wd wd  3751 Apr 30 16:01 README
        -rw-rw-r-- 1 wd wd  1249 Aug 31  2013 bsd-2-clause.txt
        -rw-rw-r-- 1 wd wd  1442 Aug 31  2013 bsd-3-clause.txt
        -rw-rw-r-- 1 wd wd  1864 Jul 25  2013 eCos-2.0.txt
        -rw-rw-r-- 1 wd wd 18092 Jul 25  2013 gpl-2.0.txt
        -rw-rw-r-- 1 wd wd   849 Aug 31  2013 ibm-pibs.txt
        -rw-rw-r-- 1 wd wd   822 Sep 22  2014 isc.txt
        -rw-rw-r-- 1 wd wd 25383 Jul 25  2013 lgpl-2.0.txt
        -rw-rw-r-- 1 wd wd 26530 Jul 25  2013 lgpl-2.1.txt
        -rw-rw-r-- 1 wd wd  1337 Apr 30 16:01 x11.txt

2) In all source files, we replaced the license texts by a SPDX tag
   like this:

        SPDX-License-Identifier:        GPL-2.0+



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
In C we had to code our own bugs, in C++ we can inherit them.
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to