From 4e5f79def9470db3e30c5de62957fd887730515b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 09:29:40 +0000 Subject: [PATCH 1/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- hunspell-ca.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ca.spec b/hunspell-ca.spec index 58879cb..ee325ad 100644 --- a/hunspell-ca.spec +++ b/hunspell-ca.spec @@ -7,7 +7,7 @@ Name: hunspell-ca Summary: Catalan hunspell dictionaries Version: 3.0.8 -Release: 3%{?dist} +Release: 4%{?dist} Source: https://github.com/Softcatala/catalan-dict-tools/releases/download/v%{version}/ca.%{version}-hunspell.zip URL: https://www.softcatala.org/projectes/corrector-ortografic/ License: GPL-2.0-or-later OR LGPL-2.1-or-later @@ -46,6 +46,9 @@ popd %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 3.0.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Jan 24 2024 Fedora Release Engineering - 3.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 4fbe4950415179104d9cdfbf2573a3bce0961ad2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 06:11:28 +0000 Subject: [PATCH 2/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- hunspell-ca.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ca.spec b/hunspell-ca.spec index ee325ad..6ca06cc 100644 --- a/hunspell-ca.spec +++ b/hunspell-ca.spec @@ -7,7 +7,7 @@ Name: hunspell-ca Summary: Catalan hunspell dictionaries Version: 3.0.8 -Release: 4%{?dist} +Release: 5%{?dist} Source: https://github.com/Softcatala/catalan-dict-tools/releases/download/v%{version}/ca.%{version}-hunspell.zip URL: https://www.softcatala.org/projectes/corrector-ortografic/ License: GPL-2.0-or-later OR LGPL-2.1-or-later @@ -46,6 +46,9 @@ popd %{_datadir}/%{dict_dirname}/* %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 3.0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Thu Jul 18 2024 Fedora Release Engineering - 3.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 9986401e0086f38c7c54ee90b38ac1dc9ed35332 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Thu, 7 Nov 2024 18:44:37 +0530 Subject: [PATCH 3/4] Add tmt CI testcase --- .fmf/version | 1 + plans/hunspell-ca.fmf | 5 +++++ tests/test_dic_availability.fmf | 6 ++++++ tests/test_dic_availability.py | 10 ++++++++++ tests/test_suggest_words.fmf | 6 ++++++ tests/test_suggest_words.py | 9 +++++++++ 6 files changed, 37 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/hunspell-ca.fmf create mode 100644 tests/test_dic_availability.fmf create mode 100644 tests/test_dic_availability.py create mode 100644 tests/test_suggest_words.fmf create mode 100644 tests/test_suggest_words.py 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/plans/hunspell-ca.fmf b/plans/hunspell-ca.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell-ca.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf new file mode 100644 index 0000000..4378a8f --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ca +test: python3 test_dic_availability.py +framework: shell + diff --git a/tests/test_dic_availability.py b/tests/test_dic_availability.py new file mode 100644 index 0000000..e170825 --- /dev/null +++ b/tests/test_dic_availability.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import enchant + +lang = "ca_ES" +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") diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf new file mode 100644 index 0000000..e135d92 --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-ca +test: python3 test_suggest_words.py +framework: shell + diff --git a/tests/test_suggest_words.py b/tests/test_suggest_words.py new file mode 100644 index 0000000..1730e24 --- /dev/null +++ b/tests/test_suggest_words.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import enchant + +wdlst = [ "hola", "te", "matí"] +dic = enchant.Dict("ca_ES") +for wd in wdlst: + dic.check(wd) + print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd))) From 7686d2b4c50a9dca9a8906c0f218ed41c118d30c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:09:52 +0000 Subject: [PATCH 4/4] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- hunspell-ca.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hunspell-ca.spec b/hunspell-ca.spec index 6ca06cc..79bd6fc 100644 --- a/hunspell-ca.spec +++ b/hunspell-ca.spec @@ -7,7 +7,7 @@ Name: hunspell-ca Summary: Catalan hunspell dictionaries Version: 3.0.8 -Release: 5%{?dist} +Release: 6%{?dist} Source: https://github.com/Softcatala/catalan-dict-tools/releases/download/v%{version}/ca.%{version}-hunspell.zip URL: https://www.softcatala.org/projectes/corrector-ortografic/ License: GPL-2.0-or-later OR LGPL-2.1-or-later @@ -46,6 +46,9 @@ popd %{_datadir}/%{dict_dirname}/* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 3.0.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Fri Jan 17 2025 Fedora Release Engineering - 3.0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild