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