Resolves:RHEL-52490 - Add conditional for RHEL for using hunspell directory

Add tmt CI tests
This commit is contained in:
Parag Nemade 2024-08-02 16:44:38 +05:30
parent bd27baaa06
commit debb2a3635
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
5 changed files with 29 additions and 2 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,13 +1,14 @@
%if 0%{?fedora} > 35 %if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell %global dict_dirname hunspell
%else %else
%global dict_dirname myspell %global dict_dirname myspell
%endif %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: 29%{?dist} Release: 30%{?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: GPL-3.0-or-later License: GPL-3.0-or-later
@ -46,6 +47,10 @@ cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%{_datadir}/%{dict_dirname}/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* 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 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:0.01-29
- Bump release for June 2024 mass rebuild - Bump release for June 2024 mass rebuild

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

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

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")