From 150cae2fa9ef992739eaebe5c3ed5e11f8efdc11 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 11:25:20 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-fj.spec | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/hunspell-fj.spec b/hunspell-fj.spec index ed0caf4..a333942 100644 --- a/hunspell-fj.spec +++ b/hunspell-fj.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-fj Summary: Fijian hunspell dictionaries Version: 1.2 -Release: 23%{?dist} +Release: 24%{?dist} #Source: http://www.foss.usp.ac.fj/OOo_fj/OOo_fj_FJ.zip Source: https://addons.mozilla.org/firefox/downloads/file/84397/fijian_spelling_dictionary-%{version}-fx+tb+sm.xpi URL: http://www.iosn.net/pacific-islands/usp-microgrants/fijian-spellchecker License: LGPLv2+ or GPLv2+ or MPLv1.1 BuildArch: noarch -BuildRequires: hunspell-devel +BuildRequires: hunspell-filesystem-devel -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-fj) %description @@ -28,16 +34,20 @@ done chmod -x fj_FJ.* %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/fj_FJ.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.aff -cp -p dictionaries/fj_FJ.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/fj_FJ.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/fj.aff +cp -p dictionaries/fj_FJ.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/fj.dic %files %doc dictionaries/README_fj_FJ.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.2-24 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild