Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc4cab58fd | ||
|
|
32984407f4 | ||
|
|
96a40fa57a | ||
|
|
d9ff1bc8d1 | ||
|
|
d81355c478 | ||
|
|
b400d270a8 | ||
|
|
129ec51c4d |
7 changed files with 38 additions and 23 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
5
plans/parse.fmf
Normal file
5
plans/parse.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (UCD.zip) = 0fde45accf7068d639dcf8e739c7d9595c4cb3917f2e440cd0683aec1c0eebf5f4d0a975be09e5bc6297048a7031e84b5fcd4018ab29cc275801d770628b4439
|
||||
SHA512 (Unihan.zip) = 90e42cfcf442c13f29e5925aa09efa310cbbe8a691b760ca455d24f42a75ec4c04240bb9a4e0ecdfddae28b50ab0c8b0b2ec6d112f0c5fa5ba4de92f58784346
|
||||
SHA512 (UCD.zip) = 34bf4f3760b72f34d31b9135820458a92efc01be4e068446031849ba8e36b9e30adecb2b7721239441cc026e70a33ad780a753464a6a635cea222c34767755d6
|
||||
SHA512 (Unihan.zip) = 8b0d117fed39600c62864dd0c955b2fe0a52cfc975288fcf58cb770aaf476355f52b2a603e11330184a07d89c705c0fea55eeb9a044c8f1ba3ba79f5f32d0b33
|
||||
|
|
|
|||
6
tests/parse/main.fmf
Normal file
6
tests/parse/main.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
summary: parse unicode data
|
||||
require:
|
||||
- unicode-ucd
|
||||
- python3
|
||||
test: python3 test.py
|
||||
framework: shell
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
required_packages:
|
||||
- unicode-ucd
|
||||
- python3
|
||||
tests:
|
||||
- parse:
|
||||
run: python3 test.py
|
||||
...
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
%global ucddir %{unicodedir}/ucd
|
||||
|
||||
Name: unicode-ucd
|
||||
Version: 16.0.0
|
||||
Release: 1%{?dist}
|
||||
Version: 17.0.0
|
||||
Release: 3%{?dist}
|
||||
Summary: Unicode Character Database
|
||||
|
||||
# http://www.unicode.org/terms_of_use.html in ReadMe.txt redirects to:
|
||||
|
|
@ -13,9 +13,9 @@ Summary: Unicode Character Database
|
|||
# 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
|
||||
|
||||
|
|
@ -63,6 +63,22 @@ cp %{SOURCE2} .
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* 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/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue