diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/hunspell-ms.spec b/hunspell-ms.spec index 2e7fccf..fd1346c 100644 --- a/hunspell-ms.spec +++ b/hunspell-ms.spec @@ -1,22 +1,16 @@ -%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 -%global dict_dirname hunspell -%else -%global dict_dirname myspell -%endif - Name: hunspell-ms Summary: Malay hunspell dictionaries %global upstreamid 20050117 Version: 0.%{upstreamid} -Release: 37%{?dist} +Release: 23%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/ms_MY.zip URL: https://wiki.openoffice.org/wiki/Dictionaries # affix file is under GPL+ # rest package under GFDL -License: GFDL-1.1-or-later AND GPL-1.0-or-later +License: GFDL and GPL+ BuildArch: noarch -Requires: hunspell-filesystem +Requires: hunspell Supplements: (hunspell and langpacks-ms) %description @@ -29,10 +23,10 @@ Malay hunspell dictionaries. chmod -x * %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 -pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ +pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ ms_MY_aliases="ms_BN" for lang in $ms_MY_aliases; do ln -s ms_MY.aff $lang.aff @@ -42,52 +36,9 @@ done %files %doc README_ms_MY.txt -%{_datadir}/%{dict_dirname}/* +%{_datadir}/myspell/* %changelog -* Thu Jul 16 2026 Fedora Release Engineering - 0.20050117-37 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Fri Jan 16 2026 Fedora Release Engineering - 0.20050117-36 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Thu Jul 24 2025 Fedora Release Engineering - 0.20050117-35 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Fri Jan 17 2025 Fedora Release Engineering - 0.20050117-34 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Thu Jul 18 2024 Fedora Release Engineering - 0.20050117-33 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed Jan 24 2024 Fedora Release Engineering - 0.20050117-32 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jan 20 2024 Fedora Release Engineering - 0.20050117-31 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Jul 20 2023 Fedora Release Engineering - 0.20050117-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Feb 22 2023 Caolán McNamara - 0.20050117-29 -- migrated to SPDX license - -* Thu Jan 19 2023 Fedora Release Engineering - 0.20050117-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Jul 21 2022 Fedora Release Engineering - 0.20050117-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Tue Mar 22 2022 Parag Nemade - 0.20050117-26 -- Add conditional for new hunspell dir path and update to Requires: - hunspell-filesystem - -* Thu Jan 20 2022 Fedora Release Engineering - 0.20050117-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Thu Jul 22 2021 Fedora Release Engineering - 0.20050117-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - * Tue Jan 26 2021 Fedora Release Engineering - 0.20050117-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild @@ -152,8 +103,8 @@ done * Tue Feb 24 2009 Fedora Release Engineering - 0.20050117-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild -* Fri Aug 03 2007 Caolán McNamara - 0.20050117-2 +* Fri Aug 03 2007 Caolan McNamara - 0.20050117-2 - clarify license, the .aff apparently is GPL+ while the wordlist is GFDL -* Thu Dec 07 2006 Caolán McNamara - 0.20050117-1 +* Thu Dec 07 2006 Caolan McNamara - 0.20050117-1 - initial version diff --git a/plans/hunspell-ms.fmf b/plans/hunspell-ms.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/hunspell-ms.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf deleted file mode 100644 index 0f117e8..0000000 --- a/tests/test_dic_availability.fmf +++ /dev/null @@ -1,6 +0,0 @@ -require: -- python3-enchant -- hunspell-ms -test: python3 test_dic_availability.py -framework: shell - diff --git a/tests/test_dic_availability.py b/tests/test_dic_availability.py deleted file mode 100644 index 218d508..0000000 --- a/tests/test_dic_availability.py +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/python3 - -import enchant - -lang = "ms_MY" -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") diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf deleted file mode 100644 index 5bafe18..0000000 --- a/tests/test_suggest_words.fmf +++ /dev/null @@ -1,6 +0,0 @@ -require: -- python3-enchant -- hunspell-ms -test: python3 test_suggest_words.py -framework: shell - diff --git a/tests/test_suggest_words.py b/tests/test_suggest_words.py deleted file mode 100644 index a2e6c94..0000000 --- a/tests/test_suggest_words.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/python3 - -import enchant - -wdlst = [ "Hello", "teh", "pagi"] -dic = enchant.Dict("ms_MY") -for wd in wdlst: - dic.check(wd) - print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))