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

This commit is contained in:
Parag Nemade 2022-03-22 11:59:27 +05:30
parent 5262f3e14a
commit deaef22e32
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-haw Name: hunspell-haw
Summary: Hawaiian hunspell dictionaries Summary: Hawaiian hunspell dictionaries
Version: 0.03 Version: 0.03
Release: 9%{?dist} Release: 10%{?dist}
Source: https://addons.mozilla.org/firefox/downloads/file/248540/hawaiian_spell_checker-%{version}-tb+fx+fn+sm.xpi Source: https://addons.mozilla.org/firefox/downloads/file/248540/hawaiian_spell_checker-%{version}-tb+fx+fn+sm.xpi
URL: http://borel.slu.edu/crubadan/ URL: http://borel.slu.edu/crubadan/
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-haw) Supplements: (hunspell and langpacks-haw)
%description %description
@ -18,16 +24,20 @@ Hawaiian hunspell dictionaries.
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/haw-US.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/haw.aff cp -p dictionaries/haw-US.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/haw.aff
cp -p dictionaries/haw-US.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/haw.dic cp -p dictionaries/haw-US.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/haw.dic
%files %files
%doc dictionaries/README_haw_US.txt %doc dictionaries/README_haw_US.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.03-10
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.03-9 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.03-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild