Compare commits

..

No commits in common. "rawhide" and "f38" have entirely different histories.

8 changed files with 24 additions and 46 deletions

View file

@ -1 +0,0 @@
1

View file

@ -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

View file

@ -1,5 +0,0 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1,2 +1,2 @@
SHA512 (UCD.zip) = 34bf4f3760b72f34d31b9135820458a92efc01be4e068446031849ba8e36b9e30adecb2b7721239441cc026e70a33ad780a753464a6a635cea222c34767755d6
SHA512 (Unihan.zip) = 8b0d117fed39600c62864dd0c955b2fe0a52cfc975288fcf58cb770aaf476355f52b2a603e11330184a07d89c705c0fea55eeb9a044c8f1ba3ba79f5f32d0b33
SHA512 (UCD.zip) = 6285b78d5765092d04632f2bdf23f43fe4c3d8acc28700ff941b5a647bf86aba348ea280cee54f5761e534070439cd5628cb25cb7cd9d7dca08e05000f434f54
SHA512 (Unihan.zip) = fc1a32fc68b3e1d2d358fca91c2cd6c1103557405e91ff558585f18a2e9b1ee6f8af89e7ee922ff36cade67a5cf4f5b4042ba97d350af7b92b18f161eef5ec78

View file

@ -1,6 +0,0 @@
summary: parse unicode data
require:
- unicode-ucd
- python3
test: python3 test.py
framework: shell

View file

@ -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)

13
tests/tests.yml Normal file
View file

@ -0,0 +1,13 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- unicode-ucd
- python3
tests:
- parse:
run: python3 test.py
...

View file

@ -3,19 +3,18 @@
%global ucddir %{unicodedir}/ucd
Name: unicode-ucd
Version: 17.0.0
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,28 +62,6 @@ cp %{SOURCE2} .
%changelog
* Wed Sep 10 2025 Jens Petersen <petersen@redhat.com> - 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 <releng@fedoraproject.org> - 16.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Sep 19 2024 Jens Petersen <petersen@redhat.com> - 16.0.0-1
- update for https://unicode.org/versions/Unicode16.0.0/
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jul 15 2024 Parag Nemade <pnemade AT redhat DOT com> - 15.1.0-3
- Update the license tag to Unicode-3.0
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 15.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Sep 16 2023 Jens Petersen <petersen@redhat.com> - 15.1.0-1
- Unicode 15.1 released