diff --git a/hunspell-nl.spec b/hunspell-nl.spec index 5bb37c7..aab543c 100644 --- a/hunspell-nl.spec +++ b/hunspell-nl.spec @@ -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 - 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 - 2.20.19-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild