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

This commit is contained in:
Parag Nemade 2022-03-22 10:38:13 +05:30
parent 9bed11ed81
commit 5140eec652
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,14 +1,20 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-br
Summary: Breton hunspell dictionaries
Epoch: 1
Version: 0.15
Release: 9%{?dist}
Release: 10%{?dist}
URL: http://www.drouizig.org/
Source: https://downloads.sourceforge.net/project/aoo-extensions/2207/7/dict-br-0.15.oxt
License: LGPLv2+
BuildArch: noarch
Requires: hunspell
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-br)
%description
@ -21,16 +27,20 @@ Breton hunspell dictionaries.
chmod -x dictionaries/*
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/br_FR.* $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/br_FR.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc package-description.txt
%license LICENSES-en.txt
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:0.15-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:0.15-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild