diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/license.txt b/license.txt index ee8e69b..11f2842 100644 --- a/license.txt +++ b/license.txt @@ -2,7 +2,7 @@ UNICODE LICENSE V3 COPYRIGHT AND PERMISSION NOTICE -Copyright © 1991-2024 Unicode, Inc. +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 diff --git a/plans/parse.fmf b/plans/parse.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/parse.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/sources b/sources index 99f4856..0ff6173 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (UCD.zip) = 34bf4f3760b72f34d31b9135820458a92efc01be4e068446031849ba8e36b9e30adecb2b7721239441cc026e70a33ad780a753464a6a635cea222c34767755d6 -SHA512 (Unihan.zip) = 8b0d117fed39600c62864dd0c955b2fe0a52cfc975288fcf58cb770aaf476355f52b2a603e11330184a07d89c705c0fea55eeb9a044c8f1ba3ba79f5f32d0b33 +SHA512 (UCD.zip) = 6285b78d5765092d04632f2bdf23f43fe4c3d8acc28700ff941b5a647bf86aba348ea280cee54f5761e534070439cd5628cb25cb7cd9d7dca08e05000f434f54 +SHA512 (Unihan.zip) = fc1a32fc68b3e1d2d358fca91c2cd6c1103557405e91ff558585f18a2e9b1ee6f8af89e7ee922ff36cade67a5cf4f5b4042ba97d350af7b92b18f161eef5ec78 diff --git a/tests/parse/main.fmf b/tests/parse/main.fmf deleted file mode 100644 index f972409..0000000 --- a/tests/parse/main.fmf +++ /dev/null @@ -1,6 +0,0 @@ -summary: parse unicode data -require: -- unicode-ucd -- python3 -test: python3 test.py -framework: shell diff --git a/tests/parse/test.py b/tests/parse/test.py index cfae90c..013867a 100644 --- a/tests/parse/test.py +++ b/tests/parse/test.py @@ -4,7 +4,7 @@ codepoints = 0 file = '/usr/share/unicode/ucd/UnicodeData.txt' -with open(file, mode='rt', encoding='ascii') as unicode_data: +with open(file, mode='rt', encoding='utf-8') as unicode_data: for line in unicode_data.readlines(): codepoint_string, name, category = line.split(';')[:3] codepoint = int(codepoint_string, 16) @@ -12,5 +12,5 @@ with open(file, mode='rt', encoding='ascii') as unicode_data: codepoints = codepoints + 1 print(codepoints) -# Unicode 17 -assert(codepoints == 40575) +# Unicode 15 has 34924 +assert(codepoints > 34900) diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..1a3ca0e --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - unicode-ucd + - python3 + tests: + - parse: + run: python3 test.py +... diff --git a/unicode-ucd.spec b/unicode-ucd.spec index 657df0e..4fde1ca 100644 --- a/unicode-ucd.spec +++ b/unicode-ucd.spec @@ -3,19 +3,18 @@ %global ucddir %{unicodedir}/ucd Name: unicode-ucd -Version: 17.0.0 -Release: 3%{?dist} +Version: 15.1.0 +Release: 1%{?dist} Summary: Unicode Character Database # 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 -# https://github.com/spdx/license-list-XML/issues/2105 -License: Unicode-3.0 +License: Unicode-DFS-2016 AND Unicode-TOU URL: http://www.unicode.org/ucd/ -# update with "fbrnch update-sources -f" -Source0: https://www.unicode.org/Public/%{version}/ucd/UCD.zip -Source1: https://www.unicode.org/Public/%{version}/ucd/Unihan.zip +# 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 @@ -63,34 +62,6 @@ cp %{SOURCE2} . %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 17.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Sat Jan 17 2026 Fedora Release Engineering - 17.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Wed Sep 10 2025 Jens Petersen - 17.0.0-1 -- https://www.unicode.org/versions/Unicode17.0.0/ -- https://blog.unicode.org/2025/09/unicode-170-release-announcement.html - -* Fri Jul 25 2025 Fedora Release Engineering - 16.0.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 16.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Thu Sep 19 2024 Jens Petersen - 16.0.0-1 -- update for https://unicode.org/versions/Unicode16.0.0/ - -* Sat Jul 20 2024 Fedora Release Engineering - 15.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jul 15 2024 Parag Nemade - 15.1.0-3 -- Update the license tag to Unicode-3.0 - -* Sat Jan 27 2024 Fedora Release Engineering - 15.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - * Sat Sep 16 2023 Jens Petersen - 15.1.0-1 - Unicode 15.1 released