add license.txt

This commit is contained in:
Jens Petersen 2023-08-31 13:59:53 +08:00
parent b2e1da1b3f
commit 64bd1da304
2 changed files with 48 additions and 3 deletions

39
license.txt Normal file
View File

@ -0,0 +1,39 @@
UNICODE LICENSE V3
COPYRIGHT AND PERMISSION NOTICE
Copyright © 1991-2023 Unicode, Inc.
NOTICE TO USER: Carefully read the following legal agreement. BY
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a
copy of data files and any associated documentation (the "Data Files") or
software and any associated documentation (the "Software") to deal in the
Data Files or Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, and/or sell
copies of the Data Files or Software, and to permit persons to whom the
Data Files or Software are furnished to do so, provided that either (a)
this copyright and permission notice appear with all copies of the Data
Files or Software, or (b) this copyright and permission notice appear in
associated Documentation.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in these Data Files or Software without prior written
authorization of the copyright holder.

View File

@ -4,17 +4,18 @@
Name: unicode-ucd
Version: 15.1.0
Release: 0.1%{?dist}
Release: 0.2%{?dist}
Summary: Unicode Character Database
# current https://www.unicode.org/license.txt is similar to
# https://web.archive.org/web/20210830183830/https://www.unicode.org/license.html
# http://www.unicode.org/terms_of_use.html in ReadMe.txt redirects to:
# http://www.unicode.org/copyright.html
# which links to https://www.unicode.org/license.txt
License: Unicode-DFS-2016 AND Unicode-TOU
URL: http://www.unicode.org/ucd/
# update with fbrnch update-version -f
Source0: http://www.unicode.org/Public/zipped/%{version}/UCD.zip
Source1: http://www.unicode.org/Public/zipped/%{version}/Unihan.zip
Source2: https://www.unicode.org/license.txt
BuildArch: noarch
%description
@ -47,9 +48,11 @@ grep -q "%{version}" ReadMe.txt || (echo "zip file seems not %{version}" ; exit
mkdir -p %{buildroot}%{ucddir}
cp -ar . %{buildroot}%{ucddir}
cp -p %{SOURCE1} %{buildroot}%{ucddir}
cp %{SOURCE2} .
%files
%license license.txt
%dir %{unicodedir}
%{ucddir}
%exclude %{ucddir}/Unihan.zip
@ -59,6 +62,9 @@ cp -p %{SOURCE1} %{buildroot}%{ucddir}
%changelog
* Thu Aug 31 2023 Jens Petersen <petersen@redhat.com> - 15.1.0-0.2
- add license.txt
* Thu Aug 31 2023 Jens Petersen <petersen@redhat.com> - 15.1.0-0.1
- update to draft 15.1.0: https://unicode.org/versions/Unicode15.1.0/
- do not add copyright.html file from website