%define version @VERSION@

Name: igaelic
Summary: Scots Gaelic dictionary for Ispell
Version: %{version}
Release: 1
Group: Utilities/Text
Source: igaelic_%{version}.orig.tar.gz
Copyright:  GPL
BuildRoot: /tmp/igaelic
Requires: ispell >= 3.1.20-5
BuildArchitectures: noarch
Prefix: /usr
Requires: ispell
Packager: Alastair McKinstry <mckinstry@computer.org>

%description

This is a Scots Gaelic  dictionary for ispell.

%prep
%setup 


%build
make gaelic.hash
mkdir -p $RPM_BUILD_ROOT/usr/lib/ispell
mkdir -p $RPM_BUILD_ROOT/usr/man/man4
cp gaelic.hash gaelic.aff  $RPM_BUILD_ROOT/usr/lib/ispell
ln -s gaelic.hash $RPM_BUILD_ROOT/usr/lib/ispell/gaidhlig.hash
ln -s gaelic.aff  $RPM_BUILD_ROOT/usr/lib/ispell/gaidhlig.aff


%install

%post

%preun
# Delete the relevant lines. 

%files
%attr(644,root,root) /usr/lib/ispell/gaelic.hash
%attr(644,root,root) /usr/lib/ispell/gaelic.aff
%attr(644,root,root) /usr/lib/ispell/gaidhlig.hash
%attr(644,root,root) /usr/lib/ispell/gaidhlig.aff
%doc COPYING
%doc ChangeLog
%doc README
