hunspell-gd/hunspell-gd.spec
2008-03-27 15:16:30 +00:00

46 lines
1.1 KiB
RPMSpec

Name: hunspell-gd
Summary: Scots Gaelic hunspell dictionaries
Version: 0.1.1
Release: 1%{?dist}
Source0: http://borel.slu.edu/ispell/ispell-gd-%{version}.tar.gz
Source1: myspell-header
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
Scots Gaelic hunspell dictionaries.
%prep
%setup -q -n ispell-gd-%{version}
%build
cat gd.dic | wc -l > gd_GB.dic
cat gd.dic >> gd_GB.dic
cat %{SOURCE1} >> gd_GB.aff
iconv -f ISO-8859-1 -t UTF-8 Crawler.txt > Crawler.txt.new
mv Crawler.txt.new Crawler.txt
iconv -f ISO-8859-1 -t UTF-8 README > README.new
mv README.new README
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p gd_GB.dic gd_GB.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README COPYING Crawler.txt
%{_datadir}/myspell/*
%changelog
* Thu Mar 27 2008 Caolan McNamara <caolanm@redhat.com> - 0.1.1-1
- initial version