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
89249659ae
commit
4525d8a950
@ -1,7 +1,12 @@
|
||||
%if 0%{?fedora} > 35
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-nl
|
||||
Summary: Dutch hunspell dictionaries
|
||||
Version: 2.20.19
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Source: https://github.com/OpenTaal/opentaal-hunspell/archive/2.20.19.tar.gz
|
||||
URL: https://opentaal.org/
|
||||
License: BSD or CC-BY
|
||||
@ -19,11 +24,11 @@ Dutch hunspell dictionaries.
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p nl.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/nl_NL.dic
|
||||
cp -p nl.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/nl_NL.aff
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p nl.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/nl_NL.dic
|
||||
cp -p nl.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/nl_NL.aff
|
||||
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
nl_NL_aliases="nl_AW nl_BE"
|
||||
for lang in $nl_NL_aliases; do
|
||||
ln -s nl_NL.aff $lang.aff
|
||||
@ -33,9 +38,13 @@ done
|
||||
|
||||
%files
|
||||
%doc LICENSE.txt README.md
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 2.20.19-6
|
||||
- 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> - 2.20.19-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user