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

This commit is contained in:
Parag Nemade 2022-03-22 12:58:29 +05:30
parent 322f851f33
commit c8b8b9fcb6
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,12 +1,18 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ln
Summary: Lingala hunspell dictionaries
Version: 0.02
Release: 22%{?dist}
Release: 23%{?dist}
Source: http://downloads.sourceforge.net/lingala/hunspell-ln-0.02.zip
URL: http://lingala.sourceforge.net/
License: GPLv2+
BuildArch: noarch
Requires: hunspell
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-ln)
%description
@ -18,15 +24,19 @@ Lingala hunspell dictionaries.
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p ln_CD.* $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p ln_CD.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc README_ln_CD.txt
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.02-23
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild