From b2d6b66b41a92ccb3cf13ae8f3a3fa3998e2ed49 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 25 2013 09:25:04 +0000 Subject: import hunspell-en-0.20121024-3.el7.src.rpm --- diff --git a/.hunspell-en.metadata b/.hunspell-en.metadata new file mode 100644 index 0000000..9408a55 --- /dev/null +++ b/.hunspell-en.metadata @@ -0,0 +1,2 @@ +40404b44584e6c7eec30072dfbb30043b7777be7 SOURCES/en_GB.zip +3a61768a9318a29996f1d3a194a46c494ad6493e SOURCES/wordlist-20121024.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/en_GB-singleletters.patch b/SOURCES/en_GB-singleletters.patch new file mode 100644 index 0000000..014929a --- /dev/null +++ b/SOURCES/en_GB-singleletters.patch @@ -0,0 +1,56 @@ +--- wordlist.orig/en_GB.dic 2005-05-26 11:49:30.000000000 +0100 ++++ wordlist/en_GB.dic 2008-11-28 10:01:37.000000000 +0000 +@@ -1,4 +1,4 @@ +-46280 ++46286 + abaft + abbreviation/M + abdicate/DNGSn +@@ -2278,6 +2278,7 @@ + hysterectomy/SM + Hyundai/M + ICC/M ++i + icebox/SM + icicle/SM + iconoclasm/MS +@@ -2470,6 +2471,7 @@ + Ithacan + its + ix ++j + jackknife/DGMS + Jacqueline + Jaeger/M +@@ -2764,6 +2766,7 @@ + Mabel/M + Macedon + Macedonia/M ++m + macintosh/SM + MacIntyre + Mackenzie +@@ -3222,6 +3225,7 @@ + nuttiness/S + nymphomaniac/S + Oakland/M ++o + ob. + obeyer/EM + obfuscation/M +@@ -4797,6 +4801,7 @@ + tyro/SM + UFO/S + Ukrainian/S ++u + ulcerate/SGNDn + ulcerous + Ulrika/M +@@ -4962,6 +4967,7 @@ + vulnerability/SI + vulva/M + WAC ++w + wagon/SM + waitress/MS + Waldemar/M diff --git a/SOURCES/en_GB.two_initial_caps.patch b/SOURCES/en_GB.two_initial_caps.patch new file mode 100644 index 0000000..e513944 --- /dev/null +++ b/SOURCES/en_GB.two_initial_caps.patch @@ -0,0 +1,20 @@ +--- wordlist.orig/en_GB.dic 2009-06-06 15:16:16.000000000 +0100 ++++ wordlist/en_GB.dic 2009-06-06 15:17:28.000000000 +0100 +@@ -19953,7 +19953,7 @@ + technology/3wSM1 + Ted/M + tee/SGdM +-TEirtza/M ++Teirtza/M + tellurium/M + temp/GMRSTD + tempera/MLS +@@ -41226,7 +41226,7 @@ + adore/lRSNnGkD + Adrian/M + adroit/TYP +-ADte ++ADTe + adulterer/SM + adumbration/M + advantageousness/E diff --git a/SOURCES/en_IE.supplemental.patch b/SOURCES/en_IE.supplemental.patch new file mode 100644 index 0000000..25a5497 --- /dev/null +++ b/SOURCES/en_IE.supplemental.patch @@ -0,0 +1,16 @@ +--- wordlist/en_GB.dic.orig 2012-04-10 22:51:16.471732570 +0100 ++++ wordlist/en_GB.dic 2012-04-10 22:55:00.018995514 +0100 +@@ -1,4 +1,4 @@ +-46285 ++46286 + abaft + abbreviation/M + abdicate/DNGSn +@@ -22588,6 +22588,7 @@ + halter/d + halyard/MS + Hamal/M ++hames + Hamlin/M + hamper/dS + handbag/SMDG diff --git a/SOURCES/en_US-strippedabbrevs.patch b/SOURCES/en_US-strippedabbrevs.patch new file mode 100644 index 0000000..0f4e1ee --- /dev/null +++ b/SOURCES/en_US-strippedabbrevs.patch @@ -0,0 +1,8 @@ +--- wordlist/scowl/speller/en.dic.supp.orig 2008-11-28 10:10:01.000000000 +0000 ++++ wordlist/scowl/speller/en.dic.supp 2008-11-28 10:10:10.000000000 +0000 +@@ -21,3 +21,5 @@ + 7th/pt + 8th/pt + 9th/pt ++e.g. ++i.e. diff --git a/SOURCES/hunspell-en-SI_and_IEC.patch b/SOURCES/hunspell-en-SI_and_IEC.patch new file mode 100644 index 0000000..4013a2c --- /dev/null +++ b/SOURCES/hunspell-en-SI_and_IEC.patch @@ -0,0 +1,78 @@ +--- wordlist/scowl/r/special/abbreviations 2008-11-29 23:02:41.000000000 +0000 ++++ wordlist/scowl/r/special/abbreviations 2010-07-30 11:18:33.000000000 +0100 +@@ -2,6 +2,11 @@ + AI + ATM + BTW ++EB ++Eb ++Ei ++EiB ++Eib + EULA + EULAs + FAQ +@@ -13,27 +18,63 @@ + GB + GHz + GUI ++Gb ++Gi ++GiB ++Gib + HTML + HTTP ++IEC + IMHO + IMNSHO + IMO + ISO ++JEDEC ++KB ++Kb ++Ki ++KiB ++Kib + MB + MP3 + MP3s + Mb ++Mi ++MiB ++Mib + OTOH ++PB ++Pb ++Pi ++PiB ++Pib + RFC + ROFL + RTFM ++TB ++Tb ++Ti ++TiB ++Tib + URL + USB + WWW + WYSIWYG + XML ++YB ++Yb + YMMV ++Yi ++YiB ++Yib ++ZB ++Zb ++Zi ++ZiB ++Zib + cf ++kB ++kb + pp + resp + vs diff --git a/SOURCES/hunspell-en-allow-non-typographical.marks.patch b/SOURCES/hunspell-en-allow-non-typographical.marks.patch new file mode 100644 index 0000000..0051b95 --- /dev/null +++ b/SOURCES/hunspell-en-allow-non-typographical.marks.patch @@ -0,0 +1,21 @@ +--- wordlist/en_GB.aff 2010-04-15 14:51:13.000000000 +0100 ++++ wordlist/en_GB.aff 2010-04-15 14:52:07.000000000 +0100 +@@ -6,6 +6,7 @@ + # R 1.18, 11/04/05 + SET ISO8859-1 + TRY esia�nrtolcdugmfphbyvkw-'.zqjxSNRTLCGDMFPHBEAUYOIVKW����ZQJX���������� ++WORDCHARS 0123456789' + REP 27 + REP f ph + REP ph f +--- wordlist/scowl/speller/en.aff.orig 2010-04-15 14:56:37.000000000 +0100 ++++ wordlist/scowl/speller/en.aff 2010-04-15 14:57:08.000000000 +0100 +@@ -12,7 +12,7 @@ + COMPOUNDRULE 2 + COMPOUNDRULE n*1t + COMPOUNDRULE n*mp +-WORDCHARS 0123456789 ++WORDCHARS 0123456789' + + PFX A Y 1 + PFX A 0 re . diff --git a/SOURCES/hunspell-en-calender.patch b/SOURCES/hunspell-en-calender.patch new file mode 100644 index 0000000..6f4fb89 --- /dev/null +++ b/SOURCES/hunspell-en-calender.patch @@ -0,0 +1,37 @@ +--- wordlist/en_GB.dic 2011-02-08 11:43:16.730271377 +0000 ++++ wordlist/en_GB.dic 2011-02-08 11:43:35.261482189 +0000 +@@ -1,4 +1,4 @@ +-46286 ++46285 + abaft + abbreviation/M + abdicate/DNGSn +@@ -643,7 +643,6 @@ + Calder + caldera/SM + caldron's +-calender/dMS + calibrate/SAGDN + calibrater's + calico/M +--- wordlist/alt12dicts/2of12full.txt 2011-02-08 11:55:46.478837084 +0000 ++++ wordlist/alt12dicts/2of12full.txt 2011-02-08 11:59:12.455202478 +0000 +@@ -6468,7 +6468,6 @@ + 12: 12 -# -& calendar + 2: 1 1# -& calendar month + 2: 1 1# -& calendar year +- 4: 4 -# -& calender + 12: 12 -# -& calf + 9: 8 1# -& calfskin + 3: 3 -# -& Calgary +diff -ru wordlist/alt12dicts/5desk.txt wordlist/alt12dicts/5desk.txt +--- wordlist/alt12dicts/5desk.txt 2011-02-08 11:55:46.548837888 +0000 ++++ wordlist/alt12dicts/5desk.txt 2011-02-08 11:58:55.162003701 +0000 +@@ -7353,7 +7353,6 @@ + Caledonia + Caledonian + calendar +-calender + calendric + calendrical + calends diff --git a/SOURCES/mozilla_words.patch b/SOURCES/mozilla_words.patch new file mode 100644 index 0000000..3300aa5 --- /dev/null +++ b/SOURCES/mozilla_words.patch @@ -0,0 +1,59 @@ +--- wordlist.orig/scowl/r/special/proper-names 2008-02-08 11:53:27.000000000 +0000 ++++ wordlist/scowl/r/special/proper-names 2008-02-08 12:06:00.000000000 +0000 +@@ -6,6 +6,8 @@ + Biden + Bluetooth + Bugzilla ++Camino ++ChatZilla + Debian + ECMAScript + Emacs +@@ -13,16 +15,21 @@ + Facebook + GNU + Gentoo ++Haskell + Hunspell + ISO + Ispell + LyX ++Mandriva + Mozilla ++MySpell + Netflix + PayPal ++SeaMonkey + Roku + SUSE + Slackware ++Sunbird + Thunderbird + Twitter + Ubuntu +--- wordlist.orig/scowl/speller/en.aff 2008-02-08 20:28:24.000000000 +0000 ++++ wordlist/scowl/speller/en.aff 2008-02-08 20:28:45.000000000 +0000 +@@ -110,13 +110,17 @@ + SFX L Y 1 + SFX L 0 ment . + +-REP 88 ++SFX i N 1 ++SFX i us i us ++ ++REP 90 + REP a ei + REP ei a + REP a ey + REP ey a + REP ai ie + REP ie ai ++REP alot a_lot + REP are air + REP are ear + REP are eir +@@ -199,3 +203,4 @@ + REP shun tion + REP shun sion + REP shun cion ++REP sitted sat diff --git a/SPECS/hunspell-en.spec b/SPECS/hunspell-en.spec new file mode 100644 index 0000000..6d6e30c --- /dev/null +++ b/SPECS/hunspell-en.spec @@ -0,0 +1,284 @@ +Name: hunspell-en +Summary: English hunspell dictionaries +%define upstreamid 20121024 +Version: 0.%{upstreamid} +Release: 3%{?dist} +#svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist +Source0: wordlist-%{upstreamid}.tar.bz2 +Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip +#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1 +Patch0: mozilla_words.patch +Patch1: en_GB-singleletters.patch +Patch2: en_GB.two_initial_caps.patch +#See http://sourceforge.net/tracker/?func=detail&aid=2355344&group_id=10079&atid=1014602 +#filter removes words with "." in them +Patch3: en_US-strippedabbrevs.patch +#See https://sourceforge.net/tracker/?func=detail&aid=2987192&group_id=143754&atid=756397 +#to allow "didn't" instead of suggesting change to typographical apostrophe +Patch4: hunspell-en-allow-non-typographical.marks.patch +#See https://sourceforge.net/tracker/?func=detail&aid=3012183&group_id=10079&atid=1014602 +#See https://bugzilla.redhat.com/show_bug.cgi?id=619577 add SI and IEC prefixes +Patch5: hunspell-en-SI_and_IEC.patch +#See https://sourceforge.net/tracker/?func=detail&aid=3175662&group_id=10079&atid=1014602 obscure Calender hides misspelling of Calendar +Patch6: hunspell-en-calender.patch +#valid English words that are archaic or rare in en-GB but not in en-IE +Patch7: en_IE.supplemental.patch +Group: Applications/Text +URL: http://wordlist.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LGPLv2+ and LGPLv2 and BSD +BuildArch: noarch +BuildRequires: aspell, zip +Requires: hunspell +Requires: hunspell-en-US = %{version}-%{release} +Requires: hunspell-en-GB = %{version}-%{release} + +%description +English (US, UK, etc.) hunspell dictionaries + +%package US +Requires: hunspell +Summary: US English hunspell dictionaries +Group: Applications/Text + +%description US +US English hunspell dictionaries + +%package GB +Requires: hunspell +Summary: UK English hunspell dictionaries +Group: Applications/Text + +%description GB +UK English hunspell dictionaries + +%prep +%setup -q -n wordlist +%setup -q -T -D -a 1 -n wordlist +%patch0 -p1 -b .mozilla +%patch1 -p1 -b .singleletters +%patch2 -p1 -b .two_initial_cap +%patch3 -p1 -b .strippedabbrevs +%patch4 -p1 -b .allow-non-typographical +%patch5 -p1 -b .SI_and_IEC +%patch6 -p1 -b .calender +%patch7 -p1 -b .en_IE + +%build +make +cd scowl/speller +make hunspell +for i in README_en_CA.txt README_en_US.txt; do + if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then + iconv -f ISO-8859-1 -t UTF-8 $i > $i.new + touch -r $i $i.new + mv -f $i.new $i + fi + tr -d '\r' < $i > $i.new + touch -r $i $i.new + mv -f $i.new $i +done + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell +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 + +pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ +en_GB_aliases="en_AG en_AU en_BS en_BW en_BZ en_DK en_GH en_HK en_IE en_IN en_JM en_MW en_NA en_NG en_NZ en_SG en_TT en_ZA en-ZM en_ZW" +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 +%defattr(-,root,root,-) +%doc scowl/speller/README_en_CA.txt +%{_datadir}/myspell/* +%exclude %{_datadir}/myspell/en_GB.* +%exclude %{_datadir}/myspell/en_US.* + +%files US +%defattr(-,root,root,-) +%doc scowl/speller/README_en_US.txt +%{_datadir}/myspell/en_US.* + +%files GB +%defattr(-,root,root,-) +%doc README_en_GB.txt +%{_datadir}/myspell/en_GB.* + +%changelog +* Thu Feb 14 2013 Fedora Release Engineering - 0.20121024-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 02 2012 Caolán McNamara - 0.20121024-2 +- wordlist/scowl/speller/aspell/en_phonet.dat under bare LGPLv2 + +* Wed Oct 24 2012 Caolán McNamara - 0.20121024-1 +- latest version +- drop integrated hunspell-en-irregular-plural-possessive.patch + +* Thu Oct 11 2012 Caolán McNamara - 0.20110318-9 +- add possessive forms of irregular plurals for en-US, e.g. men's, women's + +* Mon Aug 27 2012 Caolán McNamara - 0.20110318-8 +- Related: rhbz#850709 fix requires + +* Mon Aug 27 2012 Caolán McNamara - 0.20110318-7 +- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone + +* Wed Aug 1 2012 Caolán McNamara - 0.20110318-6 +- Related: rhbz#573516 we don't need hunspell to build hunspell-en + +* Thu Jul 19 2012 Fedora Release Engineering - 0.20110318-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Apr 12 2012 Caolán McNamara - 0.20110318-4 +- add Malawian alias + +* Tue Apr 10 2012 Caolán McNamara - 0.20110318-3 +- making a hames of it +- add Zambian alias + +* Fri Jan 13 2012 Fedora Release Engineering - 0.20110318-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Mar 18 2011 Caolán McNamara - 0.20110318-1 +- latest version + +* Wed Feb 09 2011 Fedora Release Engineering - 0.20110112-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Feb 08 2011 Caolán McNamara - 0.20110112-3 +- Resolves: rhbz#675550 add Haskell as a known proper noun + +* Thu Jan 13 2011 Caolán McNamara - 0.20110112-1 +- latest version + +* Sun Jan 09 2011 Caolán McNamara - 0.20110108-1 +- latest version + +* Tue Jan 04 2011 Caolán McNamara - 0.20110104-1 +- latest version + +* Tue Dec 21 2010 Caolán McNamara - 0.20101221-1 +- latest version + +* Tue Dec 14 2010 Caolán McNamara - 0.20101211-1 +- latest version + +* Wed Dec 08 2010 Caolán McNamara - 0.20101207-1 +- latest version + +* Fri Jul 30 2010 Caolán McNamara - 0.20100322-6 +- Resolves: rhbz#619577 add JEDEC prefixes + +* Fri Jul 30 2010 Caolán McNamara - 0.20100322-5 +- Resolves: rhbz#619577 add SI and IEC prefixes + +* Mon Jun 14 2010 Caolán McNamara - 0.20100322-4 +- Resolves: rhbz#603773 allow just non-typographical apostrophes + +* Sat Jun 06 2010 Caolán McNamara - 0.20100322-3 +- Resolves: rhbz#600860 generate a higher level en-US dict + +* Thu Apr 15 2010 Caolán McNamara - 0.20100322-2 +- allow non-typographical apostrophes + +* Wed Mar 31 2010 Caolán McNamara - 0.20100322-1 +- latest version + +* Mon Mar 08 2010 Caolán McNamara - 0.20100308-1 +- latest version + +* Sat Jul 25 2009 Caolán McNamara - 0.20090216-7 +- add extra mozilla REPs + +* Fri Jul 24 2009 Fedora Release Engineering - 0.20090216-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Jul 11 2009 Caolán McNamara - 0.20090216-5 +- tidy spec + +* Fri Jun 12 2009 Caolán McNamara - 0.20090216-4 +- extend coverage + +* Sat Jun 06 2009 Caolán McNamara - 0.20090216-3 +- Change two suspicious words with two initial capitals in en_GB + from ADte TEirtza to ADTe Teirtza + +* Tue Feb 24 2009 Fedora Release Engineering - 0.20090216-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 16 2009 Caolán McNamara - 0.20090216-1 +- fix upstreamed + +* Mon Feb 16 2009 Caolán McNamara - 0.20090208-1 +- latest version + +* Wed Jan 14 2009 Caolán McNamara - 0.20090114-1 +- latest version + +* Sun Jan 11 2009 Caolán McNamara - 0.20090110-1 +- latest version + +* Thu Dec 18 2008 Caolán McNamara - 0.20081216-1 +- latest version + +* Sat Dec 06 2008 Caolán McNamara - 0.20081205-1 +- latest version + +* Tue Dec 02 2008 Caolán McNamara - 0.20081202-1 +- latest version + +* Sun Nov 29 2008 Caolán McNamara - 0.20081129-1 +- mozilla blog ... webmistresses signature range integrated + +* Thu Nov 27 2008 Caolán McNamara - 0.20081127-2 +- abbrevs are always stripped out from US/CA dicts +- some single characters are missing from en_GB + +* Thu Nov 27 2008 Caolán McNamara - 0.20081127-1 +- hardcoded path dropped upstream + +* Tue Nov 25 2008 Caolán McNamara - 0.20081124-1 +- latest version, i.e +Barack +Obama and co. + +* Fri Aug 29 2008 Caolán McNamara - 0.20080829-1 +- latest version + +* Fri Feb 08 2008 Caolán McNamara - 0.20080207-1 +- canonical upstream source + +* Thu Feb 07 2008 Caolán McNamara - 0.20061130-5 +- apply mozilla word diff + +* Tue Jan 15 2008 Caolán McNamara - 0.20061130-4 +- clean up spec + +* Mon Sep 17 2007 Caolán McNamara - 0.20061130-3 +- new varient alias + +* Thu Aug 09 2007 Caolán McNamara - 0.20061130-2 +- clarify licence + +* Fri Jun 01 2007 Caolán McNamara - 0.20061130-1 +- update to latest dictionaries + +* Thu Feb 08 2007 Caolán McNamara - 0.20040623-2 +- update to new spec guidelines + +* Thu Dec 07 2006 Caolán McNamara - 0.20040623-1 +- initial version