From cfbac2c9cc6a15e629da06ad03bf222e2d84a559 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:35:25 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-ne.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-ne.spec b/hunspell-ne.spec index a4bfefc..c4ef856 100644 --- a/hunspell-ne.spec +++ b/hunspell-ne.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-ne Summary: Nepali hunspell dictionaries Version: 20080425 -Release: 25%{?dist} +Release: 26%{?dist} # Upstream Source and URL is down now, please don't report FTBFS bugs Source: http://nepalinux.org/downloads/ne_NP_dict.zip URL: http://nepalinux.org/downloads @@ -9,7 +15,7 @@ URL: http://nepalinux.org/downloads License: LGPLv2 BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-ne) %description @@ -26,10 +32,10 @@ sed -i 's/\r//;s/[ \t]*$//' ne_NP.dic %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} -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ ne_NP_aliases="ne_IN" for lang in $ne_NP_aliases; do ln -s ne_NP.aff $lang.aff @@ -39,9 +45,13 @@ popd %files %doc README_ne_NP.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 20080425-26 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 20080425-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild