diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore index 1097097..83be299 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ catalan.oxt -/ca.3.0.8-hunspell.zip diff --git a/hunspell-ca.spec b/hunspell-ca.spec index 79bd6fc..4baad7f 100644 --- a/hunspell-ca.spec +++ b/hunspell-ca.spec @@ -1,19 +1,13 @@ -%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 -%global dict_dirname hunspell -%else -%global dict_dirname myspell -%endif - Name: hunspell-ca Summary: Catalan hunspell dictionaries -Version: 3.0.8 -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 +Version: 2.3 +Release: 17%{?dist} +Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt +URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic +License: GPLv2+ BuildArch: noarch -Requires: hunspell-filesystem +Requires: hunspell Supplements: (hunspell and langpacks-ca) %description @@ -23,15 +17,15 @@ Catalan hunspell dictionaries. %setup -q -c %build -tr -d '\r' < catalan.aff > ca_ES.aff -touch -r catalan.aff ca_ES.aff -tr -d '\r' < catalan.dic > ca_ES.dic -touch -r catalan.dic ca_ES.dic +tr -d '\r' < dictionaries/catalan.aff > ca_ES.aff +touch -r dictionaries/catalan.aff ca_ES.aff +tr -d '\r' < dictionaries/catalan.dic > ca_ES.dic +touch -r dictionaries/catalan.dic ca_ES.dic %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} -cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} -pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell +cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ ca_ES_aliases="ca_AD ca_FR ca_IT" for lang in $ca_ES_aliases; do ln -s ca_ES.aff $lang.aff @@ -41,51 +35,10 @@ popd %files -%doc README.txt release-notes_en.txt -%license LICENSE gpl-2.0.txt lgpl-2.1.txt -%{_datadir}/%{dict_dirname}/* +%doc LICENSES-en.txt LLICENCIES-ca.txt +%{_datadir}/myspell/* %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 - -* 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 - -* Sat Jan 20 2024 Fedora Release Engineering - 3.0.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Aug 10 2023 Parag Nemade - 3.0.8-1 -- Resolves:rh#2230531 - Update to new Upstream Source - -* Thu Jul 20 2023 Fedora Release Engineering - 2.3-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Feb 22 2023 Caolán McNamara - 2.3-23 -- migrated to SPDX license - -* Thu Jan 19 2023 Fedora Release Engineering - 2.3-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Jul 21 2022 Fedora Release Engineering - 2.3-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue Mar 22 2022 Parag Nemade - 2.3-20 -- Add conditional for new hunspell dir path and update to Requires: - hunspell-filesystem - -* Thu Jan 20 2022 Fedora Release Engineering - 2.3-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Jul 22 2021 Fedora Release Engineering - 2.3-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - * Tue Jan 26 2021 Fedora Release Engineering - 2.3-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/plans/hunspell-ca.fmf b/plans/hunspell-ca.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/hunspell-ca.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/sources b/sources index 1b50f0c..d11d23f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ca.3.0.8-hunspell.zip) = d7b3120414f670a59cfd4e0300a809ae85896bf87df07dedf3c526e6718176b2dff74a7cd68a74d3ee3e820b83a14bff91c396247a7430f4ce7c903756e2364a +6061b7fd7f6f87c53540abf1d16363ba catalan.oxt diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf deleted file mode 100644 index 4378a8f..0000000 --- a/tests/test_dic_availability.fmf +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index e170825..0000000 --- a/tests/test_dic_availability.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 deleted file mode 100644 index e135d92..0000000 --- a/tests/test_suggest_words.fmf +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 1730e24..0000000 --- a/tests/test_suggest_words.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/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)))