hunspell-tl/hunspell-tl.spec
2008-10-07 21:28:30 +00:00

48 lines
1.1 KiB
RPMSpec

Name: hunspell-tl
Summary: Tagalog hunspell dictionaries
%define upstreamid 20050109
Version: 0.%{upstreamid}
Release: 1%{?dist}
Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/tl_PH.zip
Group: Applications/Text
URL: http://borel.slu.edu/crubadan/apps.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+
BuildArch: noarch
Requires: hunspell
%description
Tagalog hunspell dictionaries.
%prep
%setup -q -c -n hunspell-tl
%build
iconv -f ISO-8859-1 -t UTF-8 README_tl_PH.txt > README_tl_PH.txt.new
mv -f README_tl_PH.txt.new README_tl_PH.txt
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p tl_PH.* $RPM_BUILD_ROOT/%{_datadir}/myspell/
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
tl_PH_aliases="fil_PH"
for lang in $tl_PH_aliases; do
ln -s tl_PH.aff $lang.aff
ln -s tl_PH.dic $lang.dic
done
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README_tl_PH.txt
%{_datadir}/myspell/*
%changelog
* Fri Oct 3 2008 Caolan McNamara <caolanm@redhat.com> - 0.20050109-1
- initial version