hunspell-tn/hunspell-tn.spec
2008-10-21 07:35:46 +00:00

49 lines
1.1 KiB
RPMSpec

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://www.translate.org.za/
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 <caolanm@redhat.com> - 0.20060123-2
- add Botswana alias
* Tue Sep 09 2008 Caolan McNamara <caolanm@redhat.com> - 0.20060123-1
- initial version