From b9b66218907e0ce88dd2ba08268725a278760722 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 12:26:29 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-id.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-id.spec b/hunspell-id.spec index 8d4e643..d05f59e 100644 --- a/hunspell-id.spec +++ b/hunspell-id.spec @@ -1,14 +1,20 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-id Summary: Indonesian hunspell dictionaries %global upstreamid 20040812 Version: 0.%{upstreamid} -Release: 24%{?dist} +Release: 25%{?dist} Source: http://download.services.openoffice.org/contrib/dictionaries/id_ID.zip URL: http://wiki.services.openoffice.org/wiki/Dictionaries#Indonesian_.28Indonesia.29 License: GPLv2 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-id) %description @@ -21,15 +27,19 @@ Indonesian hunspell dictionaries. chmod -x * %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_id_ID.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20040812-25 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20040812-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild