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

  ViewVC Help
Powered by ViewVC 1.1.5