Compare commits

...

No commits in common. "c8s" and "c10s" have entirely different histories.
c8s ... c10s

10 changed files with 99 additions and 11 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/dict-cs-2.0.oxt
openoffice.org-dict-cs_CZ.tar.gz
/dict-cs-2.0.oxt

View File

@ -1,6 +1,6 @@
--- !Policy
product_versions:
- rhel-8
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

View File

@ -1,8 +1,11 @@
%global hunspelldir %{_datadir}/hunspell
%global hyphendir %{_datadir}/hyphen
Name: openoffice.org-dict-cs_CZ
Version: 20080822
Release: 8%{?dist}
Release: 25%{?dist}
Summary: Czech spellchecker and hyphenation dictionaries for LibreOffice
License: GPL+
License: GPL-1.0-or-later
URL: http://extensions.services.openoffice.org/en/project/dict-cs
Source0: http://downloads.sourceforge.net/aoo-extensions/dict-cs-2.0.oxt
BuildArch: noarch
@ -12,9 +15,6 @@ BuildRequires: dos2unix
# rhbz#1173776
Patch0: cs_CZ.aff.patch
%global hunspelldir %{_datadir}/myspell
%global hyphendir %{_datadir}/hyphen
%description
This package contains the Czech hyphenation dictionaries for the LibreOffice
application suite.
@ -22,7 +22,6 @@ application suite.
%package -n hunspell-cs
Summary: Czech hunspell dictionary
Requires: hunspell
Obsoletes: openoffice.org-dict-cs_CZ < %{version}-%{release}
%description -n hunspell-cs
This package contains the Czech dictionary for the hunspell spellchecker.
@ -30,7 +29,6 @@ This package contains the Czech dictionary for the hunspell spellchecker.
%package -n hyphen-cs
Summary: Czech hyphenation rules
Requires: hyphen
Obsoletes: openoffice.org-dict-cs_CZ < %{version}-%{release}
%description -n hyphen-cs
Czech hyphenation rules.
@ -57,6 +55,59 @@ install -m 644 hyph*.dic $RPM_BUILD_ROOT%{hyphendir}
%{hunspelldir}/cs*
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 20080822-25
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 20080822-24
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Feb 24 2023 Caolán McNamara <caolanm@redhat.com> - 20080822-20
- migrated to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 29 2022 Parag Nemade <pnemade AT redhat DOT com> - 20080822-17
- Update hunspell dictionary directory path
https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20080822-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -105,7 +156,7 @@ install -m 644 hyph*.dic $RPM_BUILD_ROOT%{hyphendir}
* Mon Nov 26 2007 Tomas Mraz <tmraz@redhat.com> - 20060303-7
- add obsoletes openoffice.org-dict-cs_CZ
* Mon Nov 26 2007 Caolan McNamara <caolanm@redhat.com> - 20060303-6
* Mon Nov 26 2007 Caolán McNamara <caolanm@redhat.com> - 20060303-6
- Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will now autodetect them
* Tue Mar 27 2007 Tomas Mraz <tmraz@redhat.com> - 20060303-5

5
plans/hunspell-cs.fmf Normal file
View File

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

View File

@ -1 +1 @@
SHA512 (dict-cs-2.0.oxt) = 9f2ed5e10771c00635f382c676b2f9184374b4c20a7d2262d3c441feae4d9dcddbd611cdaf74cb035c76c969d73d913d6116d9c1a4ab0a7a754bfbd8253c1ca5
97e82ae5f120d5f889bb420ff82d3a54 dict-cs-2.0.oxt

View File

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-cs
test: python3 test_dic_availability.py
framework: shell

View File

@ -0,0 +1,10 @@
#!/usr/bin/python3
import enchant
lang = "cs_CZ"
try:
dic = enchant.request_dict(lang)
print("Dictionary for {0} language is available for use".format(lang))
except enchant.errors.DictNotFoundError:
print("Dictionary is not installed for use")

View File

@ -0,0 +1,6 @@
require:
- python3-enchant
- hunspell-cs
test: python3 test_suggest_words.py
framework: shell

View File

@ -0,0 +1,9 @@
#!/usr/bin/python3
import enchant
wdlst = [ "Hall", "čaj", "ráno"]
dic = enchant.Dict("cs_CZ")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))