From 93841a5435c5f030241c202b8386ff5b89a6201c Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 15:05:46 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-xh.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-xh.spec b/hunspell-xh.spec index b71900a..41a4a44 100644 --- a/hunspell-xh.spec +++ b/hunspell-xh.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-xh Summary: Xhosa hunspell dictionaries %global upstreamid 20091030 Version: 0.%{upstreamid} -Release: 22%{?dist} +Release: 23%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/3133/0/dict-xh_za-2009.10.30.oxt URL: https://extensions.openoffice.org/en/project/xhosa-spell-checker License: LGPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-xh) %description @@ -30,15 +36,19 @@ for i in README-xh_ZA.txt release-notes-xh_ZA.txt package-description.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README-xh_ZA.txt release-notes-xh_ZA.txt package-description.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20091030-23 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20091030-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild