From b4c6602cd56145c4afaa09d79c74c6961d70a277 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:14:02 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ml.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-ml.spec b/hunspell-ml.spec index 6efb7aa..5efafa5 100644 --- a/hunspell-ml.spec +++ b/hunspell-ml.spec @@ -1,13 +1,19 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ml Summary: Malayalam hunspell dictionaries Version: 0.1 -Release: 26%{?dist} +Release: 27%{?dist} Source: http://download.savannah.gnu.org/releases/smc/Spellchecker/ooo-hunspell-ml-%{version}.tar.bz2 URL: http://download.savannah.gnu.org/releases/smc/Spellchecker/ License: GPLv3+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ml) %description @@ -20,15 +26,19 @@ Malayalam hunspell dictionaries echo "Nothing to build..." %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 %license COPYING -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.1-27 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild