diff --git a/.cvsignore b/.cvsignore index e69de29..9fd1965 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ispell-gd-0.1.1.tar.gz diff --git a/hunspell-gd.spec b/hunspell-gd.spec new file mode 100644 index 0000000..15fb6fb --- /dev/null +++ b/hunspell-gd.spec @@ -0,0 +1,45 @@ +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 - 0.1.1-1 +- initial version diff --git a/myspell-header b/myspell-header new file mode 100644 index 0000000..430e1e8 --- /dev/null +++ b/myspell-header @@ -0,0 +1,19 @@ +# gd_GB.aff - affix file for myspell-gd +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +SET ISO8859-1 + +TRY ahinrdesclgoutmbàf-òACìTùBpGSDMèIRPLNEFéO'UóÀÒÌÙHÉÈ diff --git a/sources b/sources index e69de29..17ca49c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +339ef31ff72f55cdb951d06f58a87257 ispell-gd-0.1.1.tar.gz