diff --git a/hunspell-mos.spec b/hunspell-mos.spec index 7d1407d..b0c55ff 100644 --- a/hunspell-mos.spec +++ b/hunspell-mos.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-mos Summary: Mossi hunspell dictionaries %global upstreamid 20101130 Version: 0.%{upstreamid} -Release: 21%{?dist} +Release: 22%{?dist} Source: http://www.abcburkina.net/ancien/documents/lingu/DicoMoore.zip URL: http://www.abcburkina.net/content/view/377/48/lang,fr License: LGPLv3 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-mos) %description @@ -19,15 +25,19 @@ Mossi hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p mos_BF.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p mos_BF.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc lgpl-3.0.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20101130-22 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20101130-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild