From 514cc27d9df3d4ddf9d8d69d00db50e320330bbe Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 15:07:25 +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-ss.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hunspell-ss.spec b/hunspell-ss.spec index c323cab..2b97ff8 100644 --- a/hunspell-ss.spec +++ b/hunspell-ss.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-ss Summary: Swati hunspell dictionaries %global upstreamid 20091030 Version: 0.%{upstreamid} -Release: 22%{?dist} +Release: 23%{?dist} Source: https://downlaods.sourceforge.net/project/aoo-extensions/3137/0/dict-ss_za-2009.10.30.oxt URL: http://www.translate.org.za/ License: LGPLv2+ @@ -30,15 +35,19 @@ for i in README-ss_ZA.txt release-notes-ss_ZA.txt package-description.txt; do done %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-ss_ZA.txt release-notes-ss_ZA.txt package-description.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 0.20091030-23 +- 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.20091030-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild