Compare commits

...

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

10 changed files with 167 additions and 41 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -19,3 +19,5 @@
/es_US.oxt
/es_UY.oxt
/es_VE.oxt
/es_GQ.oxt
/es_PH.oxt

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,7 +1,13 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-es
Summary: Spanish hunspell dictionaries
Version: 2.3
Release: 2%{?dist}
Version: 2.8
Release: 5%{?dist}
Epoch: 1
Source0: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_AR.oxt
Source1: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_BO.oxt
@ -12,24 +18,25 @@ Source5: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_CU.ox
Source6: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_DO.oxt
Source7: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_EC.oxt
Source8: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_ES.oxt
Source9: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_GT.oxt
Source10: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_HN.oxt
Source11: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_MX.oxt
Source12: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_NI.oxt
Source13: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PA.oxt
Source14: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PE.oxt
Source15: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PR.oxt
Source16: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PY.oxt
Source17: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_SV.oxt
Source18: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_UY.oxt
Source19: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_US.oxt
Source20: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_VE.oxt
Source9: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_GQ.oxt
Source10: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_GT.oxt
Source11: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_HN.oxt
Source12: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_MX.oxt
Source13: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_NI.oxt
Source14: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PA.oxt
Source16: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PE.oxt
Source17: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PR.oxt
Source18: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_PY.oxt
Source19: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_SV.oxt
Source20: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_US.oxt
Source21: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_UY.oxt
Source22: https://github.com/sbosio/rla-es/releases/download/v%{version}/es_VE.oxt
URL: https://github.com/sbosio/rla-es/
License: LGPLv3+ or GPLv3+ or MPLv1.1
License: LGPL-3.0-or-later OR GPL-3.0-or-later OR MPL-1.1
BuildArch: noarch
Requires: hunspell
Requires: hunspell-filesystem
Requires: hunspell-es-AR = %{epoch}:%{version}-%{release}
Requires: hunspell-es-BO = %{epoch}:%{version}-%{release}
Requires: hunspell-es-CL = %{epoch}:%{version}-%{release}
@ -40,6 +47,7 @@ Requires: hunspell-es-DO = %{epoch}:%{version}-%{release}
Requires: hunspell-es-EC = %{epoch}:%{version}-%{release}
Requires: hunspell-es-ES = %{epoch}:%{version}-%{release}
Requires: hunspell-es-GT = %{epoch}:%{version}-%{release}
Requires: hunspell-es-GQ = %{epoch}:%{version}-%{release}
Requires: hunspell-es-HN = %{epoch}:%{version}-%{release}
Requires: hunspell-es-MX = %{epoch}:%{version}-%{release}
Requires: hunspell-es-NI = %{epoch}:%{version}-%{release}
@ -126,6 +134,13 @@ Summary: Guatemalan Spanish hunspell dictionary
%description GT
Guatemalan Spanish hunspell dictionary
%package GQ
Requires: hunspell
Summary: Equatorial Guinean Spanish hunspell dictionary
%description GQ
Equatorial Guinean Spanish hunspell dictionary
%package HN
Requires: hunspell
Summary: Honduran Spanish hunspell dictionary
@ -203,7 +218,7 @@ Summary: Venezuelan Spanish hunspell dictionary
%description VE
Venezuelan Spanish hunspell dictionary
%define es_REGIONS es_ES es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE
%define es_REGIONS es_AR es_BO es_CL es_CO es_CR es_CU es_DO es_EC es_ES es_GQ es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_PY es_SV es_US es_UY es_VE
%prep
%setup -q -c -n hunspell-es
@ -215,12 +230,12 @@ done
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
# supported Spanish language regions:
for REGION in %{es_REGIONS}; do
cp -p $REGION.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/
cp -p $REGION.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/
cp -p $REGION.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
cp -p $REGION.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
done
%files
@ -228,129 +243,194 @@ done
%files ES
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_ES.*
%{_datadir}/%{dict_dirname}/es_ES.*
%files AR
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_AR.*
%{_datadir}/%{dict_dirname}/es_AR.*
%files BO
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_BO.*
%{_datadir}/%{dict_dirname}/es_BO.*
%files CL
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_CL.*
%{_datadir}/%{dict_dirname}/es_CL.*
%files CO
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_CO.*
%{_datadir}/%{dict_dirname}/es_CO.*
%files CR
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_CR.*
%{_datadir}/%{dict_dirname}/es_CR.*
%files CU
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_CU.*
%{_datadir}/%{dict_dirname}/es_CU.*
%files DO
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_DO.*
%{_datadir}/%{dict_dirname}/es_DO.*
%files EC
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_EC.*
%{_datadir}/%{dict_dirname}/es_EC.*
%files GQ
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/%{dict_dirname}/es_GQ.*
%files GT
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_GT.*
%{_datadir}/%{dict_dirname}/es_GT.*
%files HN
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_HN.*
%{_datadir}/%{dict_dirname}/es_HN.*
%files MX
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_MX.*
%{_datadir}/%{dict_dirname}/es_MX.*
%files NI
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_NI.*
%{_datadir}/%{dict_dirname}/es_NI.*
%files PA
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_PA.*
%{_datadir}/%{dict_dirname}/es_PA.*
%files PE
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_PE.*
%{_datadir}/%{dict_dirname}/es_PE.*
%files PR
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_PR.*
%{_datadir}/%{dict_dirname}/es_PR.*
%files PY
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_PY.*
%{_datadir}/%{dict_dirname}/es_PY.*
%files SV
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_SV.*
%{_datadir}/%{dict_dirname}/es_SV.*
%files US
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_US.*
%{_datadir}/%{dict_dirname}/es_US.*
%files UY
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_UY.*
%{_datadir}/%{dict_dirname}/es_UY.*
%files VE
%doc README.txt Changelog.txt
%license GPLv3.txt MPL-1.1.txt LGPLv3.txt
%{_datadir}/myspell/es_VE.*
%{_datadir}/%{dict_dirname}/es_VE.*
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:2.8-5
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:2.8-4
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Aug 22 2023 Ismeel Olea <ismael@olea.org> - 1:2.8-1
* Update to v2.8. Now includes variants for Equatorial Guinea.
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 1:2.2-15
- migrated to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:2.3-12
- Revert typo in previous commit
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:2.3-11
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

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

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

