Compare commits
23 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7686d2b4c5 | ||
|
|
9986401e00 |
||
|
|
4fbe495041 | ||
|
|
4e5f79def9 | ||
|
|
a216509e14 | ||
|
|
1f4cfe24f8 | ||
|
|
7f15168978 |
||
|
|
1bd7a5e5f9 | ||
|
|
78002f3866 | ||
|
|
e05d14d6fe | ||
|
|
c83a1b94bd | ||
|
|
18179ead15 |
||
|
|
3470b096aa | ||
|
|
240969b172 | ||
|
|
62dfe39565 | ||
|
|
2fd6d33199 | ||
|
|
e1fa3e7bda | ||
|
|
9a636658ae | ||
|
|
4406420990 | ||
|
|
c0ad50f2fa | ||
|
|
d2d180c381 | ||
|
|
93d0438e69 | ||
|
|
a072a8a69b |
9 changed files with 128 additions and 16 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
catalan.oxt
|
||||
/ca.3.0.8-hunspell.zip
|
||||
|
|
|
|||
104
hunspell-ca.spec
104
hunspell-ca.spec
|
|
@ -1,13 +1,19 @@
|
|||
%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: 2.3
|
||||
Release: 8%{?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
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ca)
|
||||
|
||||
%description
|
||||
|
|
@ -17,15 +23,15 @@ 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}/myspell
|
||||
cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
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}/
|
||||
ca_ES_aliases="ca_AD ca_FR ca_IT"
|
||||
for lang in $ca_ES_aliases; do
|
||||
ln -s ca_ES.aff $lang.aff
|
||||
|
|
@ -35,10 +41,78 @@ popd
|
|||
|
||||
|
||||
%files
|
||||
%doc LICENSES-en.txt LLICENCIES-ca.txt
|
||||
%{_datadir}/myspell/*
|
||||
%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
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 2.3-20
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.3-8
|
||||
- Add Supplements: tag for langpacks naming guidelines
|
||||
- Clean the specfile to follow current packaging guidelines
|
||||
|
|
|
|||
5
plans/hunspell-ca.fmf
Normal file
5
plans/hunspell-ca.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
6061b7fd7f6f87c53540abf1d16363ba catalan.oxt
|
||||
SHA512 (ca.3.0.8-hunspell.zip) = d7b3120414f670a59cfd4e0300a809ae85896bf87df07dedf3c526e6718176b2dff74a7cd68a74d3ee3e820b83a14bff91c396247a7430f4ce7c903756e2364a
|
||||
|
|
|
|||
6
tests/test_dic_availability.fmf
Normal file
6
tests/test_dic_availability.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-ca
|
||||
test: python3 test_dic_availability.py
|
||||
framework: shell
|
||||
|
||||
10
tests/test_dic_availability.py
Normal file
10
tests/test_dic_availability.py
Normal 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")
|
||||
6
tests/test_suggest_words.fmf
Normal file
6
tests/test_suggest_words.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-ca
|
||||
test: python3 test_suggest_words.py
|
||||
framework: shell
|
||||
|
||||
9
tests/test_suggest_words.py
Normal file
9
tests/test_suggest_words.py
Normal 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)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue