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

This commit is contained in:
Parag Nemade 2022-03-22 10:17:53 +05:30
parent 042717acb1
commit 4a10572f19
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,13 +1,19 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-as Name: hunspell-as
Summary: Assamese hunspell dictionaries Summary: Assamese hunspell dictionaries
Version: 1.0.3 Version: 1.0.3
Release: 25%{?dist} Release: 26%{?dist}
Source: https://downloads.sourceforge.net/project/aoo-extensions/2318/4/as_in.oxt Source: https://downloads.sourceforge.net/project/aoo-extensions/2318/4/as_in.oxt
URL: https://extensions.openoffice.org/en/project/assamese-dictionaryspell-checker URL: https://extensions.openoffice.org/en/project/assamese-dictionaryspell-checker
License: GPLv2+ or LGPLv2+ or MPLv1.1 License: GPLv2+ or LGPLv2+ or MPLv1.1
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-as) Supplements: (hunspell and langpacks-as)
%description %description
@ -19,15 +25,19 @@ Assamese hunspell dictionaries.
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p as_IN.* $RPM_BUILD_ROOT/%{_datadir}/myspell/ cp -p as_IN.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
%files %files
%doc README_as_IN.txt %doc README_as_IN.txt
%license COPYING COPYING.MPL COPYING.GPL COPYING.LGPL %license COPYING COPYING.MPL COPYING.GPL COPYING.LGPL
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1.0.3-26
- 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.3-25 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild