Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5751c3dbd7 | ||
|
|
37da861a43 | ||
|
|
dc86f5b8f0 | ||
|
|
ee1a9fe5e1 | ||
|
|
54d94d3920 | ||
|
|
53715f7552 | ||
|
|
f3a529cb56 | ||
|
|
73cee87cff | ||
|
|
9c7fd0a452 | ||
|
|
819e1774fb | ||
|
|
35d34ca368 |
||
|
|
78f909f1d9 |
7 changed files with 84 additions and 7 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
|
|
@ -1,15 +1,21 @@
|
|||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-eo
|
||||
Summary: Esperanto hunspell dictionaries
|
||||
%global upstreamid 20100218
|
||||
Version: 0.%{upstreamid}
|
||||
Epoch: 1
|
||||
Release: 7%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Source: http://www.esperantilo.org/literumilo-fontoj.tar.gz
|
||||
URL: http://www.esperantilo.org
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-eo)
|
||||
|
||||
%description
|
||||
|
|
@ -27,16 +33,50 @@ for i in LEGUMIN.txt; do
|
|||
done
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p eo_morf.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/eo.dic
|
||||
cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/eo.aff
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p eo_morf.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.dic
|
||||
cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.aff
|
||||
|
||||
|
||||
%files
|
||||
%doc LEGUMIN.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Feb 22 2023 Caolan McNamara <caolanm@redhat.com> - 1:0.20100218-12
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:0.20100218-9
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.20100218-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
5
plans/hunspell-eo.fmf
Normal file
5
plans/hunspell-eo.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
6
tests/test_dic_availability.fmf
Normal file
6
tests/test_dic_availability.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
require:
|
||||
- python3-enchant
|
||||
- hunspell-eo
|
||||
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 = "eo_morf"
|
||||
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-eo
|
||||
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 = [ "saluton", "teo", "mateno"]
|
||||
dic = enchant.Dict("eo_morf")
|
||||
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