From 27c0fa2408ecd8eaf3cbb6ddc2692f69e5ed89cc Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 14:09:37 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ts.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-ts.spec b/hunspell-ts.spec index 88565bb..3994992 100644 --- a/hunspell-ts.spec +++ b/hunspell-ts.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ts Summary: Tsonga hunspell dictionaries %global upstreamid 20110323.1 Version: 0.%{upstreamid} -Release: 9%{?dist} +Release: 10%{?dist} Source:https://addons.mozilla.org/firefox/downloads/file/376225/tsonga_spell_checker-20110323.1-typefix-fn+sm+tb+fx.xpi URL: https://addons.mozilla.org/en-US/firefox/addon/tsonga-spell-checker/ License: LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ts) %description @@ -20,16 +26,20 @@ Tsonga hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/ts-ZA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ts_ZA.aff -cp -p dictionaries/ts-ZA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ts_ZA.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/ts-ZA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ts_ZA.aff +cp -p dictionaries/ts-ZA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ts_ZA.dic %files %doc README-ts-ZA.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20110323.1-10 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20110323.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild