Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem

This commit is contained in:
Parag Nemade 2022-03-22 10:56:16 +05:30
parent 8f65c5ae38
commit dff8f9799d
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -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 <pnemade AT redhat DOT com> - 20161207-3
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20161207-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild