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