Compare commits

...

No commits in common. "c8s" and "c10s" have entirely different histories.
c8s ... c10s

13 changed files with 124 additions and 176 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/ispell-gaeilge-5.0.tar.gz /hunspell-ga-5.1.zip
/ispell-gaeilge-5.0.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,43 +1,102 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ga Name: hunspell-ga
Summary: Irish hunspell dictionaries Summary: Irish hunspell dictionaries
Version: 5.0 Version: 5.1
Release: 1%{?dist} Release: 8%{?dist}
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz Source: https://github.com/kscanne/gaelspell/releases/download/v%{version}/hunspell-ga-%{version}.zip
Source1: myspell-header URL: https://cadhan.com/gaelspell/
Source2: hunspell-header License: GPL-2.0-or-later
URL: http://borel.slu.edu/ispell/index.html
License: GPLv2+
BuildArch: noarch BuildArch: noarch
BuildRequires: make
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
Patch1: ispell-gaeilge-5.0-buildhunspell.patch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-ga) Supplements: (hunspell and langpacks-ga)
%description %description
Irish hunspell dictionaries. Irish hunspell dictionaries.
%prep %prep
%autosetup -n ispell-gaeilge-%{version} %autosetup -c
%build %build
make
cat %{SOURCE1} %{SOURCE2} > header
export LANG=en_IE.UTF-8
iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1
ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files %files
%doc README ChangeLog %doc README_ga_IE.txt
%license COPYING %{_datadir}/%{dict_dirname}/*
%{_datadir}/myspell/*
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.1-8
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Sun Aug 04 2024 Parag Nemade <pnemade AT redhat DOT com> - 5.1-7
- Resolves:RHEL-52482 - Add conditional for RHEL for using hunspell directory
- Add tmt CI tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.1-6
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Dec 16 2022 Caolán McNamara <caolanm@redhat.com> - 5.1-1
- latest release
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 5.0-11
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.0-3
- 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> - 5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 5.0-1 * Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 5.0-1
- Update Source tag - Update Source tag

View File

@ -1,87 +0,0 @@
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Start hunspell affix file extensions #
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
WORDCHARS -'
# see gramadoir morph-ga; not bothering with any replacements
# from that file that are anchored at ^ or $, nor with any that
# simply add a fada (hopefully handled by MAP rules below),
# nor with derivational morphology, since these are undesirable for
# spelling replacement
REP 64
REP a á
REP e é
REP i í
REP o ó
REP u ú
REP uigh aigh
REP uith aith
REP idhth ith
REP ighth ith
REP sg sc
REP sb sp
REP sd st
REP dn nn
REP eu éa
REP tch t
REP idhea ío
REP ighea ío
REP idhe í
REP ighe í
REP uím aím
REP uít aít
REP uío aío
REP aghadh ú
REP adha ú
REP ádh á
REP mhth f
REP bhth f
REP thmh f
REP thbh f
REP thch ch
REP tht t
REP ghaí aí
REP llr lr
REP lls ls
REP llt lt
REP nnc nc
REP nnd nd
REP nnl nl
REP nnr nr
REP nns ns
REP nnt nt
REP aingc aing
REP éagc éag
REP éigc éig
REP iargc iarg
REP éadt éad
REP éidt éid
REP domb dom
REP díomb díom
REP dhomb dhom
REP dhíomb dhíom
REP anbhf anbh
REP ainbhf ainbh
REP ighim ím
REP ighidh í
REP ighinn ínn
REP éá éa
REP áí ái
REP éí éi
REP óí ói
REP úí úi
REP íó ío
REP íá iá
REP íú iú
MAP 5
MAP aáAÁ
MAP eéEÉ
MAP iíIÍ
MAP oóOÓ
MAP uúUÚ
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# End hunspell extensions; remainder are PFX and SFX specifications #
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

View File

@ -1,26 +0,0 @@
diff -urN ispell-gaeilge-5.0.old/makefile ispell-gaeilge-5.0/makefile
--- ispell-gaeilge-5.0.old/makefile 2017-12-04 02:02:36.000000000 +0530
+++ ispell-gaeilge-5.0/makefile 2018-07-08 09:16:16.483019455 +0530
@@ -20,17 +20,15 @@
ALTAFFIXFILE=gaeilgemor.aff
INSTALL_DATA=$(INSTALL) -m 444
-SORT=/usr/bin/sort -u
+SORT=sort -u
-hashtable: $(INSTALLATION).hash
-
-all: gaeilge.hash gaeilgelit.hash gaeilgemor.hash
+all: ga_IE.dic
# grep -v filters out Malmö, São, LC_ALL=C needed!
-gaeilge.hash: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
+ga_IE.dic: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
LC_ALL=C $(SORT) $(RAWWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail
- iconv -f UTF-8 -t iso-8859-1 $(AFFIXFILE) > tempaff.txt
- $(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilge.hash
+ wc -l gaeilge.focail | cut -d ' ' -f 1 > ga_IE.dic
+ LC_ALL=C $(SORT) -f -t / --key 1,1 gaeilge.focail >> ga_IE.dic
rm -f gaeilge.focail tempaff.txt
gaeilgelit.hash: $(RAWWORDS) $(LITWORDS) gaeilgelit.aff $(PERSONAL)

View File

@ -1,40 +0,0 @@
# hunspell affix file for Irish by Kevin Scannell
# I created this file by converting my ispell affix file on 5 August 2002
# Exactly the same set of affixes, except one can avoid the acrobatics
# for the verb "buígh" because hunspell is a bit smarter about
# combining affixes
#
# ABCDEFGHIJKLMNOPQRSTUVWXYZ
# ****** ****** ***
#
# Copyright 2002-2007 Kevin P. Scannell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
#
# Consult the web page
#
# http://borel.slu.edu/ispell/
#
# for detailed information about these packages and installation information.
SET ISO8859-1
# TRY aihnrsetcdoglumbíéáfóúpvjzxywqk (Aug. 2002, 8MB corpus)
# TRY aihnrestcoldgumíábéfúóCpATBSIDNMGRFLEOPHÉUÁÓÍyÚJvkqKWVwzxjYQZX (Sept. 2003, 75MB corpus)
# Latest: July 2006, 128MB corpus
TRY aihnretsocldgmuíábéfúóACpTSINBDEMRGL-FOP'HUyÉwvÁÓkÍJÚWKxVYqzjXZQ

5
plans/hunspell-ga.fmf Normal file
View File

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

View File

@ -1 +1 @@
SHA512 (ispell-gaeilge-5.0.tar.gz) = 9303b1f971aa22a619cc90b1e74d301e7fbe07b835b05e928de7dd38475bfe64d0bb6afdb14734dc6f75eee8166f9f8a08efc6805a2790244c87549b50d19128 SHA512 (hunspell-ga-5.1.zip) = 0ecd0047aa9ae49e772b120f98138e0a1c77b2e0d52d6f47138c2abcbc243e145990e06f91641e1af526deadf6b7e6bcfc6deb26719b4cfb4df99fae47ebb83c

View File

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

View File

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

View File

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