Compare commits

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

12 commits

Author SHA1 Message Date
Fedora Release Engineering
ef7cc947e4 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 17:11:18 +00:00
Fedora Release Engineering
2d60ee4293 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 06:14:09 +00:00
Parag Nemade
470644ed8c
Add tmt CI testcase 2024-12-10 08:48:18 +05:30
Fedora Release Engineering
0bbcc0b54b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 09:32:00 +00:00
Fedora Release Engineering
15239826a4 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 21:56:22 +00:00
Fedora Release Engineering
20911cee85 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-20 22:21:19 +00:00
Parag Nemade
7e6c97af7e
bump the missed release tag 2023-08-08 17:07:19 +05:30
Parag Nemade
9ca664ccfa
Use new source archive generated using Farsi aspell dictionary
Resolves:rhbz#2218158 - Drop dependency on aspell
2023-08-08 17:01:18 +05:30
Fedora Release Engineering
4c4821c972 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 06:36:47 +00:00
Caolán McNamara
55627d4451 migrated to SPDX license 2023-02-22 11:39:24 +00:00
Fedora Release Engineering
36ec34bd3f Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 12:24:03 +00:00
Fedora Release Engineering
910ed927c5 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 13:55:05 +00:00
10 changed files with 101 additions and 13 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

1
.gitignore vendored
View file

@ -1 +1,2 @@
aspell6-fa-0.11-0.tar.bz2
/hunspell-fa-0.11.tar.bz2

23
generate-source.sh Normal file
View file

@ -0,0 +1,23 @@
# This script generate Farsi wordlist for hunspell
# This requires aspell wordlist tarball and aspell installed on your system
# Aspell is depreacted in Fedora due to https://fedoraproject.org/wiki/Changes/AspellDeprecation
wget ftp://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2
tar -jxvf aspell6-fa-0.11-0.tar.bz2
cd aspell6-fa-0.11-0
export LANG=C.UTF-8
preunzip -d *.cwl
cat *.wl > farsi.wordlist
wordlist2hunspell farsi.wordlist fa_IR
cp -p fa.dat fa_IR.aff
cd ..
mkdir hunspell-fa-0.11
cd hunspell-fa-0.11
cp -p ../aspell6-fa-0.11-0/COPYING ../aspell6-fa-0.11-0/Copyright ../aspell6-fa-0.11-0/README ../aspell6-fa-0.11-0/doc/ChangeLog .
cp -p ../aspell6-fa-0.11-0/fa_IR.* .
cat > README.fedora << EOF
This source tarball has been created using aspell6-fa-0.11-0 tarball and wordlist2hunspell script.
EOF
cd ..
tar -cf hunspell-fa-0.11.tar hunspell-fa-0.11
bzip2 hunspell-fa-0.11.tar

View file

@ -8,12 +8,12 @@ Name: hunspell-fa
Summary: Farsi hunspell dictionaries
%global upstreamid 20070116
Version: 0.%{upstreamid}
Release: 27%{?dist}
Source: ftp://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2
URL: http://aspell.net/
License: GPLv2+
Release: 37%{?dist}
# This source is generated by generate-source.sh using aspell dictionary
Source: hunspell-fa-0.11.tar.bz2
URL: http://ftp.gnu.org/gnu/aspell/dict/fa
License: GPL-2.0-or-later
BuildArch: noarch
BuildRequires: aspell, hunspell-devel
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-fa)
@ -22,24 +22,51 @@ Supplements: (hunspell and langpacks-fa)
Farsi hunspell dictionaries.
%prep
%setup -q -n aspell6-fa-0.11-0
%setup -q -n hunspell-fa-0.11
%build
export LANG=C.UTF-8
preunzip -d *.cwl
cat *.wl > farsi.wordlist
wordlist2hunspell farsi.wordlist fa_IR
# nothing to build here
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc COPYING Copyright doc/README doc/ChangeLog
%doc COPYING Copyright README ChangeLog
%{_datadir}/%{dict_dirname}/*
%changelog
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Aug 08 2023 Parag Nemade <pnemade AT redhat DOT com> - 0.20070116-32
- Use new source archive generated using Farsi aspell dictionary
- Resolves:rhbz#2218158 - Drop dependency on aspell
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 0.20070116-30
- migrated to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20070116-27
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem

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

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

View file

@ -1 +1 @@
47c8599e529fc291a096c12f0b8372ca aspell6-fa-0.11-0.tar.bz2
SHA512 (hunspell-fa-0.11.tar.bz2) = c566a808f8c6e91e674ae32a70ac9b22e4571037e3e24957ef71237aa4fdbb0520f0315932ec104c805a15d2e674cd52c848a61f19d09a24aac51472edf2d48a

View file

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

View file

@ -0,0 +1,10 @@
#!/usr/bin/python3
import enchant
lang = "fa_IR"
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-fa
test: python3 test_suggest_words.py
framework: shell

View file

@ -0,0 +1,9 @@
#!/usr/bin/python3
import enchant
wdlst = [ "Hey", "te", "morgun"]
dic = enchant.Dict("fa_IR")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))