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

This commit is contained in:
Parag Nemade 2022-03-22 11:41:15 +05:30
parent 23e22a6df3
commit 959476de83
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,7 +1,13 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ga
Summary: Irish hunspell dictionaries
Version: 5.0
Release: 10%{?dist}
Release: 11%{?dist}
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
Source1: myspell-header
Source2: hunspell-header
@ -9,10 +15,10 @@ URL: http://borel.slu.edu/ispell/index.html
License: GPLv2+
BuildArch: noarch
BuildRequires: make
BuildRequires: hunspell-devel
BuildRequires: hunspell-filesystem-devel
Patch1: ispell-gaeilge-5.0-buildhunspell.patch
Requires: hunspell
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-ga)
%description
@ -29,16 +35,20 @@ iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1
ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc README ChangeLog
%license COPYING
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 5.0-11
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild