Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
1c9284d6b6
commit
1f63d2c8da
@ -1,15 +1,21 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-ko
|
||||
Summary: Korean hunspell dictionaries
|
||||
Version: 0.7.0
|
||||
Release: 12%{?dist}
|
||||
Release: 13%{?dist}
|
||||
Source: https://github.com/spellcheck-ko/hunspell-dict-ko/archive/%{version}.tar.gz
|
||||
URL: https://github.com/spellcheck-ko/hunspell-dict-ko
|
||||
License: MPLv1.1 or GPLv2 or LGPLv2
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3
|
||||
BuildRequires: hunspell
|
||||
BuildRequires: hunspell-filesystem
|
||||
BuildRequires: make
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ko)
|
||||
|
||||
%description
|
||||
@ -22,9 +28,9 @@ Korean hunspell dictionaries.
|
||||
make
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.aff
|
||||
cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ko_KR.dic
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p ko.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.aff
|
||||
cp -p ko.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ko_KR.dic
|
||||
|
||||
%check
|
||||
make test
|
||||
@ -32,9 +38,13 @@ make test
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE LICENSE.GPL LICENSE.LGPL LICENSE.MPL
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user