hunspell-af/hunspell-af.spec
2007-07-09 10:37:58 +00:00

47 lines
1006 B
RPMSpec

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