From 10a12e9ce35db79632c68d9d8ba027138c7a7013 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 11:49:54 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-grc.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-grc.spec b/hunspell-grc.spec index 4cd74bb..f3c7056 100644 --- a/hunspell-grc.spec +++ b/hunspell-grc.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-grc Summary: Ancient Greek hunspell dictionaries Version: 2.1.5 -Release: 24%{?dist} +Release: 25%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/2313/1/grc.oxt URL: http://www.himeros.eu/ License: GPL+ or LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-grc) %description @@ -19,17 +25,21 @@ Ancient Greek hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/grc_GR.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/grc.aff -cp -p dictionaries/grc_GR.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/grc.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/grc_GR.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/grc.aff +cp -p dictionaries/grc_GR.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/grc.dic %files %doc LICENSES-en.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 2.1.5-25 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 2.1.5-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild