Name: hunspell-tn Summary: Tswana hunspell dictionaries %define upstreamid 20060123 Version: 0.%{upstreamid} Release: 2%{?dist} Source: http://downloads.translate.org.za/spellchecker/tswana/myspell-tn_ZA-%{upstreamid}.zip Group: Applications/Text URL: http://translate.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: LGPLv2+ BuildArch: noarch Requires: hunspell %description Tswana hunspell dictionaries. %prep %setup -q -c -n hunspell-tn %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/ tn_ZA_aliases="tn_BW" for lang in $tn_ZA_aliases; do ln -s tn_ZA.aff $lang.aff ln -s tn_ZA.dic $lang.dic done popd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README_tn_ZA.txt %{_datadir}/myspell/* %changelog * Tue Sep 30 2008 Caolan McNamara - 0.20060123-2 - add Botswana alias * Tue Sep 09 2008 Caolan McNamara - 0.20060123-1 - initial version