Compare commits

...

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

9 changed files with 95 additions and 7 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/hunspell-chichewa-ny-dict-0.01.oxt hunspell-chichewa-ny-dict-0.01.oxt

View File

@ -1 +0,0 @@
66541a825c19b7c4458eca2d76bef4bd46098705 SOURCES/hunspell-chichewa-ny-dict-0.01.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,11 +1,17 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ny Name: hunspell-ny
Summary: Chichewa hunspell dictionaries Summary: Chichewa hunspell dictionaries
Epoch: 1 Epoch: 1
Version: 0.01 Version: 0.01
Release: 14%{?dist} Release: 31%{?dist}
Source: https://downloads.sourceforge.net/project/aoo-extensions/4052/0/hunspell-chichewa-ny-dict-%{version}.oxt Source: https://downloads.sourceforge.net/project/aoo-extensions/4052/0/hunspell-chichewa-ny-dict-%{version}.oxt
URL: http://extensions.services.openoffice.org/en/project/chicspell URL: http://extensions.services.openoffice.org/en/project/chicspell
License: GPLv3+ License: GPL-3.0-or-later
BuildArch: noarch BuildArch: noarch
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
@ -31,16 +37,70 @@ for i in dictionaries/README_ny_MW.txt; do
done done
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files %files
%doc dictionaries/README_ny_MW.txt %doc dictionaries/README_ny_MW.txt
%license LICENSES-en.txt %license LICENSES-en.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:0.01-31
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Aug 02 2024 Parag Nemade <pnemade AT redhat DOT com> - 1:0.01-30
- Resolves:RHEL-52490 - Add conditional for RHEL for using hunspell directory
- Add tmt CI tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:0.01-29
- Bump release for June 2024 mass rebuild
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 1:0.01-25
- migrated to SPDX license
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1:0.01-22
- rename install directory name from myspell to hunspell
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.01-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 1:0.01-14 * Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 1:0.01-14
- Update Source tag - Update Source tag

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

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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (hunspell-chichewa-ny-dict-0.01.oxt) = a7d38285ebdabbdc1a6fc043358a13e7a8559814a145335b6b278f25ba1010788efc447bd498ae8e44794bca1e07e995f4a9c89d828be0db6792ed167054392d

View File

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

View File

@ -0,0 +1,10 @@
#!/usr/bin/python3
import enchant
lang = "ny_MW"
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")