From c5545ae3878fe1ae209f98995878badf7393ecfe Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 15:06:41 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-zu.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-zu.spec b/hunspell-zu.spec index c6aafec..50543ea 100644 --- a/hunspell-zu.spec +++ b/hunspell-zu.spec @@ -1,8 +1,14 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-zu Summary: Zulu hunspell dictionaries %global upstreamid 20100126 Version: 0.%{upstreamid} -Release: 24%{?dist} +Release: 25%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/3132/3/dict-zu_za-2010.01.26.oxt URL: https://extensions.openoffice.org/en/project/zulu-spell-checker # There is no License information in this new sourceforge Source: archive @@ -11,7 +17,7 @@ URL: https://extensions.openoffice.org/en/project/zulu-spell-checker License: GPLv3+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-zu) %description @@ -33,16 +39,20 @@ for i in README-zu_ZA.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p zu_ZA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/zu.aff -cp -p zu_ZA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/zu.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p zu_ZA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/zu.aff +cp -p zu_ZA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/zu.dic %files %doc README-zu_ZA.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20100126-25 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20100126-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild