From 254d7eaf66ebf176fdc5558aff679b857ae496ae Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 14:01:03 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-tl.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-tl.spec b/hunspell-tl.spec index d16e400..8293e6c 100644 --- a/hunspell-tl.spec +++ b/hunspell-tl.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-tl Summary: Tagalog hunspell dictionaries %global upstreamid 20050109 Version: 0.%{upstreamid} -Release: 25%{?dist} +Release: 26%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/tl_PH.zip URL: http://borel.slu.edu/crubadan/apps.html License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-tl) %description @@ -30,9 +36,9 @@ for i in README_tl_PH.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p tl_PH.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p tl_PH.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ +pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ tl_PH_aliases="fil_PH" for lang in $tl_PH_aliases; do ln -s tl_PH.aff $lang.aff @@ -43,9 +49,13 @@ popd %files %doc README_tl_PH.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20050109-26 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20050109-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild