-
Notifications
You must be signed in to change notification settings - Fork 5
/
license-check.spec
72 lines (53 loc) · 2.15 KB
/
license-check.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%global oslc_ver 3.0
%global oslc_licenses_dir %{_datadir}/oslc-%{oslc_ver}/licenses/
Summary: Tool to find out project's licences
Name: license-check
Version: 0.3
Release: 4%{?dist}
License: ASL 2.0
URL: https://github.com/fabric8-analytics/license-check
# ./make_archive.sh
Source0: license-check-%{version}.tar.gz
BuildArch: noarch
Requires: oslc
%description
Goal of this tool is to find out licences used by project and potentially some licences issues.
%prep
%setup -q
%install
mkdir -p %{buildroot}%{_bindir}
cp -av license_check.py %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -av pelc-packages-fixtures-license.json %{buildroot}%{_datadir}/%{name}
%posttrans
# remove some weird license matches that produce too many false positives
rm -f %{oslc_licenses_dir}{crc32,diffmark,license-f,copyright-f,clearsilver}.*
%files
%doc README.md
%{_bindir}/license_check.py
%{_datadir}/%{name}/pelc-packages-fixtures-license.json
%changelog
* Tue May 09 2017 Jiri Popelka <[email protected]> - 0.3-4
- Fix the 'Forbidden Phrase' issue in oslc
- Remove clearsilver/ASL 1.1 license (false detected in e.g. Flask)
* Fri May 05 2017 Jiri Popelka <[email protected]> - 0.3-3
- Remove 'Forbidden Phrase'
- Raise OSLC_TRESHOLD
* Thu Apr 27 2017 Jiri Popelka <[email protected]> - 0.3-2
- renamed to license-check
* Tue Sep 13 2016 Slavek Kabrda <[email protected]> - 0.3-1
- 'details.license_stats[N].count` is now integer, not string
* Wed May 18 2016 Nick Coghlan <[email protected]> - 0.2-1
- Switched to the v2-0-0 license schema
- 'license' field renamed to 'variant_id'
- 'license_id' field renamed to 'license_name'
- 'name' field renamed to 'license_name'
- 'licenced_files' renamed to 'licensed_files'
* Tue May 17 2016 Nick Coghlan <[email protected]> - 0.1-4
- Remove remnants of previous licensecheck usage
* Tue Apr 26 2016 Jiri Popelka <[email protected]> - 0.1-3
- Python 3, no 'incompatibility' in output, README update
* Tue Apr 19 2016 Pavel Kajaba <[email protected]> - 0.1-2
- Dumped new_licenses folder, Added license mapping files into /usr/share
* Fri Feb 19 2016 Jiri Popelka <[email protected]> - 0.1-1
- initial release