2006-12-13 16:03:13 +00:00
|
|
|
Name: hunspell-en
|
|
|
|
Summary: English hunspell dictionaries
|
2009-02-16 15:09:50 +00:00
|
|
|
%define upstreamid 20090208
|
2006-12-13 16:03:13 +00:00
|
|
|
Version: 0.%{upstreamid}
|
2008-11-29 23:17:03 +00:00
|
|
|
Release: 1%{?dist}
|
2008-02-08 20:39:34 +00:00
|
|
|
#svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist
|
|
|
|
Source0: wordlist-%{upstreamid}.tar.bz2
|
2007-05-06 14:33:09 +00:00
|
|
|
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
|
2008-02-07 15:31:53 +00:00
|
|
|
#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1
|
|
|
|
Patch0: mozilla_words.patch
|
2008-11-28 10:18:41 +00:00
|
|
|
Patch1: en_GB-singleletters.patch
|
|
|
|
Patch2: en_US-strippedabbrevs.patch
|
2009-02-16 15:09:50 +00:00
|
|
|
Patch3: wordlist-buildfix.patch
|
2006-12-13 16:03:13 +00:00
|
|
|
Group: Applications/Text
|
2008-02-08 20:39:34 +00:00
|
|
|
URL: http://wordlist.sourceforge.net/
|
2007-02-08 13:05:13 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-08-09 07:14:10 +00:00
|
|
|
License: LGPLv2+ and BSD
|
2006-12-13 16:03:13 +00:00
|
|
|
BuildArch: noarch
|
2008-08-29 08:59:58 +00:00
|
|
|
BuildRequires: hunspell, aspell, zip
|
2006-12-13 16:03:13 +00:00
|
|
|
Requires: hunspell
|
|
|
|
|
|
|
|
%description
|
|
|
|
English (US, UK, etc.) hunspell dictionaries
|
|
|
|
|
|
|
|
%prep
|
2008-02-08 20:39:34 +00:00
|
|
|
%setup -q -n wordlist
|
|
|
|
%setup -q -T -D -a 1 -n wordlist
|
|
|
|
%patch0 -p1 -b .mozilla
|
2008-11-28 10:18:41 +00:00
|
|
|
%patch1 -p1 -b .singleletters
|
|
|
|
%patch2 -p1 -b .strippedabbrevs
|
2009-02-16 15:09:50 +00:00
|
|
|
%patch3 -p1 -b .buildfix
|
2006-12-13 16:03:13 +00:00
|
|
|
|
2007-05-05 16:21:36 +00:00
|
|
|
%build
|
2008-02-08 20:39:34 +00:00
|
|
|
make
|
|
|
|
cd scowl/speller
|
|
|
|
make hunspell
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 README_en_CA.txt > ../../README_en_CA.txt
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 README_en_US.txt > ../../README_en_US.txt
|
2007-05-05 16:21:36 +00:00
|
|
|
|
2006-12-13 16:03:13 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
2008-02-08 20:39:34 +00:00
|
|
|
cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
cd scowl/speller
|
|
|
|
cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
2006-12-13 16:03:13 +00:00
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
2008-01-15 20:52:59 +00:00
|
|
|
en_GB_aliases="en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW"
|
2006-12-13 16:03:13 +00:00
|
|
|
for lang in $en_GB_aliases; do
|
|
|
|
ln -s en_GB.aff $lang.aff
|
|
|
|
ln -s en_GB.dic $lang.dic
|
|
|
|
done
|
|
|
|
en_US_aliases="en_PH"
|
|
|
|
for lang in $en_US_aliases; do
|
|
|
|
ln -s en_US.aff $lang.aff
|
|
|
|
ln -s en_US.dic $lang.dic
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
2007-02-08 13:05:13 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-02-08 20:39:34 +00:00
|
|
|
%doc README_en_GB.txt README_en_CA.txt README_en_US.txt
|
2006-12-13 16:03:13 +00:00
|
|
|
%{_datadir}/myspell/*
|
|
|
|
|
|
|
|
%changelog
|
2009-02-16 15:09:50 +00:00
|
|
|
* Mon Feb 16 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090208-1
|
|
|
|
- latest version
|
|
|
|
|
2009-01-14 12:19:25 +00:00
|
|
|
* Wed Jan 14 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090114-1
|
2009-01-13 10:57:11 +00:00
|
|
|
- latest version
|
|
|
|
|
2009-01-11 12:55:15 +00:00
|
|
|
* Sun Jan 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090110-1
|
|
|
|
- latest version
|
|
|
|
|
2008-12-18 14:55:02 +00:00
|
|
|
* Thu Dec 18 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081216-1
|
|
|
|
- latest version
|
|
|
|
|
2008-12-06 16:06:19 +00:00
|
|
|
* Sat Dec 06 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081205-1
|
|
|
|
- latest version
|
|
|
|
|
2008-12-02 10:53:43 +00:00
|
|
|
* Tue Dec 02 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081202-1
|
|
|
|
- latest version
|
|
|
|
|
2008-11-29 23:17:03 +00:00
|
|
|
* Sun Nov 29 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081129-1
|
|
|
|
- mozilla blog ... webmistresses signature range integrated
|
|
|
|
|
2008-11-28 10:18:41 +00:00
|
|
|
* Thu Nov 27 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081127-2
|
|
|
|
- abbrevs are always stripped out from US/CA dicts
|
|
|
|
- some single characters are missing from en_GB
|
|
|
|
|
2008-11-28 08:49:09 +00:00
|
|
|
* Thu Nov 27 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081127-1
|
|
|
|
- hardcoded path dropped upstream
|
|
|
|
|
2008-11-25 13:15:47 +00:00
|
|
|
* Tue Nov 25 2008 Caolan McNamara <caolanm@redhat.com> - 0.20081124-1
|
|
|
|
- latest version, i.e +Barack +Obama and co.
|
|
|
|
|
2008-08-29 08:34:43 +00:00
|
|
|
* Fri Aug 29 2008 Caolan McNamara <caolanm@redhat.com> - 0.20080829-1
|
|
|
|
- latest version
|
|
|
|
|
2008-02-08 20:39:34 +00:00
|
|
|
* Fri Feb 08 2008 Caolan McNamara <caolanm@redhat.com> - 0.20080207-1
|
|
|
|
- canonical upstream source
|
|
|
|
|
2008-02-07 15:31:53 +00:00
|
|
|
* Thu Feb 07 2008 Caolan McNamara <caolanm@redhat.com> - 0.20061130-5
|
|
|
|
- apply mozilla word diff
|
|
|
|
|
2008-01-15 20:52:59 +00:00
|
|
|
* Tue Jan 15 2008 Caolan McNamara <caolanm@redhat.com> - 0.20061130-4
|
|
|
|
- clean up spec
|
|
|
|
|
2007-10-04 07:54:37 +00:00
|
|
|
* Mon Sep 17 2007 Caolan McNamara <caolanm@redhat.com> - 0.20061130-3
|
|
|
|
- new varient alias
|
|
|
|
|
2007-08-09 07:14:10 +00:00
|
|
|
* Thu Aug 09 2007 Caolan McNamara <caolanm@redhat.com> - 0.20061130-2
|
2007-08-03 08:46:48 +00:00
|
|
|
- clarify licence
|
|
|
|
|
2007-06-01 07:40:24 +00:00
|
|
|
* Fri Jun 01 2007 Caolan McNamara <caolanm@redhat.com> - 0.20061130-1
|
2007-05-05 16:21:36 +00:00
|
|
|
- update to latest dictionaries
|
|
|
|
|
2007-02-08 13:05:13 +00:00
|
|
|
* Thu Feb 08 2007 Caolan McNamara <caolanm@redhat.com> - 0.20040623-2
|
|
|
|
- update to new spec guidelines
|
|
|
|
|
2006-12-13 16:03:13 +00:00
|
|
|
* Thu Dec 07 2006 Caolan McNamara <caolanm@redhat.com> - 0.20040623-1
|
|
|
|
- initial version
|