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

This commit is contained in:
Parag Nemade 2022-03-22 13:58:44 +05:30
parent 3399809727
commit 230b9efefe
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,8 +1,14 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-tk
Summary: Turkmen hunspell dictionaries
Version: 0.02
Epoch: 1
Release: 20%{?dist}
Release: 21%{?dist}
# Following link is dead now
# Do not report bugs to fix it
Source: http://releases.mozilla.org/pub/mozilla.org/addons/204314/turkmen_spell_checker-%{version}-tb+fx+sm.xpi
@ -10,7 +16,7 @@ URL: http://borel.slu.edu/crubadan/apps.html
License: GPLv2+
BuildArch: noarch
Requires: hunspell
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-tk)
%description
@ -22,16 +28,20 @@ Turkmen hunspell dictionaries.
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/tk-TM.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/tk.aff
cp -p dictionaries/tk-TM.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/tk.dic
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/tk-TM.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tk.aff
cp -p dictionaries/tk-TM.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/tk.dic
%files
%doc dictionaries/README_tk_TM.txt
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:0.02-21
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.02-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild