build the .aff from gaeilge.aff and ispellaff2myspell

This commit is contained in:
Caolan McNamara 2008-03-05 16:38:28 +00:00
parent 7a307badf8
commit 58742eab43
3 changed files with 14 additions and 8 deletions

View File

@ -1,2 +1,3 @@
ga_IE.zip
ispell-gaeilge-4.3.tar.gz
myspell-header
hunspell-header

View File

@ -1,9 +1,10 @@
Name: hunspell-ga
Summary: Irish hunspell dictionaries
Version: 4.3
Release: 2%{?dist}
Release: 3%{?dist}
Source0: http://borel.slu.edu/ispell/ispell-gaeilge-%{version}.tar.gz
Source1: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ga_IE.zip
Source1: myspell-header
Source2: hunspell-header
Group: Applications/Text
URL: http://borel.slu.edu/ispell/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -18,13 +19,13 @@ Irish hunspell dictionaries.
%prep
%setup -q -n ispell-gaeilge-%{version}
unzip %{SOURCE1}
%patch1 -p1 -b .buildhunspell.patch
%build
make
chmod -x *
cat %{SOURCE1} %{SOURCE2} > header
export LANG=en_IE.UTF-8
ispellaff2myspell gaeilge.aff --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
@ -35,10 +36,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README_ga_IE.txt
%doc README COPYING ChangeLog
%{_datadir}/myspell/*
%changelog
* Wed Mar 05 2008 Caolan McNamara <caolanm@redhat.com> - 4.3-3
- build the .aff from gaeilge.aff and ispellaff2myspell
* Tue Mar 04 2008 Caolan McNamara <caolanm@redhat.com> - 4.3-2
- update to latest .aff

View File

@ -1,2 +1,3 @@
eb7e6fb7ce5e74b5848ccf9b7d958b69 ispell-gaeilge-4.3.tar.gz
963e28e6a1b469f53fbc98e15ebda766 ga_IE.zip
53d9056c90f3954ee6451d5800354132 myspell-header
68a48ee26585b7ad8cfb14147f9198b4 hunspell-header