Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem

This commit is contained in:
Parag Nemade 2022-03-22 12:42:57 +05:30
parent 1c9284d6b6
commit 1f63d2c8da
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,15 +1,21 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ko Name: hunspell-ko
Summary: Korean hunspell dictionaries Summary: Korean hunspell dictionaries
Version: 0.7.0 Version: 0.7.0
Release: 12%{?dist} Release: 13%{?dist}
Source: https://github.com/spellcheck-ko/hunspell-dict-ko/archive/%{version}.tar.gz Source: https://github.com/spellcheck-ko/hunspell-dict-ko/archive/%{version}.tar.gz
URL: https://github.com/spellcheck-ko/hunspell-dict-ko URL: https://github.com/spellcheck-ko/hunspell-dict-ko
License: MPLv1.1 or GPLv2 or LGPLv2 License: MPLv1.1 or GPLv2 or LGPLv2
BuildArch: noarch BuildArch: noarch
BuildRequires: python3 BuildRequires: python3
BuildRequires: hunspell BuildRequires: hunspell-filesystem
BuildRequires: make BuildRequires: make
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-ko) Supplements: (hunspell and langpacks-ko)
%description %description
@ -22,9 +28,9 @@ Korean hunspell dictionaries.
make make
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.aff cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.aff
cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.dic cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.dic
%check %check
make test make test
@ -32,9 +38,13 @@ make test
%files %files
%doc README.md %doc README.md
%license LICENSE LICENSE.GPL LICENSE.LGPL LICENSE.MPL %license LICENSE LICENSE.GPL LICENSE.LGPL LICENSE.MPL
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.7.0-13
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-12 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild