From c8b8b9fcb695e85ecbd57420508daa2a63053c31 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 12:58:29 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ln.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-ln.spec b/hunspell-ln.spec index 01e848a..a0f741c 100644 --- a/hunspell-ln.spec +++ b/hunspell-ln.spec @@ -1,12 +1,18 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ln Summary: Lingala hunspell dictionaries Version: 0.02 -Release: 22%{?dist} +Release: 23%{?dist} Source: http://downloads.sourceforge.net/lingala/hunspell-ln-0.02.zip URL: http://lingala.sourceforge.net/ License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ln) %description @@ -18,15 +24,19 @@ Lingala hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p ln_CD.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p ln_CD.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc README_ln_CD.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.02-23 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.02-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild