diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/license.txt b/license.txt index 11f2842..ee8e69b 100644 --- a/license.txt +++ b/license.txt @@ -2,7 +2,7 @@ UNICODE LICENSE V3 COPYRIGHT AND PERMISSION NOTICE -Copyright © 1991-2023 Unicode, Inc. +Copyright © 1991-2024 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 new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/parse.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/sources b/sources index 0ff6173..99f4856 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (UCD.zip) = 6285b78d5765092d04632f2bdf23f43fe4c3d8acc28700ff941b5a647bf86aba348ea280cee54f5761e534070439cd5628cb25cb7cd9d7dca08e05000f434f54 -SHA512 (Unihan.zip) = fc1a32fc68b3e1d2d358fca91c2cd6c1103557405e91ff558585f18a2e9b1ee6f8af89e7ee922ff36cade67a5cf4f5b4042ba97d350af7b92b18f161eef5ec78 +SHA512 (UCD.zip) = 34bf4f3760b72f34d31b9135820458a92efc01be4e068446031849ba8e36b9e30adecb2b7721239441cc026e70a33ad780a753464a6a635cea222c34767755d6 +SHA512 (Unihan.zip) = 8b0d117fed39600c62864dd0c955b2fe0a52cfc975288fcf58cb770aaf476355f52b2a603e11330184a07d89c705c0fea55eeb9a044c8f1ba3ba79f5f32d0b33 diff --git a/tests/parse/main.fmf b/tests/parse/main.fmf new file mode 100644 index 0000000..f972409 --- /dev/null +++ b/tests/parse/main.fmf @@ -0,0 +1,6 @@ +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 013867a..cfae90c 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='utf-8') as unicode_data: +with open(file, mode='rt', encoding='ascii') 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='utf-8') as unicode_data: codepoints = codepoints + 1 print(codepoints) -# Unicode 15 has 34924 -assert(codepoints > 34900) +# Unicode 17 +assert(codepoints == 40575) diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 1a3ca0e..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- 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 4fde1ca..b9655ac 100644 --- a/unicode-ucd.spec +++ b/unicode-ucd.spec @@ -3,18 +3,19 @@ %global ucddir %{unicodedir}/ucd Name: unicode-ucd -Version: 15.1.0 +Version: 17.0.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 -License: Unicode-DFS-2016 AND Unicode-TOU +# https://github.com/spdx/license-list-XML/issues/2105 +License: Unicode-3.0 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 +# 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 Source2: https://www.unicode.org/license.txt BuildArch: noarch @@ -62,6 +63,28 @@ cp %{SOURCE2} . %changelog +* 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