Compare commits

...
Sign in to create a new pull request.

9 commits

Author SHA1 Message Date
Fedora Release Engineering
7686d2b4c5 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:09:52 +00:00
Parag Nemade
9986401e00
Add tmt CI testcase 2025-03-24 14:30:57 +05:30
Fedora Release Engineering
4fbe495041 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 06:11:28 +00:00
Fedora Release Engineering
4e5f79def9 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 09:29:40 +00:00
Fedora Release Engineering
a216509e14 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 21:54:02 +00:00
Fedora Release Engineering
1f4cfe24f8 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-20 22:19:12 +00:00
Parag Nemade
7f15168978
Resolves:rh#2230531 - Update to new Upstream Source 2023-08-10 13:19:01 +05:30
Fedora Release Engineering
1bd7a5e5f9 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 06:34:10 +00:00
Caolán McNamara
78002f3866 migrated to SPDX license 2023-02-22 10:45:06 +00:00
9 changed files with 74 additions and 11 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

1
.gitignore vendored
View file

@ -1 +1,2 @@
catalan.oxt
/ca.3.0.8-hunspell.zip

View file

@ -6,11 +6,11 @@
Name: hunspell-ca
Summary: Catalan hunspell dictionaries
Version: 2.3
Release: 22%{?dist}
Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt
URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic
License: GPLv2+
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
BuildArch: noarch
Requires: hunspell-filesystem
@ -23,10 +23,10 @@ Catalan hunspell dictionaries.
%setup -q -c
%build
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
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
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
@ -41,10 +41,35 @@ popd
%files
%doc LICENSES-en.txt LLICENCIES-ca.txt
%doc README.txt release-notes_en.txt
%license LICENSE gpl-2.0.txt lgpl-2.1.txt
%{_datadir}/%{dict_dirname}/*
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Aug 10 2023 Parag Nemade <pnemade AT redhat DOT com> - 3.0.8-1
- Resolves:rh#2230531 - Update to new Upstream Source
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 2.3-23
- migrated to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

5
plans/hunspell-ca.fmf Normal file
View file

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

View file

@ -1 +1 @@
6061b7fd7f6f87c53540abf1d16363ba catalan.oxt
SHA512 (ca.3.0.8-hunspell.zip) = d7b3120414f670a59cfd4e0300a809ae85896bf87df07dedf3c526e6718176b2dff74a7cd68a74d3ee3e820b83a14bff91c396247a7430f4ce7c903756e2364a

View file

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

View file

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

View file

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

View file

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