From 0918288d21ec92d55643fd6dd200eed0d997821b Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 12:03:19 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-hil.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-hil.spec b/hunspell-hil.spec index 0e53c36..2798152 100644 --- a/hunspell-hil.spec +++ b/hunspell-hil.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-hil Summary: Hiligaynon hunspell dictionaries Epoch: 1 Version: 0.14 -Release: 22%{?dist} +Release: 23%{?dist} Source: https://addons.mozilla.org/firefox/downloads/file/108895/litreoir_hiligaynon-%{version}-tb+fx+sm.xpi URL: http://extensions.services.openoffice.org/project/hunspell-hil License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-hil) %description @@ -30,16 +36,20 @@ for i in dictionaries/README_hil_PH.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/hil.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/hil_PH.dic -cp -p dictionaries/hil.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/hil_PH.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/hil.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/hil_PH.dic +cp -p dictionaries/hil.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/hil_PH.aff %files %doc dictionaries/README_hil_PH.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:0.14-23 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:0.14-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild