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

This commit is contained in:
Parag Nemade 2022-03-22 13:28:59 +05:30
parent dc5951a0d6
commit c83213eb65
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,15 +1,21 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-mt Name: hunspell-mt
Summary: Maltese hunspell dictionaries Summary: Maltese hunspell dictionaries
%global upstreamid 20110414 %global upstreamid 20110414
Version: 0.%{upstreamid} Version: 0.%{upstreamid}
Release: 9%{?dist} Release: 10%{?dist}
Source: https://downloads.sourceforge.net/project/aoo-extensions/5039/0/dict-mt-2011-04-14.oxt Source: https://downloads.sourceforge.net/project/aoo-extensions/5039/0/dict-mt-2011-04-14.oxt
URL: https://extensions.openoffice.org/en/project/maltese-spell-check-dictionary URL: https://extensions.openoffice.org/en/project/maltese-spell-check-dictionary
License: LGPLv2+ License: LGPLv2+
BuildArch: noarch BuildArch: noarch
BuildRequires: hunspell-devel BuildRequires: hunspell-filesystem-devel
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-mt) Supplements: (hunspell and langpacks-mt)
%description %description
@ -21,17 +27,21 @@ Maltese hunspell dictionaries.
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p mt.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/mt_MT.dic cp -p mt.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/mt_MT.dic
cp -p mt.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/mt_MT.aff cp -p mt.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/mt_MT.aff
%files %files
%doc README_en.txt %doc README_en.txt
%license licence.txt %license licence.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20110414-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.20110414-9 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20110414-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild