Skip to content

Commit 28e871f

Browse files
committed
Improve GPL detection
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 4f15de1 commit 28e871f

16 files changed

+53
-49
lines changed

src/licensedcode/data/rules/gpl-1.0-plus_421.RULE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
license_expression: gpl-1.0-plus
33
is_license_notice: yes
44
relevance: 100
5+
skip_for_required_phrase_generation: yes
56
---
67

78
is distributed in the hope that it will be useful,
89
but WITHOUT ANY WARRANTY; without even the implied warranty of
910
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10-
{{GNU General Public License}} for more details.
11+
{{GNU General Public License}} for more details.

src/licensedcode/data/rules/gpl-2.0-plus_107.RULE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ is_license_notice: yes
44
---
55

66
is free software; you can redistribute it and/or modify
7-
it under the terms of the GNU General Public Licence as published by
7+
it under the terms of the {{GNU General Public Licence as published by
88
the Free Software Foundation; either version 2 of the Licence, or
9-
(at your option) any later version.
9+
(at your option) any later version}}.
1010
You should have received a copy of the GNU General Public Licence
1111
along with ; if not, write to the Free Software Foundation, Inc.,
12-
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
12+
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
---
2-
license_expression: gpl-2.0-plus
2+
license_expression: gpl-2.0-plus AND gpl-3.0-plus
33
is_license_notice: yes
4-
notes: Pychess german notice text
4+
notes: Pychess german notice text. Note the combo of 2 and 3 versions. Maybe a translation typo?
55
---
66

77
PyChess is free software; you can redistribute it and/or modify
8-
it under the terms of the {{GNU General Public License as published by
9-
the Free Software Foundation; either version 2 of the License, or
10-
(at your option) any later version}}.
8+
it under the terms of the {{GNU General Public License}} as published by
9+
the Free Software Foundation; {{either version 2}} of the License, or
10+
{{(at your option) any later version}}.
1111

1212
PyChess is distributed in the hope that it will be useful,
1313
but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
{{GNU General Public License}} for more details.
15+
GNU General Public License for more details.
1616

17-
You should have received a copy of the {{GNU General Public License}}
17+
You should have received a copy of the GNU General Public License
1818
along with PyChess; if not, write to the Free Software Foundation, Inc.,
1919
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2020

21-
PyChess ist freie Software. Sie können es unter den Bedingungen der {{GNU
21+
PyChess ist freie Software. Sie können es unter den Bedingungen der GNU
2222
General
23-
Public License}}, wie von der Free Software Foundation veröffentlicht,
23+
Public License, wie von der Free Software Foundation veröffentlicht,
2424
weitergeben und/oder
25-
modifizieren, entweder gemass Version 3 der Lizenz oder (nach Ihrer Option)
25+
modifizieren, {{entweder gemass Version 3 der Lizenz}} oder {{(nach Ihrer Option)}}
2626
jeder späteren
2727
Version.
2828

@@ -31,11 +31,11 @@ Nutzen
3131
sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie
3232
der MARKTREIFE
3333
oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in
34-
der {{GNU General
35-
Public License}}.
34+
der GNU General
35+
Public License.
3636

37-
Sie sollten ein Exemplar der {{GNU General Public License}} zusammen mit PyChess
37+
Sie sollten ein Exemplar der GNU General Public License zusammen mit PyChess
3838

3939
erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation,
4040

41-
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
41+
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.

src/licensedcode/data/rules/gpl-2.0-plus_31.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
license_expression: gpl-2.0-plus
3-
is_license_reference: yes
3+
is_license_notice: yes
44
relevance: 80
55
minimum_coverage: 100
66
referenced_filenames:

src/licensedcode/data/rules/gpl-2.0-plus_4.RULE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ is_license_notice: yes
44
---
55

66
is free software; you can redistribute it and/or
7-
modify it under the terms of the GNU General Public Licence
7+
modify it under the terms of the {{GNU General Public Licence
88
as published by the Free Software Foundation; either version 2
9-
of the Licence, or (at your option) any later version.
9+
of the Licence, or (at your option) any later version.}}
1010
is distributed in the hope that it will be useful,
1111
but WITHOUT ANY WARRANTY; without even the implied warranty of
1212
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
GNU General Public Licence for more details.
1414
You should have received a copy of the GNU General Public Licence
1515
along with ; if not, write to the Free Software Foundation,
16-
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

src/licensedcode/data/rules/gpl-2.0-plus_403.RULE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ relevance: 100
77
* This program is free software; you can redistribute it and/or modify it
88
* under the terms of the {{GNU General Public License}} as published by the
99
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
10-
* 02110-1301 USA; either version 2 of the License, or (at your option) any
11-
* later version;
10+
* 02110-1301 USA; {{either version 2 of the License, or (at your option) any
11+
* later version;}}

src/licensedcode/data/rules/gpl-2.0-plus_41.RULE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ notes: Pychess template
55
---
66

77
is free software; you can redistribute it and/or modify
8-
it under the terms of the {{GNU General Public License as published by
9-
the Free Software Foundation; either version 2 of the License, or
10-
(at your option) any later version}}.
8+
it under the terms of the {{GNU General Public License}} as published by
9+
the Free Software Foundation; {{either version 2 of the License,}} or
10+
{{(at your option) any later version}}.
1111

1212
PyChess is distributed in the hope that it will be useful,
1313
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,4 +16,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1616

1717
You should have received a copy of the {{GNU General Public License}}
1818
along with PyChess; if not, write to the Free Software Foundation, Inc.
19-
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
license_expression: gpl-2.0-plus
33
is_license_notice: yes
4-
is_required_phrase: yes
54
relevance: 100
5+
skip_for_required_phrase_generation: yes
66
---
77

8-
GNU General Public License as published by\n"
8+
{{GNU General Public License as published by\n"
99
"the Free Software Foundation; either version 2 of the License, or\n"
10-
"(at your option) any later version
10+
"(at your option) any later version}}

src/licensedcode/data/rules/gpl-2.0_or_gpl-3.0_11.RULE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ is_license_notice: yes
55

66
is free software; you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation; either version 2 or 3 of the License.
8+
the Free Software Foundation; {{either version 2 or 3 of the License}}.

src/licensedcode/data/rules/gpl-3.0-plus_pychess.RULE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ is_license_notice: yes
44
notes: German Pychess
55
---
66

7-
PyChess ist freie Software. Sie können es unter den Bedingungen der {{GNU
7+
PyChess ist freie Software. Sie können es unter den Bedingungen der GNU
88
General
9-
Public License}}, wie von der Free Software Foundation veröffentlicht,
9+
Public License, wie von der Free Software Foundation veröffentlicht,
1010
weitergeben und/oder
11-
modifizieren, entweder gemass Version 3 der Lizenz oder (nach Ihrer Option)
11+
modifizieren, {{entweder gemass Version 3 der Lizenz oder (nach Ihrer Option)}}
1212
jeder späteren
1313
Version.
1414

@@ -17,9 +17,9 @@ Nutzen
1717
sein wird, aber OHNE IRGENDEINE GARANTIE, sogar ohne die implizite Garantie
1818
der MARKTREIFE
1919
oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Details finden Sie in
20-
der {{GNU General
21-
Public License}}.
20+
der GNU General
21+
Public License.
2222

2323
Sie sollten ein Exemplar der {{GNU General Public License}} zusammen mit PyChess
2424

25-
erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation,
25+
erhalten haben. Falls nicht, schreiben Sie an die Free Software Foundation,

0 commit comments

Comments
 (0)