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
This commit is contained in:
parent
03fb3049b3
commit
1ea9606f25
@ -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 <vishalvvr@fedoraproject.org> - 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 <releng@fedoraproject.org> - 1:2.0.10-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user