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

This commit is contained in:
Parag Nemade 2022-03-22 14:11:57 +05:30
parent fb7e255a38
commit f39088257e
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-uk Name: hunspell-uk
Summary: Ukrainian hunspell dictionaries Summary: Ukrainian hunspell dictionaries
Version: 1.8.0 Version: 1.8.0
Release: 9%{?dist} Release: 10%{?dist}
Source: https://downloads.sourceforge.net/project/ispell-uk/spell-uk/%{version}/dict-uk_UA-%{version}.oxt Source: https://downloads.sourceforge.net/project/ispell-uk/spell-uk/%{version}/dict-uk_UA-%{version}.oxt
URL: http://sourceforge.net/projects/ispell-uk URL: http://sourceforge.net/projects/ispell-uk
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-uk) Supplements: (hunspell and langpacks-uk)
%description %description
@ -19,16 +25,20 @@ Ukrainian hunspell dictionaries.
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files %files
%doc uk_UA/README_uk_UA.txt %doc uk_UA/README_uk_UA.txt
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1.8.0-10
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild