From c83213eb65ff80d36754571c6b7f483ea3154135 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:28:59 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-mt.spec | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/hunspell-mt.spec b/hunspell-mt.spec index d27a359..ba7fb5c 100644 --- a/hunspell-mt.spec +++ b/hunspell-mt.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-mt Summary: Maltese hunspell dictionaries %global upstreamid 20110414 Version: 0.%{upstreamid} -Release: 9%{?dist} +Release: 10%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/5039/0/dict-mt-2011-04-14.oxt URL: https://extensions.openoffice.org/en/project/maltese-spell-check-dictionary License: LGPLv2+ BuildArch: noarch -BuildRequires: hunspell-devel +BuildRequires: hunspell-filesystem-devel -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-mt) %description @@ -21,17 +27,21 @@ Maltese hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p mt.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/mt_MT.dic -cp -p mt.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/mt_MT.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p mt.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/mt_MT.dic +cp -p mt.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/mt_MT.aff %files %doc README_en.txt %license licence.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20110414-10 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20110414-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild