From 60e2b55d6ffc27a137062549e279ce8ad3da1ab4 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 15:03:18 +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-sr.spec | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/hunspell-sr.spec b/hunspell-sr.spec index b812747..a91b9e0 100644 --- a/hunspell-sr.spec +++ b/hunspell-sr.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-sr Summary: Serbian hunspell dictionaries %global upstreamid 20130330 Version: 0.%{upstreamid} -Release: 18%{?dist} +Release: 19%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/1572/10/dict-sr.oxt URL: http://extensions.services.openoffice.org/project/dict-sr License: LGPLv3 @@ -29,11 +34,11 @@ Serbian hyphenation rules. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.dic -cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.aff -cp -p sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.dic -cp -p sr-Latn.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sr_YU.dic +cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sr_YU.aff +cp -p sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sh_YU.dic +cp -p sr-Latn.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sh_YU.aff mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p hyph_sr.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sr_YU.dic @@ -42,7 +47,7 @@ cp -p hyph_sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sh_YU.dic sr_YU_aliases="sr_ME sr_RS" sh_YU_aliases="sh_ME sh_RS bs_BA" -pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ for lang in $sr_YU_aliases; do ln -s sr_YU.aff $lang.aff ln -s sr_YU.dic $lang.dic @@ -65,13 +70,17 @@ popd %files %doc registration/license*.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %files -n hyphen-sr %doc registration/license*.txt %{_datadir}/hyphen/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 0.20130330-19 +- 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.20130330-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild