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

This commit is contained in:
Parag Nemade 2022-03-22 15:05:07 +05:30
parent 93d6cce951
commit 05a7c0ee5e
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,14 +1,20 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-vi Name: hunspell-vi
Summary: Vietnamese hunspell dictionaries Summary: Vietnamese hunspell dictionaries
%global upstreamid 20120418 %global upstreamid 20120418
Version: 0.%{upstreamid} Version: 0.%{upstreamid}
Release: 9%{?dist} Release: 10%{?dist}
Source: https://downloads.sourceforge.net/project/aoo-extensions/917/3/vi_spellchecker_ooo3.oxt Source: https://downloads.sourceforge.net/project/aoo-extensions/917/3/vi_spellchecker_ooo3.oxt
URL: https://extensions.openoffice.org/en/project/vietnamese-spellchecker URL: https://extensions.openoffice.org/en/project/vietnamese-spellchecker
License: GPLv2 License: GPLv2
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-vi) Supplements: (hunspell and langpacks-vi)
%description %description
@ -20,15 +26,19 @@ Vietnamese hunspell dictionaries.
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/*.dic dictionaries/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p dictionaries/*.dic dictionaries/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files %files
%license LICENSES-en.txt LICENSES-vi.txt %license LICENSES-en.txt LICENSES-vi.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20120418-10
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20120418-9 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20120418-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild