Skip to content

Commit

Permalink
Fetch SPDX license exceptions (bsc#973404)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller committed Apr 6, 2016
1 parent 38209e8 commit 2822870
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ install:
install -d $(DESTDIR)$(servicedir)/format_spec_file.files
install -m 0755 prepare_spec patch_license $(DESTDIR)$(servicedir)/format_spec_file.files
install -m 0644 licenses_changes.txt $(DESTDIR)$(servicedir)/format_spec_file.files
install -m 0644 licences_exceptions.txt $(DESTDIR)$(servicedir)/format_spec_file.files

.PHONY: all install
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ MIT-feh | feh License
Frameworx-1.0 | Frameworx Open License 1.0
FreeImage | FreeImage Public License v1.0
FTL | Freetype Project License
FSFAP | FSF All Permissive License
FSFUL | FSF Unlimited License
FSFULLR | FSF Unlimited License (with License Retention)
Giftware | Giftware License
Expand Down Expand Up @@ -181,6 +182,11 @@ Leptonica | Leptonica License
LGPLLR | Lesser General Public License For Linguistic Resources
Libpng | libpng License
libtiff | libtiff License
LAL-1.2 | Licence Art Libre 1.2
LAL-1.3 | Licence Art Libre 1.3
LiLiQ-P-1.1 | Licence Libre du Qu?bec ? Permissive version 1.1
LiLiQ-Rplus-1.1 | Licence Libre du Qu?bec ? R?ciprocit? forte version 1.1
LiLiQ-R-1.1 | Licence Libre du Qu?bec ? R?ciprocit? version 1.1
LPL-1.02 | Lucent Public License v1.02
LPL-1.0 | Lucent Public License Version 1.0
MakeIndex | MakeIndex License
Expand Down Expand Up @@ -210,6 +216,7 @@ Newsletr | Newsletr License
NLPL | No Limit Public License
Nokia | Nokia Open Source License
NPOSL-3.0 | Non-Profit Open Software License 3.0
NLOD-1.0 | Norwegian Licence for Open Government Data
Noweb | Noweb License
NRL | NRL License
NTP | NTP License
Expand Down Expand Up @@ -243,6 +250,7 @@ OSL-2.0 | Open Software License 2.0
OSL-2.1 | Open Software License 2.1
OSL-3.0 | Open Software License 3.0
OpenSSL | OpenSSL License
OSET-PL-2.1 | OSET Public License version 2.1
PHP-3.0 | PHP License v3.0
PHP-3.01 | PHP License v3.01
Plexus | Plexus Classworlds License
Expand All @@ -264,6 +272,7 @@ SAX-PD | Sax Public Domain Notice
Saxpath | Saxpath License
SCEA | SCEA Shared Source License
SWL | Scheme Widget Library (SWL) Software License Agreement
SMPPL | Secure Messaging Protocol Public License
Sendmail | Sendmail License
SGI-B-1.0 | SGI Free Software License B v1.0
SGI-B-1.1 | SGI Free Software License B v1.1
Expand Down
7 changes: 7 additions & 0 deletions fetch-licenses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ unset IFS
rm licenses_changes.raw
) > README.md

for i in `w3m -dump -cols 1000 http://spdx.org/licenses/exceptions-index.html | grep "License Exception Text" | sed -e 's, *Y *License Exception Text,,; s, *License Exception Text,,; s,\s* \([^ ]*\)$,:\1,' | cut -d: -f2`; do
echo "$i" >> license_exceptions.ntxt ;
done

cat license_exceptions.ntxt | sort -u -o licences_exceptions.txt
rm license_exceptions.ntxt

cat licenses_changes.ntxt licenses_changes.ptxt | sort -u -o licenses_changes.stxt
( echo "First line" ; cat licenses_changes.stxt ) > licenses_changes.txt
rm licenses_changes.ntxt licenses_changes.stxt licenses_changes.ptxt
Expand Down
25 changes: 25 additions & 0 deletions licences_exceptions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
389-exception
Autoconf-exception-2.0
Autoconf-exception-3.0
Bison-exception-2.2
CLISP-exception-2.0
Classpath-exception-2.0
DigiRule-FOSS-exception
FLTK-exception
Fawkes-Runtime-exception
Font-exception-2.0
GCC-exception-2.0
GCC-exception-3.1
LZMA-exception
Libtool-exception
Nokia-Qt-exception-1.1
OCCT-exception-1.0
Qwt-exception-1.0
WxWindows-exception-3.1
eCos-exception-2.0
freertos-exception-2.0
gnu-javamail-exception
i2p-gpl-java-exception
mif-exception
openvpn-openssl-exception
u-boot-exception-2.0
18 changes: 18 additions & 0 deletions licenses_changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ ErlPL-1.1 Erlang Public License
ErlPL-1.1+ ErlPL-1.1+
Eurosym Eurosym
Eurosym+ Eurosym+
FSFAP FSFAP
FSFAP+ FSFAP+
FSFUL FSFUL
FSFUL+ FSFUL+
FSFULLR FSFULLR
Expand Down Expand Up @@ -435,6 +437,10 @@ JSON SUSE-JSON
JSON+ JSON+
JasPer-2.0 JasPer-2.0
JasPer-2.0+ JasPer-2.0+
LAL-1.2 LAL-1.2
LAL-1.2+ LAL-1.2+
LAL-1.3 LAL-1.3
LAL-1.3+ LAL-1.3+
LGPL-2.0 LGPL v2
LGPL-2.0 LGPL v2.0 only
LGPL-2.0 LGPL-2.0
Expand Down Expand Up @@ -490,6 +496,12 @@ Latex2e Latex2e
Latex2e+ Latex2e+
Leptonica Leptonica
Leptonica+ Leptonica+
LiLiQ-P-1.1 LiLiQ-P-1.1
LiLiQ-P-1.1+ LiLiQ-P-1.1+
LiLiQ-R-1.1 LiLiQ-R-1.1
LiLiQ-R-1.1+ LiLiQ-R-1.1+
LiLiQ-Rplus-1.1 LiLiQ-Rplus-1.1
LiLiQ-Rplus-1.1+ LiLiQ-Rplus-1.1+
Libpng Libpng
Libpng+ Libpng+
MIT Expat
Expand Down Expand Up @@ -553,6 +565,8 @@ NCSA NCSA
NCSA+ NCSA+
NGPL NGPL
NGPL+ NGPL+
NLOD-1.0 NLOD-1.0
NLOD-1.0+ NLOD-1.0+
NLPL NLPL
NLPL+ NLPL+
NOSL NOSL
Expand Down Expand Up @@ -635,6 +649,8 @@ OML+ OML+
OPL-1.0 OPL-1.0
OPL-1.0 Open Public License 1.0
OPL-1.0+ OPL-1.0+
OSET-PL-2.1 OSET-PL-2.1
OSET-PL-2.1+ OSET-PL-2.1+
OSL-1.0 OSL-1.0
OSL-1.0+ OSL-1.0+
OSL-1.1 OSL-1.1
Expand Down Expand Up @@ -711,6 +727,8 @@ SISSL-1.2 SISSL-1.2
SISSL-1.2+ SISSL-1.2+
SMLNJ SMLNJ
SMLNJ+ SMLNJ+
SMPPL SMPPL
SMPPL+ SMPPL+
SNIA SNIA
SNIA+ SNIA+
SPL-1.0 SPL-1.0
Expand Down

0 comments on commit 2822870

Please sign in to comment.