From 1ea9606f25a59d868d08d6c1f67b70a819cc9009 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 11:13:34 +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-no.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hunspell-no.spec b/hunspell-no.spec index 3601d51..a1da41c 100644 --- a/hunspell-no.spec +++ b/hunspell-no.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-no Summary: Norwegian hunspell dictionaries Epoch: 1 Version: 2.0.10 -Release: 15%{?dist} +Release: 16%{?dist} Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/ @@ -86,8 +91,8 @@ for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \ done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes @@ -96,11 +101,11 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD %files -n hunspell-nb %doc README_nb_NO.txt -%{_datadir}/myspell/nb_NO.* +%{_datadir}/%{dict_dirname}/nb_NO.* %files -n hunspell-nn %doc README_nn_NO.txt -%{_datadir}/myspell/nn_NO.* +%{_datadir}/%{dict_dirname}/nn_NO.* %files -n hyphen-nb %doc README_hyph_nb_NO.txt @@ -119,6 +124,10 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD %{_datadir}/mythes/th_nn_NO_v2.* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 1:2.0.10-16 +- rename install directory name from myspell to hunspell +- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change + * Thu Jan 20 2022 Fedora Release Engineering - 1:2.0.10-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild