40 lines
1.3 KiB
RPMSpec
40 lines
1.3 KiB
RPMSpec
Name: hunspell-ga
|
|
Version: 5.0
|
|
Release: 3
|
|
Summary: hunspell dictionaries for Irish
|
|
License: GPLv2+
|
|
URL: https://cadhan.com/gaelspell
|
|
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
|
|
Source1: https://github.com/kscanne/gaelspell/blob/master/myspell-header
|
|
Source2: https://github.com/kscanne/gaelspell/blob/master/hunspell-header
|
|
Patch0001: ispell-gaeilge-5.0-buildhunspell.patch
|
|
BuildArch: noarch
|
|
BuildRequires: hunspell-devel
|
|
Requires: hunspell
|
|
Supplements: (hunspell and langpacks-ga)
|
|
%description
|
|
hunspell dictionaries for Irish.
|
|
|
|
%prep
|
|
%autosetup -n ispell-gaeilge-%{version} -p1
|
|
|
|
%build
|
|
%make_build
|
|
cat %{SOURCE1} %{SOURCE2} > header
|
|
export LANG=en_IE.UTF-8
|
|
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
|
|
install -Dp ga_IE.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ga_IE.dic
|
|
install -Dp ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ga_IE.aff
|
|
|
|
|
|
%files
|
|
%doc README ChangeLog COPYING
|
|
%{_datadir}/myspell/*
|
|
|
|
%changelog
|
|
* Wed May 20 2020 yanan li <liyanan032@huawei.com> - 5.0-3
|
|
- Package init
|