View File

@ -7,6 +7,7 @@ SHA512 (es_CU.oxt) = a6098f7521521e84373d143c423265e8c87e7e7b8ef328d16e4a9da40ef
SHA512 (es_DO.oxt) = 02bc65cd2d0cccf50bc3ef027356b759a6400531e809dda8d4bdb33e15b3b84d6a2274b6a38c0242c8c7e896a2b8515ca6607cdf2b09786140a9753867be952e
SHA512 (es_EC.oxt) = 5038d08e4b2f41d51a0deafd7948eb05de33b641e10fb1e7167badd823fa9dd7844c2e0617f0cf102f3818ef761fbae903b596f82d9576c288f33233f74e2362
SHA512 (es_ES.oxt) = 566f22be881024ff45b2a20b69ffb20abbe4fd144fbd18abfa292e17e0a2f73a18b7f0459a2f4ef8f50832b2ce6974830ffd7de5674378202124641978b8b5a8
SHA512 (es_GQ.oxt) = c5099e250dc9a2e3cb2c3337b82c04fcd9be0478556541059aab4329893e0fee7bd3e4bf62683f413887bdcfa9510c6e3b36691e6a150c3d04954b5803a84d3c
SHA512 (es_GT.oxt) = 1090e0ba07e026fdfce65fc4ad75fa4fb4c9ac13172a5acd94e4549b7347c482f0da0a180e7d057807c93170ac03e258e17d75e9b2455b3c6e2011aef6079c8b
SHA512 (es_HN.oxt) = 4ba1f02228d436a4f4d907381841213ce3a42fadedd3cc916b665b506d1d112bb23aeb87f40147eaf619e919b9b06d58a8aead018edd3bb73593fc429bb07e02
SHA512 (es_MX.oxt) = 10716a744e9889bc3baaad6163c1dad06e6756dbea95166866834480b562c0fa5abce01bd2d5e4b05f19e522e1726e073dd7afef3a9d8e6bfc0d2f4b28bd0a2c

View File

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

View File

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

View File

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