diff --git a/hunspell-de.spec b/hunspell-de.spec index 87939e4..2f21a20 100644 --- a/hunspell-de.spec +++ b/hunspell-de.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-de Summary: German hunspell dictionaries Version: 20161207 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 or GPLv3 URL: https://www.j3e.de/ispell/igerman98/ @@ -10,10 +16,10 @@ BuildArch: noarch BuildRequires: make BuildRequires: aspell -BuildRequires: hunspell +BuildRequires: hunspell-filesystem BuildRequires: perl-interpreter -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-de) %description @@ -40,11 +46,11 @@ for i in README_*.txt; do done %install -mkdir -p %{buildroot}%{_datadir}/myspell +mkdir -p %{buildroot}%{_datadir}/%{dict_dirname} cd hunspell -cp -p de_??.dic de_??.aff %{buildroot}%{_datadir}/myspell +cp -p de_??.dic de_??.aff %{buildroot}%{_datadir}/%{dict_dirname} -pushd %{buildroot}%{_datadir}/myspell/ +pushd %{buildroot}%{_datadir}/%{dict_dirname}/ de_DE_aliases="de_BE de_LU" for lang in $de_DE_aliases; do ln -s de_DE.aff $lang.aff @@ -61,9 +67,13 @@ popd %files %doc hunspell/README_de_??.txt %license hunspell/COPYING_GPLv2 hunspell/COPYING_GPLv3 hunspell/Copyright -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 20161207-3 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 20161207-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild