Name:           hunspell-ko
Summary:        Korean hunspell dictionaries for hunspell used in OpenOffice 
Version:        0.7.92
Release:        1
Source:         https://github.com/spellcheck-ko/hunspell-dict-ko/archive/refs/tags/%{version}.tar.gz
URL:            https://extensions.libreoffice.org/en/extensions/show/korean-spellchecker
License:        MPLv1.1 or GPLv2 or LGPLv2
BuildArch:      noarch
BuildRequires:  python3 hunspell
BuildRequires:  python-pyaml
Requires:       hunspell
Supplements:    (hunspell and langpacks-ko)

%description
Korean hunspell dictionaries for hunspell used inOpenOffice.

%prep
%autosetup -n hunspell-dict-ko-%{version} -p1

%build
make

%install
install -Dp ko.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.aff
install -Dp ko.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.dic

%check
make test

%files
%doc README.md LICENSE.CC-BY-4.0 LICENSE.GPL-3 LICENSE.LGPL-2.1 LICENSE.MPL-1.1
%{_datadir}/myspell/*

%changelog
* Fri Apr 14 2023 Ge Wang <wang--ge@126.com> - 0.7.92-1
- Update to version 0.7.92

* Sat Jul 10 2021 wangyue <wangyue92@huawei.com> - 0.7.0-7
- %prep no longer patched with git

* Sat Apr 18 2020 Jeffery.Gao <gaojianxign@huawei.com> - 0.7.0-6
- Package init
