diff --git a/hunspell-te.spec b/hunspell-te.spec index 8c918ea..07dee6b 100644 --- a/hunspell-te.spec +++ b/hunspell-te.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-te Summary: Telugu hunspell dictionaries Version: 1.0.0 -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 1 ##Upstream is unresponsive so unable to verify license version License: GPL+ @@ -22,15 +28,19 @@ Telugu hunspell dictionaries. %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p te_IN/*.dic te_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p te_IN/*.dic te_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %license te_IN/COPYING te_IN/Copyright %doc te_IN/README -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:1.0.0-18 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:1.0.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild