Compare commits
No commits in common. "c10s" and "c8s" have entirely different histories.
@ -1 +0,0 @@
|
||||
1
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
aspell6-fa-0.11-0.tar.bz2
|
||||
/hunspell-fa-0.11.tar.bz2
|
||||
SOURCES/aspell6-fa-0.11-0.tar.bz2
|
||||
/aspell6-fa-0.11-0.tar.bz2
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
@ -1,23 +0,0 @@
|
||||
# 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
|
||||
@ -1,106 +1,39 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-fa
|
||||
Summary: Farsi hunspell dictionaries
|
||||
%global upstreamid 20070116
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 36%{?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
|
||||
Release: 16%{?dist}
|
||||
Source: ftp://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2
|
||||
URL: http://aspell.net/
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
BuildRequires: aspell, hunspell-devel
|
||||
|
||||
Requires: hunspell-filesystem
|
||||
Requires: hunspell
|
||||
Supplements: (hunspell and langpacks-fa)
|
||||
|
||||
%description
|
||||
Farsi hunspell dictionaries.
|
||||
|
||||
%prep
|
||||
%setup -q -n hunspell-fa-0.11
|
||||
%setup -q -n aspell6-fa-0.11-0
|
||||
|
||||
%build
|
||||
# nothing to build here
|
||||
export LANG=fa_IR.utf8
|
||||
preunzip -d *.cwl
|
||||
cat *.wl > farsi.wordlist
|
||||
wordlist2hunspell farsi.wordlist fa_IR
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
|
||||
|
||||
%files
|
||||
%doc COPYING Copyright README ChangeLog
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
%doc COPYING Copyright doc/README doc/ChangeLog
|
||||
%{_datadir}/myspell/*
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.20070116-36
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20070116-35
|
||||
- Bump release for June 2024 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
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.20070116-19
|
||||
- Use C.UTF-8 locale
|
||||
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
||||
|
||||
* Mon Nov 05 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.20070116-18
|
||||
- Use C.UTF-8 locale
|
||||
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20070116-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (hunspell-fa-0.11.tar.bz2) = c566a808f8c6e91e674ae32a70ac9b22e4571037e3e24957ef71237aa4fdbb0520f0315932ec104c805a15d2e674cd52c848a61f19d09a24aac51472edf2d48a
|
||||
SHA512 (aspell6-fa-0.11-0.tar.bz2) = 1ed97d3bf8397fe9b3c9215ca3ca6630a06ae5fa1c47b2bbdf9821fbe069b9c097d1e145a6303202cec85047f9cd50bef2bde3adbca0caeb05625932c5f3bfe4
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
require:
|
||||
- python3-enchant
|
||||
- hunspell-fa
|
||||
test: python3 test_dic_availability.py
|
||||
framework: shell
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
#!/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")
|
||||
@ -1,6 +0,0 @@
|
||||
require:
|
||||
- python3-enchant
|
||||
- hunspell-fa
|
||||
test: python3 test_suggest_words.py
|
||||
framework: shell
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
#!/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)))
|
||||
Loading…
Reference in New Issue
Block a user