diff --git a/hunspell-fa.spec b/hunspell-fa.spec index b1a4da4..e77e08c 100644 --- a/hunspell-fa.spec +++ b/hunspell-fa.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-fa Summary: Farsi hunspell dictionaries %global upstreamid 20070116 Version: 0.%{upstreamid} -Release: 26%{?dist} +Release: 27%{?dist} Source: ftp://ftp.gnu.org/gnu/aspell/dict/fa/aspell6-fa-0.11-0.tar.bz2 URL: http://aspell.net/ License: GPLv2+ BuildArch: noarch BuildRequires: aspell, hunspell-devel -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-fa) %description @@ -25,15 +31,19 @@ cat *.wl > farsi.wordlist wordlist2hunspell farsi.wordlist fa_IR %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc COPYING Copyright doc/README doc/ChangeLog -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20070116-27 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20070116-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild