Skip to content

Commit 8164f1e

Browse files
committed
Add MIT.txt to the package for MIT-licensed code
Some of the code in librpminspect is adapted from examples on this blog post: https://begriffs.com/posts/2019-05-23-unicode-icu.html The author has provided that code under the MIT license. The explanation, email, and a copy of the license are provided in the MIT.txt file. Signed-off-by: David Cantrell <[email protected]>
1 parent c559c86 commit 8164f1e

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed

MIT.txt

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Some of the source in lib/inspect_unicode.c is derived from code
2+
examples shown on this blog post:
3+
4+
https://begriffs.com/posts/2019-05-23-unicode-icu.html
5+
6+
The author states the source code examples on that post are available
7+
under the MIT license, which is noted below. Here is the email from
8+
the author indicating the license for the source code examples on the
9+
blog post:
10+
11+
12+
Date: Sun, 31 Oct 2021 14:43:54 -0500
13+
From: Joe Nelson <[email protected]>
14+
To: David Cantrell <[email protected]>
15+
Subject: Re: Code from your Unicode post in 2019
16+
Content-Type: text/plain; charset=utf-8
17+
Content-Disposition: inline
18+
19+
> Just wanted to say thanks for the detailed write up here:
20+
>
21+
> https://begriffs.com/posts/2019-05-23-unicode-icu.html
22+
>
23+
> About ICU and some specific examples. It has been helpful for me as I
24+
> have been working on some key Unicode errors.
25+
26+
Hi David, glad to hear it's helpful!
27+
28+
> I have used some lines from your examples here and there in my code,
29+
> but I noticed you don't have any license or copyright notice on your
30+
> code examples. Are these available under any particular license or
31+
> have you given it any thought?
32+
33+
Sure, you can use the code snippets under the MIT license. The text of
34+
the articles, though, is not open source.
35+
36+
37+
---------------------------------------------------------------------------
38+
39+
Copyright (c) 2019 Joe Nelson <[email protected]>
40+
41+
Permission is hereby granted, free of charge, to any person obtaining
42+
a copy of this software and associated documentation files (the
43+
"Software"), to deal in the Software without restriction, including
44+
without limitation the rights to use, copy, modify, merge, publish,
45+
distribute, sublicense, and/or sell copies of the Software, and to
46+
permit persons to whom the Software is furnished to do so, subject to
47+
the following conditions:
48+
49+
The above copyright notice and this permission notice (including the
50+
next paragraph) shall be included in all copies or substantial
51+
portions of the Software.
52+
53+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
54+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
55+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
56+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
57+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
58+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
59+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

rpminspect.spec.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Group: Development/Tools
88
# rpminspect(1) command line tool is licensed under the GPLv3+. And
99
# the rpminspect-data-generic package is licensed under the CC-BY-4.0
1010
# license.
11-
License: GPLv3+ and LGPLv2+ and ASL 2.0 and CC-BY
11+
License: GPLv3+ and LGPLv2+ and ASL 2.0 and MIT and CC-BY
1212
URL: https://github.com/rpminspect/rpminspect
1313
Source0: https://github.com/rpminspect/rpminspect/releases/download/v%{version}/%{name}-%{version}.tar.xz
1414
Source1: https://github.com/rpminspect/rpminspect/releases/download/v%{version}/%{name}-%{version}.tar.xz.asc
@@ -152,7 +152,7 @@ control files.
152152

153153

154154
%files -n librpminspect
155-
%license COPYING.LIB LICENSE-2.0.txt
155+
%license COPYING.LIB LICENSE-2.0.txt MIT.txt
156156
%{_libdir}/librpminspect.so.*
157157

158158

0 commit comments

Comments
 (0)