From c4670f659c455325df94acc6f27cb6844c05f863 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 11:48:42 +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-pl.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hunspell-pl.spec b/hunspell-pl.spec index a010d61..26fc9a2 100644 --- a/hunspell-pl.spec +++ b/hunspell-pl.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-pl Summary: Polish hunspell dictionaries %global upstreamid 20180707 Version: 0.%{upstreamid} -Release: 9%{?dist} +Release: 10%{?dist} Source: http://sjp.pl/slownik/ort/sjp-myspell-pl-%{upstreamid}.zip URL: https://sjp.pl/slownik/ort/ License: LGPLv2+ or GPL+ or MPLv1.1 or ASL 2.0 or CC-BY-SA @@ -21,15 +26,19 @@ Polish hunspell dictionaries. unzip pl_PL.zip %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_pl_PL.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 0.20180707-10 +- 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.20180707-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild