From 95cd3045ac680dcf9d438b584bce431d0d1ee557 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:09:48 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ak.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-ak.spec b/hunspell-ak.spec index 75149c5..9f3e006 100644 --- a/hunspell-ak.spec +++ b/hunspell-ak.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ak Summary: Akan hunspell dictionaries Version: 0.9.1 -Release: 9%{?dist} +Release: 10%{?dist} Source: https://addons.mozilla.org/firefox/downloads/file/376172/akan_spelling_dictionary-0.9.1-typefix-fx.xpi URL: http://kasahorow.org/content/akan-nsɛmfuaasekyerɛ #https://addons.mozilla.org/en-US/firefox/versions/license/73122 @@ -9,7 +15,7 @@ License: LGPLv3 BuildArch: noarch BuildRequires: redland -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ak) %description @@ -24,16 +30,20 @@ rdfproc hunspell-oc print | grep install-manifest | grep -v targetApplication | chmod -x dictionaries/ak-GH.* %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/ak-GH.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ak_GH.aff -cp -p dictionaries/ak-GH.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ak_GH.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/ak-GH.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ak_GH.aff +cp -p dictionaries/ak-GH.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ak_GH.dic %files %doc CREDITS -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.9.1-10 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.9.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild