diff --git a/hunspell-as.spec b/hunspell-as.spec index 668d0a2..1eb97f0 100644 --- a/hunspell-as.spec +++ b/hunspell-as.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-as Summary: Assamese hunspell dictionaries Version: 1.0.3 -Release: 25%{?dist} +Release: 26%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/2318/4/as_in.oxt URL: https://extensions.openoffice.org/en/project/assamese-dictionaryspell-checker License: GPLv2+ or LGPLv2+ or MPLv1.1 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-as) %description @@ -19,15 +25,19 @@ Assamese hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p as_IN.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p as_IN.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ %files %doc README_as_IN.txt %license COPYING COPYING.MPL COPYING.GPL COPYING.LGPL -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.0.3-26 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.0.3-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild