From 4417b0bdae70451ae4fc1ee45a80ea25c4abbd44 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 13:14:54 +0530 Subject: [PATCH] update default dictionary install location - rename default install dir name from myspell to hunspell - F36 onwards will use hunspell dir & previous releases would use myspell dir - https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change --- hunspell-si.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hunspell-si.spec b/hunspell-si.spec index ac87073..199b2fd 100644 --- a/hunspell-si.spec +++ b/hunspell-si.spec @@ -1,7 +1,12 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-si Summary: Sinhala hunspell dictionaries Version: 0.2.1 -Release: 24%{?dist} +Release: 25%{?dist} Source: http://www.sandaru1.com/si-LK.tar.gz #Following URL is down since few months informed to upstream URL: http://www.sandaru1.com/2009/08/29/sinhala-spell-checker-for-firefox/ @@ -20,15 +25,19 @@ Sinhala hunspell dictionaries. #nothing to build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/si-LK.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.aff -cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/si-LK.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/si_LK.aff +cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/si_LK.dic %files %doc LICENSE README -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 0.2.1-25 +- rename install directory name from myspell to hunspell +- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change + * Thu Jan 20 2022 Fedora Release Engineering - 0.2.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild