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

  ViewVC Help
Powered by ViewVC 1.1.5