Regra Geral
Regra geral: utilização de GPL (GNU Public License) como licença do software.
Utilização
Para aplicar é preciso:
- Pôr uma cópia do ficheiro LICENSE junto ao código-fonte do programa.
- Pôr um ficheiro README e numa caixa/página about (ou sobre em português), quando existir, o texto da licença (ver abaixo).
- Identificar as excepções à licença e acrescentar a nota respectiva no ficheiro README (ver explicação e exemplos abaixo).
- Pôr em cada ficheiro do código-fonte (como cabeçalho, dentro de um comentário):
<uma linha com o nome do ficheiro e para que serve> Copyright (C) 2003-2004 <autor> <email> Author(s): <o(s) vosso(s) nome(s)> For more information on licensing, read the README file. Para mais informações sobre o licenciamento, leia o ficheiro README.
C/C++/JAVA
/* <uma linha com o nome do ficheiro e para que serve> * Copyright (C) 2003-2004 <autor> <email> * Author(s): <o(s) vosso(s) nome(s)> * * For more information on licensing, read the README file. * Para mais informações sobre o licenciamento, leia o ficheiro README. */
Texto da licença a utilizar
<uma linha com o nome do programa e o que faz> Copyright (C) 2003-2004 <autor> <email> Author(s): <o(s) vosso(s) nome(s)> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Texto das excepções
A GPL não permite a linkagem e distribuição com software proprietário (como parte do mesmo pacote). Mas permite a adição de excepções para esses casos.
Para cada uma das excepções identificadas deve repetir-se o seguinte texto a seguir ao texto da licença:
In addition, as a special exception, <autor> gives permission to link the code of this program with the <nome da biblioteca> (or with modified versions of <nome da biblioteca> that use the same license as <nome da biblioteca>), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than <nome da biblioteca>. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
Alguns exemplos (para facilitar o copy&paste):
Finereader Engine
In addition, as a special exception, Biblioteca Nacional gives permission to link the code of this program with the Finereader Engine (or with modified versions of the Finereader Engine that use the same license as the Finereader Engine), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than the Finereader Engine. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
Java
Necessária para distribuir em conjunto com uma JVM proprietária - Sun, IBM.
In addition, as a special exception, Biblioteca Nacional gives permission to link the code of this program with any proprietary Java implementation and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than the proprietary Java implementation. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
Créditos
Texto adaptado de um originalmente escrito por João Miguel Neves para a Biblioteca Nacional.