From a0bab321478b1769bfb296d236cf63b5000cc00d Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 12:28:47 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-is.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-is.spec b/hunspell-is.spec index aacd996..118361e 100644 --- a/hunspell-is.spec +++ b/hunspell-is.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-is Summary: Icelandic hunspell dictionaries %global upstreamid 20090823 Version: 0.%{upstreamid} -Release: 22%{?dist} +Release: 23%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/2829/1/icelandic-dict-2009-08-23.oxt URL: http://extensions.services.openoffice.org/project/dict-is License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-is) %description @@ -30,15 +36,19 @@ for i in LICENSE_en_US.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/is_IS.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/is_IS.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc LICENSE_en_US.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20090823-23 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20090823-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild