4c27899
Name: hunspell-af
4c27899
Summary: Afrikaans hunspell dictionary
4c27899
%define upstreamid 20060117
4c27899
Version: 0.%{upstreamid}
4c27899
Release: 1%{?dist}
bdff1e2
Source: http://downloads.sourceforge.net/translate/myspell-af_ZA-%{upstreamid}.zip
4c27899
Group: Applications/Text
bdff1e2
URL: http://translate.sourceforge.net/
4c27899
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4c27899
License: LGPL
4c27899
BuildArch: noarch
4c27899
4c27899
Requires: hunspell
4c27899
4c27899
%description
4c27899
Afrikaans hunspell dictionary
4c27899
4c27899
%prep
4c27899
%setup -q -c -n hunspell-af_ZA
4c27899
4c27899
%build
4c27899
4c27899
%install
4c27899
rm -rf $RPM_BUILD_ROOT
4c27899
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
4c27899
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
4c27899
4c27899
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
4c27899
af_ZA_aliases="af_NA"
4c27899
for lang in $af_ZA_aliases; do
4c27899
        ln -s af_ZA.aff $lang.aff
4c27899
        ln -s af_ZA.dic $lang.dic
4c27899
done
4c27899
popd
4c27899
4c27899
%clean
4c27899
rm -rf $RPM_BUILD_ROOT
4c27899
4c27899
%files
4c27899
%defattr(-,root,root,-)
4c27899
%doc README_af_ZA.txt
4c27899
%{_datadir}/myspell/*
4c27899
4c27899
%changelog
4c27899
* Wed Oct 25 2006 Caolan McNamara <caolanm@redhat.com> - 0.20060117-1
4c27899
- initial version