From 83f99224be862b88bdba7fb0f34a0df4e691e9c5 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 13:00:38 +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-sc.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hunspell-sc.spec b/hunspell-sc.spec index b4065d4..a42d5d7 100644 --- a/hunspell-sc.spec +++ b/hunspell-sc.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-sc Summary: Sardinian hunspell dictionaries %global upstreamid 20081101 Version: 0.%{upstreamid} -Release: 27%{?dist} +Release: 28%{?dist} Source: https://ayera.dl.sourceforge.net/project/aoo-extensions/1446/2/dict_sc_it03.oxt URL: http://extensions.services.openoffice.org/project/Dict_sc #The license included is AGPLv3 and pkg-desc/pkg-description.txt @@ -23,16 +28,20 @@ Sardinian hunspell dictionaries. %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p sc_IT.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sc_IT.aff -cp -p sc_it.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sc_IT.dic +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p sc_IT.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sc_IT.aff +cp -p sc_it.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/sc_IT.dic %files %license registration/agpl3-en.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 0.20081101-28 +- 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.20081101-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild