diff --git a/hunspell-ia.spec b/hunspell-ia.spec index 106a112..3b0d94c 100644 --- a/hunspell-ia.spec +++ b/hunspell-ia.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ia Summary: Interlingua hunspell dictionaries %global upstreamid 20050226 Version: 0.%{upstreamid} -Release: 24%{?dist} +Release: 25%{?dist} Source: http://download.savannah.gnu.org/releases/interlingua/ia_myspell.zip URL: http://wiki.services.openoffice.org/wiki/Dictionaries#Interlingua_.28x-register.29 License: LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ia) %description @@ -23,15 +29,19 @@ touch -r README_ia.txt README_ia.txt.new mv -f README_ia.txt.new README_ia.txt %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p ia.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p ia.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README_ia.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20050226-25 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20050226-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild