diff --git a/aspell6-fa-0.11-0.tar.bz2 b/aspell6-fa-0.11-0.tar.bz2 new file mode 100644 index 0000000..40b4b7f Binary files /dev/null and b/aspell6-fa-0.11-0.tar.bz2 differ diff --git a/hunspell-fa.spec b/hunspell-fa.spec new file mode 100644 index 0000000..5766487 --- /dev/null +++ b/hunspell-fa.spec @@ -0,0 +1,34 @@ +Name: hunspell-fa +Version: 0.20070116 +Release: 18 +Summary: Farsi hunspell dictionaries +License: GPLv2+ +URL: http://aspell.net/ +Source: https://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2 +BuildArch: noarch +BuildRequires: aspell, hunspell-devel +Requires: hunspell +Supplements: (hunspell and langpacks-fa) +%description +hunspell dictionaries for Farsi. + +%prep +%autosetup -n aspell6-fa-0.11-0 -p1 + +%build +export LANG=fa_IR.utf8 +preunzip -d *.cwl +cat *.wl > farsi.wordlist +wordlist2hunspell farsi.wordlist fa_IR + +%install +install -Dp *.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/fa_IR.dic +install -Dp *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/fa_IR.aff + +%files +%doc COPYING Copyright doc/README doc/ChangeLog +%{_datadir}/myspell/* + +%changelog +* Mon Apr 27 2020 yanan li - 0.20070116-18 +- Package init