/[dep]/web/deps/dep5/copyright-format.xml
ViewVC logotype

Contents of /web/deps/dep5/copyright-format.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 224 - (hide annotations) (download) (as text)
Sun Dec 11 04:25:22 2011 UTC (17 months, 1 week ago) by vorlon
File MIME type: text/xml
File size: 48226 byte(s)
white space separated -> whitespace-separated
1 vorlon 210 <?xml version="1.0" encoding="utf-8"?>
2     <?xml-stylesheet type="text/xsl"
3     href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"?>
4    
5     <!-- Process this file with an XSLT processor, e.g. xsltproc: -->
6     <!-- `xsltproc \
7     -''-nonet \
8     1.0.xml' -->
9    
10     <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN'
11     'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'>
12    
13     <article class="specification" status="draft" lang="en" id="copyright-format">
14     <articleinfo>
15     <title>
16     Machine-readable <filename>debian/copyright</filename> file.
17     </title>
18     <legalnotice>
19     <para>
20     Copying and distribution of this file, with or without modification, are
21     permitted in any medium without royalty provided the copyright notice
22     and this notice are preserved.
23     </para>
24     </legalnotice>
25     <abstract>
26     <para>
27 vorlon 211 Establish a standard, machine-readable format for
28     <filename>debian/copyright</filename> files within packages and to
29     facilitate automated checking and reporting of licenses for packages
30     and sets of packages.
31 vorlon 210 </para>
32     </abstract>
33     </articleinfo>
34    
35     <section id="introduction">
36     <title>Introduction</title>
37     <para>
38     This is a proposal to make <filename>debian/copyright</filename>
39     machine-interpretable. This file is one of the most important files in
40     Debian packaging, yet there is currently no standard format defined for it
41     and its contents vary tremendously across packages, making it difficult to
42     automatically extract licensing information.
43     </para>
44     <para>
45     This is not a proposal to change the policy in the short term. In
46     particular, nothing in this proposal supersedes or modifies any of the
47     requirements specified in Debian Policy regarding the appropriate detail
48     or granularity to use when documenting copyright and license status in
49     <filename>debian/copyright</filename>.
50     </para>
51     </section>
52    
53     <section id="rationale">
54     <title>Rationale</title>
55     <para>
56     The diversity of free software licenses means that Debian needs to care
57     not only about the freeness of a given work, but also its license's
58     compatibility with the other parts of Debian it uses.
59     </para>
60     <para>
61     The arrival of the GPL version 3, its incompatibility with version 2, and
62     our inability to spot the software where the incompatibility might be
63     problematic is one prominent occurrence of this limitation.
64     </para>
65     <para>
66     There are earlier precedents, also. One is the GPL/OpenSSL
67     incompatibility. Apart from grepping
68     <filename>debian/copyright</filename>, which is prone to numerous false
69     positives (packaging under the GPL but software under another license) or
70     negatives (GPL software but with an <quote>OpenSSL special
71     exception</quote> dual licensing form), there is no reliable way to know
72     which software in Debian might be problematic.
73     </para>
74     <para>
75     And there is more to come. There are issues with shipping GPLv2-only
76     software with a CDDL operating system such as Nexenta. The GPL version 3
77     solves this issue, but not all GPL software can switch to it and we have
78     no way to know how much of Debian should be stripped from such a system.
79     </para>
80     <para>
81     A user might want to have a way to avoid software with certain licenses
82     they have a problem with, even if the licenses are DFSG-free. For example,
83     the Affero GPL.
84     </para>
85     </section>
86    
87     <section id="acknowledgements">
88     <title>Acknowledgements</title>
89     <para>
90     Many people have worked on this specification over the years. The
91     following alphabetical list is incomplete, please suggest missing people:
92     Russ Allbery,
93     Ben Finney,
94     Sam Hocevar,
95     Steve Langasek,
96     Charles Plessy,
97     Noah Slater,
98     Jonas Smedegaard,
99     Lars Wirzenius.
100     </para>
101     </section>
102    
103     <section id="file-syntax">
104     <title>File syntax</title>
105     <para>
106     The <filename>debian/copyright</filename> file must be
107     machine-interpretable, yet human-readable, while communicating all
108     mandated upstream information, copyright notices and licensing details.
109     </para>
110     <para>
111     The syntax of the file is the same as for other Debian control files, as
112     specified in the Debian Policy Manual. See its <ulink
113     url="http://www.debian.org/doc/debian-policy/ch-controlfields#s-controlsyntax">section
114     5.1</ulink> for details. Extra fields can be added to any paragraph. No
115     prefixing is necessary or desired, but please avoid names similar to
116     standard ones so that mistakes are easier to catch. Future versions of
117     the <filename>debian/copyright</filename> specification will attempt to
118     avoid conflicting specifications for widely used extra fields.
119     </para>
120     <para>
121     There are four kinds values for fields. Each field specifies which kind
122     is allowed.
123     </para>
124    
125     <section id="single-line">
126     <title>Single-line values</title>
127     <para>
128     A single-line value means that the whole value of a field must fit on a
129     single line. For example, the <varname>Format</varname> field has a
130     single line value specifying the version of the machine-readable format
131     that is used.
132     </para>
133     </section>
134    
135     <section id="white-space-lists">
136 vorlon 224 <title>Whitespace-separated lists</title>
137 vorlon 210 <para>
138 vorlon 224 A whitespace-separated list means that the field value may be on one
139 vorlon 210 line or many, but values in the list are separated by one or more white
140     space characters (including space, TAB, and newline). For example, the
141     <varname>Files</varname> field has a list of filename patterns.
142     </para>
143     </section>
144    
145     <section id="line-based-lists">
146     <title>Line based lists</title>
147     <para>
148     Another kind of list value has one value per line. For example,
149     <varname>Copyright</varname> can list many copyright statements, one per
150     line.
151     </para>
152     </section>
153    
154     <section id="formatted-text">
155     <title>Text formatted like package long descriptions</title>
156     <para>
157     Formatted text fields use the same rules as the long description in a
158     package's <varname>Description</varname> field, possibly also using the
159     first line as a synopsis, like <varname>Description</varname> uses it
160     for the short description. See Debian Policy's section 5.6.13, <ulink
161     url="http://www.debian.org/doc/debian-policy/ch-controlfields#s-f-Description"><quote>Description</quote></ulink>,
162     for details. For example, <varname>Disclaimer</varname> has no special
163     first line, whereas <varname>License</varname> does.
164     </para>
165     </section>
166     </section>
167    
168     <section id="paragraphs">
169     <title>Paragraphs</title>
170     <para>
171     There are three kinds of paragraphs: the first one is called the
172     <link linkend="header-paragraph">header paragraph</link>. Every other
173     paragraph is either a <link linkend="files-paragraph">Files</link>
174     paragraph or a <link linkend="stand-alone-license-paragraph">stand-alone
175     license</link> paragraph. This is similar to source and binary package
176     paragraphs in <filename>debian/control</filename> files.
177     </para>
178    
179     <section id="header-paragraph">
180     <title>Header paragraph (Once)</title>
181     <section id="format-header-field">
182     <title><varname>Format</varname></title>
183     <para>
184     Required single line: URI of the format specification, such as:
185 vorlon 215 <literal>http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/</literal>
186 vorlon 210 </para>
187     </section>
188    
189     <section id="upstream-name-header-field">
190     <title><varname>Upstream-Name</varname></title>
191     <para>
192     Optional single line: the name upstream uses for the software
193     </para>
194     </section>
195    
196     <section id="upstream-contact-header-field">
197     <title><varname>Upstream-Contact</varname></title>
198     <para>
199     Optional line based list: the preferred address(es) to reach the
200     upstream project. May be free-form text, but by convention will
201     usually be written as a list of RFC5322 addresses or URIs.
202     </para>
203     </section>
204    
205     <section id="source-header-field">
206     <title><varname>Source</varname></title>
207     <para>
208     Optional formatted text, no synopsis: an explanation from where the
209     upstream source came from. Typically this would be a URL, but it might
210     be a free-form explanation. The Debian Policy section <ulink
211     url="http://www.debian.org/doc/debian-policy/ch-docs#s-copyrightfile">12.5</ulink>
212     requires this information unless there are no upstream sources, which
213     is mainly the case for native Debian packages. If the upstream source
214     has been modified to remove non-free parts, that should be explained
215     in this field.
216     </para>
217     </section>
218    
219     <section id="disclaimer-header-field">
220     <title><varname>Disclaimer</varname></title>
221     <para>
222     Optional formatted text, no synopsis: this field can be used in the
223     case of non-free and contrib packages (see <ulink
224     url="http://www.debian.org/doc/debian-policy/ch-docs#s-copyrightfile">12.5</ulink>)
225     </para>
226     </section>
227    
228     <section id="comment-header-field">
229     <title><varname>Comment</varname></title>
230     <para>
231     Optional formatted text, no synopsis: this field can provide
232     additional information. For example, it might quote an e-mail from
233     upstream justifying why the license is acceptable to the main archive,
234     or an explanation of how this version of the package has been forked
235     from a version known to be DFSG-free, even though the current upstream
236     version is not.
237     </para>
238     </section>
239    
240     <section id="license-header-field">
241     <title><varname>License</varname></title>
242     <para>
243     Optional formatted text, with synopsis: in the header paragraph
244     (no <varname>Files</varname> specification), this field gives the
245     license information for the package as a whole, which may be different
246     or simplified from a combination of all the per-file license
247     information. <varname>License</varname> below in the <link
248     linkend="files-paragraph">Files paragraph</link> section.
249     </para>
250     </section>
251    
252     <section id="copyright-header-field">
253     <title><varname>Copyright</varname></title>
254     <para>
255     Optional line based list: in the header paragraph (no
256     <varname>Files</varname> specification), this field gives the
257     copyright information for the package as a whole, which may be
258     different or simplified from a combination of all the per-file
259     copyright information. See also <varname>Copyright</varname> below
260     in the <link linkend="files-paragraph">Files paragraph</link>
261     section.
262     </para>
263     <para>
264     The <varname>Copyright</varname> and <varname>License</varname> fields
265     in the <emphasis>header paragraph</emphasis> may complement but do not
266     replace the <emphasis>files paragraphs</emphasis>. They can be used
267     to summarise the contributions and redistribution terms for the whole
268     package, for instance when a work combines a permissive and a copyleft
269     license, or to document a <emphasis>compilation copyright</emphasis>
270     and license. It is possible to use only <varname>License</varname> in
271     the header paragraph, but <varname>Copyright</varname> alone makes no
272     sense.
273     </para>
274     </section>
275    
276     <section id="example-header-paragraph">
277     <title>Example header paragraph</title>
278 vorlon 215 <programlisting>Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
279 vorlon 210 Upstream-Name: SOFTware
280     Upstream-Contact: John Doe &lt;john.doe@example.com&gt;
281     Source: http://www.example.com/software/project</programlisting>
282     </section>
283     </section>
284    
285     <section id="files-paragraph">
286     <title>Files paragraph (Repeatable)</title>
287     <para>
288     The declaration of copyright and license for files is done in one or
289     more paragraphs. In the simplest case, a single paragraph can be used
290     which applies to all files and lists all applicable copyrights and
291     licenses.
292     </para>
293    
294     <section id="files-files-field">
295     <title><varname>Files</varname></title>
296     <para>
297 vorlon 224 Required whitespace-separated list: list of patterns indicating files
298 vorlon 210 covered by the license and copyright specified in this paragraph.
299     </para>
300     <para>
301     Filename patterns in the <varname>Files</varname> field are specified
302     using a simplified shell glob syntax. Patterns are separated by white
303     space.
304     <itemizedlist>
305     <listitem>
306     <para>
307     Only the wildcards <literal>*</literal> and <literal>?</literal>
308     apply; the former matches any number of characters (including
309     none), the latter a single character. Both match a slash
310     (<literal>/</literal>) and a leading dot.
311     </para>
312     </listitem>
313     <listitem>
314     <para>
315     Patterns match pathnames that start at the root of the source
316     tree. Thus, <quote><filename>Makefile.in</filename></quote>
317     matches only the file at the root of the tree, but
318     <quote><filename>*/Makefile.in</filename></quote> matches at any
319     depth.
320     </para>
321     </listitem>
322     <listitem>
323     <para>
324     The backslash (<literal>\</literal>) is used to remove the magic
325     from the next character; see table below.
326     </para>
327     </listitem>
328     </itemizedlist>
329     <informaltable>
330     <tgroup cols="2">
331     <thead>
332     <row>
333     <entry>Escape sequence</entry>
334     <entry>Matches</entry>
335     </row>
336     </thead>
337     <tbody>
338     <row>
339     <entry><literal>\*</literal></entry>
340     <entry>star (asterisk)</entry>
341     </row>
342     <row>
343     <entry><literal>\?</literal></entry>
344     <entry>question mark</entry>
345     </row>
346     <row>
347     <entry><literal>\\</literal></entry>
348     <entry>backslash</entry>
349     </row>
350     </tbody>
351     </tgroup>
352     </informaltable>
353     Any other character following a backslash is an error.
354     </para>
355     <para>
356     Multiple <varname>Files</varname> paragraphs are allowed. The last
357     paragraph that matches a particular file applies to it.
358     </para>
359     <para>
360     Exclusions are done by having multiple <varname>Files</varname>
361     paragraphs.
362     </para>
363     </section>
364    
365     <section id="copyright-files-field">
366     <title><varname>Copyright</varname></title>
367     <para>
368     Required line based list: one or more free-form copyright
369     statement(s), one per line, that apply to the files matched by the
370     above pattern. If a work has no copyright holder (i.e., it is in
371     the public domain), that information should be recorded here.
372     </para>
373     <para>
374     The <varname>Copyright</varname> field collects all relevant copyright
375     notices for the files of this paragraph. Not all copyright notices
376     may apply to every individual file, and years of publication for one
377     copyright holder may be gathered together. For example, if file A
378     has:
379     <programlisting>Copyright 2008 John Smith
380     Copyright 2009 Angela Watts</programlisting>
381     and file B has:
382     <programlisting>Copyright 2010 Angela Watts</programlisting>
383     the <varname>Copyright</varname> field for a stanza
384     covering both file A and file B need contain only:
385     <programlisting>Copyright 2008 John Smith
386     Copyright 2009, 2010 Angela Watts</programlisting>
387     </para>
388     <para>
389     The <varname>Copyright</varname> field may contain the original
390     copyright statement copied exactly (including the word
391     <quote>Copyright</quote>), or it can shorten the text, as long
392     as it does not sacrifice information. Examples in this specification
393     use both forms.
394     </para>
395     </section>
396    
397     <section id="license-files-field">
398     <title><varname>License</varname></title>
399     <para>
400     Required formatted text, with synopsis: licensing terms for the files
401     listed in <varname>Files</varname> field for this paragraph.
402     </para>
403     <para>
404     First line: an abbreviated name for the license, or expression
405     giving alternatives (see <link linkend="license-short-name">Short
406     names</link> section for a list of standard abbreviations). If there
407     are licenses present in the package without a standard short name, an
408     arbitrary short name may be assigned for these licenses. These
409     arbitrary names are only guaranteed to be unique within a single
410     copyright file.
411     </para>
412     <para>
413     Remaining lines: if left blank here, the file
414     <emphasis>must</emphasis> include a stand-alone
415     <varname>License</varname> paragraph matching each license short
416     name listed on the first line (see the <link
417     linkend="stand-alone-license-paragraph">Standalone License
418     Paragraph</link> section). Otherwise, this field should either
419     include the full text of the license(s) or include a pointer to the
420     license file under <filename>/usr/share/common-licenses</filename>.
421     This field should include all text needed in order to fulfill both
422     Debian Policy's requirement for including a copy of the software's
423     distribution license (<ulink
424     url="http://www.debian.org/doc/debian-policy/ch-docs#s-copyrightfile">12.5</ulink>),
425     and any license requirements to include warranty disclaimers or other
426     notices with the binary package.
427     </para>
428     </section>
429    
430     <section id="comment-files-field">
431     <title><varname>Comment</varname></title>
432     <para>
433     Same as the <link linkend="comment-header-field">
434     <varname>Comment</varname></link> field in the header paragraph.
435     </para>
436     </section>
437    
438     <section id="example-files-paragraph">
439     <title>Example files paragraphs</title>
440     <programlisting>Files: *
441     Copyright: 1975-2010 Ulla Upstream
442     License: GPL-2+
443    
444     Files: debian/*
445     Copyright: 2010 Daniela Debianizer
446     License: GPL-2+
447    
448     Files: debian/patches/fancy-feature
449     Copyright: 2010 Daniela Debianizer
450     License: GPL-3+
451    
452     Files: */*.1
453     Copyright: 2010 Manuela Manpager
454     License: GPL-2+</programlisting>
455     <para>
456     In this example, all files are copyright by the upstream and licensed
457     under the GPL, version 2 or later, with three exceptions. All the
458     Debian packaging files are copyright by the packager, and further one
459     specific file providing a new feature is licensed differently.
460     Finally, there are some manual pages added to the package, written by
461     a third person.
462     </para>
463     </section>
464     </section>
465    
466     <section id="stand-alone-license-paragraph">
467     <title>Standalone License Paragraph (Optional, Repeatable)</title>
468     <para>
469     Where a set of files are dual (tri, etc) licensed, or when the same
470     license occurs multiple times, you can use a single line
471     <varname>License</varname> field and standalone
472     <varname>License</varname> paragraphs to expand the license short names.
473     </para>
474     <example>
475     <title>tri-licensed files</title>
476     <programlisting>Files: src/js/editline/*
477     Copyright: 1993, John Doe
478     1993, Joe Average
479     License: MPL-1.1 or GPL-2 or LGPL-2.1
480    
481     License: MPL-1.1
482     [LICENSE TEXT]
483    
484     License: GPL-2
485     [LICENSE TEXT]
486    
487     License: LGPL-2.1
488 vorlon 215 [LICENSE TEXT]</programlisting>
489 vorlon 210 </example>
490    
491     <example>
492     <title>recurrent license</title>
493     <programlisting>Files: src/js/editline/*
494     Copyright: 1993, John Doe
495     1993, Joe Average
496     License: MPL-1.1
497    
498     Files: src/js/fdlibm/*
499     Copyright: 1993, J-Random Corporation
500     License: MPL-1.1
501    
502     License: MPL-1.1
503     [LICENSE TEXT]</programlisting>
504     </example>
505     </section>
506     </section>
507    
508     <section id="license-specification">
509     <title>License specification</title>
510    
511     <section id="license-short-name">
512     <title>Short name</title>
513     <para>
514     Much of the value of a machine-parseable copyright file lies in being
515     able to correlate the licenses of multiple pieces of software. To that
516     end, this spec defines standard short names for a number of commonly
517     used licenses, which can be used in the first line of a
518     <varname>License</varname> field.
519     </para>
520     <para>
521     These short names have the specified meanings across all uses of this
522     file format, and <emphasis>must not</emphasis> be used to refer to any
523     other licenses. Parsers may thus rely on these short names referring to
524     the same licenses wherever they occur, without needing to parse or
525     compare the full license text.
526     </para>
527     <para>
528     From time to time, licenses may be added to or removed from the list of
529     standard short names. Such changes in the list of short names will
530     always be accompanied by changes to the recommended
531     <varname>Format</varname> value. Implementers who are parsing copyright
532     files should take care not to assume anything about the meaning of
533     license short names for unknown <varname>Format</varname> versions.
534     </para>
535     <para>
536     Use of a standard short name does not override the Debian Policy
537     requirement to include the full license text in
538     <filename>debian/copyright</filename>, nor any requirements in the
539     license of the work regarding reproduction of legal notices. This
540     information must still be included in the <varname>License</varname>
541     field, either in a stand-alone license paragraph or in the relevant
542     files paragraph.
543     </para>
544     <para>
545     For licenses which have multiple versions in use, the version number is
546     added, using a dash as a separator. If omitted, the lowest version
547     number is implied. When the license grant permits using the terms of any
548     later version of that license, the short name is finished with a plus
549     sign. For <link linkend="spdx">SPDX</link> compatibility, trailing
550     <emphasis>dot-zeroes</emphasis> are considered to be equal to plainer
551     version (e.g., <quote>2.0.0</quote> is considered equal to
552     <quote>2.0</quote> and <quote>2</quote>).
553     </para>
554     <para>
555     Currently, the full text of the licenses is only available in the <ulink
556     url="http://spdx.org/licenses">SPDX Open Source License Registry</ulink>.
557     </para>
558     <informaltable>
559     <tgroup cols="2">
560     <thead>
561     <row>
562     <entry>Keyword</entry>
563     <entry>Meaning</entry>
564     </row>
565     </thead>
566     <tbody>
567     <row>
568     <entry>public-domain</entry>
569     <entry>
570     No license required for any purpose; the work is not subject to
571     copyright in any jurisdiction.
572     </entry>
573     </row>
574     <row>
575     <entry>
576     Apache
577     </entry>
578     <entry>
579     Apache license
580 vorlon 219 <ulink url="http://spdx.org/licenses/Apache-1.0">1.0</ulink>,
581     <ulink url="http://spdx.org/licenses/Apache-2.0">2.0</ulink>.
582 vorlon 210 </entry>
583     </row>
584     <row>
585     <entry>
586     Artistic
587     </entry>
588     <entry>
589     Artistic license
590     <ulink url="http://spdx.org/licenses/Artistic-1.0">1.0</ulink>,
591     <ulink url="http://spdx.org/licenses/Artistic-2.0">2.0</ulink>.
592     </entry>
593     </row>
594     <row>
595     <entry>
596     BSD-2-clause
597     </entry>
598     <entry>
599     Berkeley software distribution license,
600     <ulink url="http://spdx.org/licenses/BSD-2-Clause">2-clause
601     version</ulink>.
602     </entry>
603     </row>
604     <row>
605     <entry>
606     BSD-3-clause
607     </entry>
608     <entry>
609     Berkeley software distribution license,
610     <ulink url="http://spdx.org/licenses/BSD-3-Clause">3-clause
611     version</ulink>.
612     </entry>
613     </row>
614     <row>
615     <entry>
616     BSD-4-clause
617     </entry>
618     <entry>
619     Berkeley software distribution license,
620     <ulink url="http://spdx.org/licenses/BSD-4-Clause">4-clause
621     version</ulink>.
622     </entry>
623     </row>
624     <row>
625     <entry>
626     ISC
627     </entry>
628     <entry>
629     <ulink url="http://spdx.org/licenses/ISC">Internet Software
630     Consortium</ulink>, sometimes also known as the OpenBSD License.
631     </entry>
632     </row>
633     <row>
634     <entry>
635     CC-BY
636     </entry>
637     <entry>
638     Creative Commons Attribution license
639     <ulink url="http://spdx.org/licenses/CC-BY-1.0">1.0</ulink>,
640     <ulink url="http://spdx.org/licenses/CC-BY-2.0">2.0</ulink>,
641     <ulink url="http://spdx.org/licenses/CC-BY-2.5">2.5</ulink>,
642     <ulink url="http://spdx.org/licenses/CC-BY-3.0">3.0</ulink>.
643     </entry>
644     </row>
645     <row>
646     <entry>
647     CC-BY-SA
648     </entry>
649     <entry>
650     Creative Commons Attribution Share Alike license
651     <ulink url="http://spdx.org/licenses/CC-BY-SA-1.0">1.0</ulink>,
652     <ulink url="http://spdx.org/licenses/CC-BY-SA-2.0">2.0</ulink>,
653     <ulink url="http://spdx.org/licenses/CC-BY-SA-2.5">2.5</ulink>,
654     <ulink url="http://spdx.org/licenses/CC-BY-SA-3.0">3.0</ulink>.
655     </entry>
656     </row>
657     <row>
658     <entry>
659     CC-BY-ND
660     </entry>
661     <entry>
662     Creative Commons Attribution No Derivatives license
663     <ulink url="http://spdx.org/licenses/CC-BY-ND-1.0">1.0</ulink>,
664     <ulink url="http://spdx.org/licenses/CC-BY-ND-2.0">2.0</ulink>,
665     <ulink url="http://spdx.org/licenses/CC-BY-ND-2.5">2.5</ulink>,
666     <ulink url="http://spdx.org/licenses/CC-BY-ND-3.0">3.0</ulink>.
667     </entry>
668     </row>
669     <row>
670     <entry>
671     CC-BY-NC
672     </entry>
673     <entry>
674     Creative Commons Attribution Non-Commercial license
675     <ulink url="http://spdx.org/licenses/CC-BY-NC-1.0">1.0</ulink>,
676     <ulink url="http://spdx.org/licenses/CC-BY-NC-2.0">2.0</ulink>,
677     <ulink url="http://spdx.org/licenses/CC-BY-NC-2.5">2.5</ulink>,
678     <ulink url="http://spdx.org/licenses/CC-BY-NC-3.0">3.0</ulink>.
679     </entry>
680     </row>
681     <row>
682     <entry>
683     CC-BY-NC-SA
684     </entry>
685     <entry>
686     Creative Commons Attribution Non-Commercial Share Alike license
687     <ulink url="http://spdx.org/licenses/CC-BY-NC-SA-1.0">1.0</ulink>,
688     <ulink url="http://spdx.org/licenses/CC-BY-NC-SA-2.0">2.0</ulink>,
689     <ulink url="http://spdx.org/licenses/CC-BY-NC-SA-2.5">2.5</ulink>,
690     <ulink url="http://spdx.org/licenses/CC-BY-NC-SA-3.0">3.0</ulink>.
691     </entry>
692     </row>
693     <row>
694     <entry>
695     CC-BY-NC-ND
696     </entry>
697     <entry>
698     Creative Commons Attribution Non-Commercial No Derivatives license
699     <ulink url="http://spdx.org/licenses/CC-BY-NC-ND-1.0">1.0</ulink>,
700     <ulink url="http://spdx.org/licenses/CC-BY-NC-ND-2.0">2.0</ulink>,
701     <ulink url="http://spdx.org/licenses/CC-BY-NC-ND-2.5">2.5</ulink>,
702     <ulink url="http://spdx.org/licenses/CC-BY-NC-ND-3.0">3.0</ulink>.
703     </entry>
704     </row>
705     <row>
706     <entry>
707     CC0
708     </entry>
709     <entry>
710 vorlon 220 Creative Commons Zero
711     <ulink url="http://spdx.org/licenses/CC0-1.0">1.0 Universal</ulink>.
712 vorlon 210 </entry>
713     </row>
714     <row>
715     <entry>
716     CDDL
717     </entry>
718     <entry>
719 vorlon 219 Common Development and Distribution License
720     <ulink url="http://spdx.org/licenses/CDDL-1.0">1.0</ulink>.
721 vorlon 210 </entry>
722     </row>
723     <row>
724     <entry>
725     CPL
726     </entry>
727     <entry>
728     <ulink url="http://spdx.org/licenses/CPL-1.0">IBM Common Public
729     License</ulink>.
730     </entry>
731     </row>
732     <row>
733     <entry>
734     EFL
735     </entry>
736     <entry>
737     The Eiffel Forum License
738     <ulink url="http://spdx.org/licenses/EFL-1.0">1.0</ulink>,
739     <ulink url="http://spdx.org/licenses/EFL-2.0">2.0</ulink>.
740     </entry>
741     </row>
742     <row>
743     <entry>
744     Expat
745     </entry>
746     <entry>
747     The <ulink url="http://www.jclark.com/xml/copying.txt">Expat</ulink>
748     license.
749     </entry>
750     </row>
751     <row>
752     <entry>
753     GPL
754     </entry>
755     <entry>
756     GNU General Public License
757     <ulink url="http://spdx.org/licenses/GPL-1.0">1.0</ulink>,
758     <ulink url="http://spdx.org/licenses/GPL-2.0">2.0</ulink>,
759     <ulink url="http://spdx.org/licenses/GPL-3.0">3.0</ulink>.
760     </entry>
761     </row>
762     <row>
763     <entry>
764     LGPL
765     </entry>
766     <entry>
767     GNU Lesser General Public License
768     <ulink url="http://spdx.org/licenses/LGPL-2.1">2.1</ulink>,
769     <ulink url="http://spdx.org/licenses/LGPL-3.0">3.0</ulink>, or
770     GNU Library General Public License
771     <ulink url="http://spdx.org/licenses/LGPL-2.0">2.0</ulink>.
772     </entry>
773     </row>
774     <row>
775     <entry>
776     GFDL
777     </entry>
778     <entry>
779 vorlon 219 GNU Free Documentation License 1.0, or
780     <ulink url="http://spdx.org/licenses/GFDL-1.1">1.1</ulink>.
781 vorlon 210 </entry>
782     </row>
783     <row>
784     <entry>
785     GFDL-NIV
786     </entry>
787     <entry>
788     GNU Free Documentation License, with no invariant sections.
789     </entry>
790     </row>
791     <row>
792     <entry>
793     LPPL
794     </entry>
795     <entry>
796     <ulink url="http://www.latex-project.org/lppl/">LaTeX Project
797     Public License</ulink>
798     <ulink url="http://spdx.org/licenses/LPPL-1.0">1.0</ulink>,
799     <ulink url="http://spdx.org/licenses/LPPL-1.1">1.1</ulink>,
800     <ulink url="http://spdx.org/licenses/LPPL-1.2">1.2</ulink>,
801     <ulink url="http://spdx.org/licenses/LPPL-1.3c">1.3c</ulink>.
802     </entry>
803     </row>
804     <row>
805     <entry>
806     MPL
807     </entry>
808     <entry>
809     Mozilla Public License
810     <ulink url="http://spdx.org/licenses/MPL-1.1">1.1</ulink>.
811     </entry>
812     </row>
813     <row>
814     <entry>
815     Perl
816     </entry>
817     <entry>
818     <ulink url="http://dev.perl.org/licenses/">Perl</ulink> license
819     (use <quote><literal>GPL-1+ or Artistic-1</literal></quote>
820     instead).
821     </entry>
822     </row>
823     <row>
824     <entry>
825 vorlon 219 Python
826 vorlon 210 </entry>
827     <entry>
828 vorlon 219 Python license
829     <ulink url="http://spdx.org/licenses/Python-2.0">2.0</ulink>.
830 vorlon 210 </entry>
831 vorlon 219 <!-- See https://fossbazaar.org/pipermail/spdx-legal/2011-February/000010.html -->
832 vorlon 210 </row>
833     <row>
834     <entry>
835     QPL
836     </entry>
837     <entry>
838     Q Public License <ulink
839     url="http://spdx.org/licenses/QPL-1.0">1.0</ulink>.
840     </entry>
841     </row>
842     <row>
843     <entry>
844     W3C
845     </entry>
846     <entry>
847     <ulink url="http://spdx.org/licenses/W3C">W3C Software
848     License</ulink> For more information, consult the
849     <ulink
850     url="http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620">W3C
851     Intellectual Rights FAQ</ulink>.
852     </entry>
853     </row>
854     <row>
855     <entry>
856     Zlib
857     </entry>
858     <entry>
859     <ulink url="http://spdx.org/licenses/Zlib">
860     zlib/libpng license</ulink>.
861     </entry>
862     </row>
863     <row>
864     <entry>
865     Zope
866     </entry>
867     <entry>
868 vorlon 219 Zope Public License 1.0,
869     <ulink url="http://spdx.org/licenses/ZPL-1.1">1.1</ulink>,
870 vorlon 210 <ulink url="http://spdx.org/licenses/ZPL-2.0">2.0</ulink>,
871     <ulink url="http://spdx.org/licenses/ZPL-2.1">2.1</ulink>.
872     </entry>
873     </row>
874     </tbody>
875     </tgroup>
876     </informaltable>
877     <para>
878     There are <ulink
879     url="http://en.wikipedia.org/wiki/MIT_License#Various_versions">many
880     versions of the MIT license</ulink>. Please use Expat instead, when it
881     matches.
882     </para>
883     <para>
884     An exception or clarification to a license is signaled in plain text, by appending
885     <literal>with <varname><replaceable>keywords</replaceable></varname>
886     exception</literal> to the short name. This document provides a list of
887     keywords that must be used when referring to the most frequent
888     exceptions. When exceptions other than these are in effect that modify
889     a common license by granting additional permissions, you may use an
890     arbitrary keyword not taken from the below list of keywords. When a
891     license differs from a common license because of added restrictions
892     rather than because of added permissions, a distinct short name should
893     be used instead of <literal>with
894     <varname><replaceable>keywords</replaceable></varname>exception</literal>.
895     </para>
896     <para>
897     Only one exception may be specified for each license within a given
898     license specification. If more than one exception applies to a single
899     license, an arbitrary short name must be used instead.
900     </para>
901     <para>
902     The GPL <literal>Font</literal> exception refers to the text added to the
903     license notice of each file as specified at <ulink
904     url="http://www.gnu.org/licenses/gpl-faq#FontException">How does the GPL
905     apply to fonts</ulink>. The precise text corresponding to this
906     exception is:
907     <programlisting>As a special exception, if you create a document which uses this font,
908     and embed this font or unaltered portions of this font into the
909     document, this font does not by itself cause the resulting document to
910     be covered by the GNU General Public License. This exception does not
911     however invalidate any other reasons why the document might be covered
912     by the GNU General Public License. If you modify this font, you may
913     extend this exception to your version of the font, but you are not
914     obligated to do so. If you do not wish to do so, delete this exception
915     statement from your version.</programlisting>
916     </para>
917     <para>
918     The GPL <literal>OpenSSL</literal> exception gives permission to link GPL-licensed
919     code with the OpenSSL library, which contains GPL-incompatible clauses.
920     For more information, see <ulink
921     url="http://www.gnome.org/~markmc/openssl-and-the-gpl">The -OpenSSL License and
922     The GPL</ulink> by Mark
923     McLoughlin and the message <ulink
924     url="http://lists.debian.org/debian-legal/2004/05/msg00595.html">middleman
925     software license conflicts with OpenSSL</ulink>
926     by Mark McLoughlin on the <emphasis>debian-legal</emphasis> mailing list. The text corresponding
927     to this exception is:
928     <programlisting>In addition, as a special exception, the copyright holders give
929     permission to link the code of portions of this program with the
930     OpenSSL library under certain conditions as described in each
931     individual source file, and distribute linked combinations including
932     the two.
933    
934     You must obey the GNU General Public License in all respects for all
935     of the code used other than OpenSSL. If you modify file(s) with this
936     exception, you may extend this exception to your version of the
937     file(s), but you are not obligated to do so. If you do not wish to do
938     so, delete this exception statement from your version. If you delete
939     this exception statement from all source files in the program, then
940     also delete it here.</programlisting>
941     </para>
942    
943     <section id="public-domain">
944     <title>Public domain</title>
945     <para>
946     The <varname>License</varname> short name
947     <literal>public-domain</literal> does not refer to a set of license
948     terms. There are some works which are not subject to copyright in
949     any jurisdiction and therefore no license is required for any
950     purpose covered by copyright law. This short name is an explicit
951     declaration that the associated files are <quote>in the public
952     domain</quote>.
953     </para>
954     <para>
955     Widespread misunderstanding about copyright in general, and the
956     public domain in particular, results in the common assertion that a
957     work is in the public domain when this is partly or wholly untrue
958     for that work. The <ulink
959     url="http://en.wikipedia.org/wiki/Public_domain">Wikipedia article
960     on public domain</ulink> is a useful reference for this subject.
961     </para>
962     <para>
963     When the <varname>License</varname> field in a paragraph has the
964     short name <literal>public-domain</literal>, the remaining lines of
965     the field <emphasis>must</emphasis> explain exactly what exemption
966     the corresponding files for that paragraph have from default
967     copyright restrictions.
968     </para>
969     </section>
970     </section>
971    
972     <section id="license-syntax">
973     <title>Syntax</title>
974     <para>
975     License names are case-insensitive, and may not contain spaces.
976     </para>
977     <para>
978     In case of multi-licensing, the license short names are separated by
979     <literal>or</literal> when the user can chose between different licenses,
980     and by <literal>and</literal> when use of the work must simultaneously
981     comply with the terms of multiple licenses.
982     </para>
983     <para>
984     For instance, this is a simple, <quote>GPL version 2 or later</quote>
985     field:
986     <programlisting>License: GPL-2+</programlisting>
987     This is a dual-licensed GPL/Artistic work such as Perl:
988     <programlisting>License: GPL-1+ or Artistic</programlisting>
989     This is for a file that has both GPL and classic BSD code in it:
990     <programlisting>License: GPL-2+ and BSD</programlisting>
991     For the most complex cases, the comma is used to disambiguate the
992     priority of <literal>or</literal>s and <literal>and</literal>s
993     <literal>and</literal> has the priority over <literal>or</literal>,
994     unless preceded by a comma. For instance:
995     </para>
996     <simpara>
997     <literal>A or B and C</literal> means <literal>A or (B and C)</literal>.
998     </simpara>
999     <simpara>
1000     <literal>A or B, and C</literal> means <literal>(A or B), and
1001     C</literal>.
1002     </simpara>
1003     <para>
1004     This is for a file that has Perl code and classic BSD code in it:
1005     <programlisting>License: GPL-2+ or Artistic-2.0, and BSD</programlisting>
1006     A <literal>GPL-2+</literal> work with the <literal>OpenSSL</literal>
1007     exception is in effect a dual-licensed work that can be redistributed
1008     either under the <literal>GPL-2+</literal>, or under the
1009     <literal>GPL-2+</literal> with the <literal>OpenSSL</literal> exception.
1010     It is thus expressed as <literal>GPL-2+ with OpenSSL
1011     exception</literal>:
1012     <programlisting>License: GPL-2+ with OpenSSL exception
1013     This program is free software; you can redistribute it
1014     and/or modify it under the terms of the GNU General Public
1015     License as published by the Free Software Foundation; either
1016     version 2 of the License, or (at your option) any later
1017     version.
1018     .
1019     In addition, as a special exception, the author of this
1020     program gives permission to link the code of its
1021     release with the OpenSSL project's "OpenSSL" library (or
1022     with modified versions of it that use the same license as
1023     the "OpenSSL" library), and distribute the linked
1024     executables. You must obey the GNU General Public
1025     License in all respects for all of the code used other
1026     than "OpenSSL". If you modify this file, you may extend
1027     this exception to your version of the file, but you are
1028     not obligated to do so. If you do not wish to do so,
1029     delete this exception statement from your version.
1030     .
1031     This program is distributed in the hope that it will be
1032     useful, but WITHOUT ANY WARRANTY; without even the implied
1033     warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1034     PURPOSE. See the GNU General Public License for more
1035     details.
1036     .
1037     You should have received a copy of the GNU General Public
1038     License along with this package; if not, write to the Free
1039     Software Foundation, Inc., 51 Franklin St, Fifth Floor,
1040     Boston, MA 02110-1301 USA
1041     .
1042     On Debian systems, the full text of the GNU General Public
1043     License version 2 can be found in the file
1044     `/usr/share/common-licenses/GPL-2'.</programlisting>
1045     </para>
1046     </section>
1047    
1048     <section id="spdx">
1049     <title>SPDX</title>
1050     <para>
1051     <ulink url="http://spdx.org/">SPDX</ulink> is an attempt to standardize
1052     a format for communicating the components, licenses and copyrights
1053     associated with a software package. It and the machine-readable
1054     <filename>debian/copyright</filename> format attempt to be somewhat
1055     compatible. However, the two formats have different aims, and so the
1056     formats are different. The <ulink
1057     url="http://wiki.debian.org/Proposals/CopyrightFormat">DEP5 wiki
1058     page</ulink> will be used to track the differences.
1059     </para>
1060     </section>
1061     </section>
1062    
1063     <section id="examples">
1064     <title>Examples</title>
1065     <example>
1066     <title>Simple</title>
1067     <para>
1068     A possible <filename>debian/copyright</filename> file for the program
1069     <quote>X Solitaire</quote> distributed in the Debian source package
1070     <literal>xsol</literal>:
1071 vorlon 215 <programlisting><![CDATA[Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1072 vorlon 210 Upstream-Name: X Solitaire
1073     Source: ftp://ftp.example.com/pub/games
1074    
1075     Files: *
1076     Copyright: Copyright 1998 John Doe <jdoe@example.com>
1077     License: GPL-2+
1078     This program is free software; you can redistribute it
1079     and/or modify it under the terms of the GNU General Public
1080     License as published by the Free Software Foundation; either
1081     version 2 of the License, or (at your option) any later
1082     version.
1083     .
1084     This program is distributed in the hope that it will be
1085     useful, but WITHOUT ANY WARRANTY; without even the implied
1086     warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1087     PURPOSE. See the GNU General Public License for more
1088     details.
1089     .
1090     You should have received a copy of the GNU General Public
1091     License along with this package; if not, write to the Free
1092     Software Foundation, Inc., 51 Franklin St, Fifth Floor,
1093     Boston, MA 02110-1301 USA
1094     .
1095     On Debian systems, the full text of the GNU General Public
1096     License version 2 can be found in the file
1097     `/usr/share/common-licenses/GPL-2'.
1098    
1099     Files: debian/*
1100     Copyright: Copyright 1998 Jane Smith <jsmith@example.net>
1101 vorlon 215 License: GPL-2+
1102 vorlon 210 [LICENSE TEXT]]]></programlisting>
1103     </para>
1104     </example>
1105    
1106     <example>
1107     <title>Complex</title>
1108     <para>
1109     A possible <filename>debian/copyright</filename> file for the program
1110     <quote>Planet Venus</quote>, distributed in the Debian source
1111     package <literal>planet-venus</literal>:
1112 vorlon 215 <programlisting><![CDATA[Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1113 vorlon 210 Upstream-Name: Planet Venus
1114     Upstream-Contact: John Doe <jdoe@example.com>
1115     Source: http://www.example.com/code/venus
1116    
1117     Files: *
1118     Copyright: 2008, John Doe <jdoe@example.com>
1119     2007, Jane Smith <jsmith@example.org>
1120     2007, Joe Average <joe@example.org>
1121     2007, J. Random User <jr@users.example.com>
1122     License: PSF-2
1123     [LICENSE TEXT]
1124    
1125     Files: debian/*
1126     Copyright: 2008, Dan Developer <dan@debian.example.com>
1127 vorlon 215 License: permissive
1128 vorlon 210 Copying and distribution of this package, with or without
1129     modification, are permitted in any medium without royalty
1130     provided the copyright notice and this notice are
1131     preserved.
1132    
1133     Files: debian/patches/theme-diveintomark.patch
1134     Copyright: 2008, Joe Hacker <hack@example.org>
1135     License: GPL-2+
1136     [LICENSE TEXT]
1137    
1138     Files: planet/vendor/compat_logging/*
1139     Copyright: 2002, Mark Smith <msmith@example.org>
1140     License: MIT
1141     [LICENSE TEXT]
1142    
1143     Files: planet/vendor/httplib2/*
1144     Copyright: 2006, John Brown <brown@example.org>
1145     License: MIT2
1146     Unspecified MIT style license.
1147    
1148     Files: planet/vendor/feedparser.py
1149     Copyright: 2007, Mike Smith <mike@example.org>
1150     License: PSF-2
1151     [LICENSE TEXT]
1152    
1153     Files: planet/vendor/htmltmpl.py
1154     Copyright: 2004, Thomas Brown <coder@example.org>
1155     License: GPL-2+
1156     This program is free software; you can redistribute it
1157     and/or modify it under the terms of the GNU General Public
1158     License as published by the Free Software Foundation; either
1159     version 2 of the License, or (at your option) any later
1160     version.
1161     .
1162     This program is distributed in the hope that it will be
1163     useful, but WITHOUT ANY WARRANTY; without even the implied
1164     warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
1165     PURPOSE. See the GNU General Public License for more
1166     details.
1167     .
1168     You should have received a copy of the GNU General Public
1169     License along with this package; if not, write to the Free
1170     Software Foundation, Inc., 51 Franklin St, Fifth Floor,
1171     Boston, MA 02110-1301 USA
1172     .
1173     On Debian systems, the full text of the GNU General Public
1174     License version 2 can be found in the file
1175     `/usr/share/common-licenses/GPL-2'.]]></programlisting>
1176     </para>
1177     </example>
1178     </section>
1179    
1180     </article>

  ViewVC Help
Powered by ViewVC 1.1.5