Blob Blame History Raw
Name: hunspell-si
Summary: Sinhala hunspell dictionaries
Version: 0.2
Release: 1%{?dist}
Source: ftp://ftp.mozilla.org/pub/mozilla.org/addons/13981/sinhala_spellchecker-%{version}-fx.xpi
Group: Applications/Text
URL: https://addons.mozilla.org/en-US/firefox/addon/13981
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv3+
BuildArch: noarch
BuildRequires: redland

Requires: hunspell

%description
Sinhala hunspell dictionaries.

%prep
%setup -q -c -n hunspell-si

%build
rdfproc hunspell-si parse install.rdf
rdfproc hunspell-si print | grep install-manifest | grep -v targetApplication | sed -e 's/.*#//' | sed -e 's/], "/: /'| sed -e 's/"}//' > CREDITS

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/si-LK.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.aff
cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CREDITS
%{_datadir}/myspell/*

%changelog
* Wed Nov 25 2009 Caolan McNamara <caolanm@redhat.com> - 0.2-1
- initial version