[5844] | 1 | Name: hunspell-en |
---|
| 2 | Summary: English hunspell dictionaries |
---|
| 3 | %define upstreamid 20110318 |
---|
| 4 | Version: 0.%{upstreamid} |
---|
| 5 | Release: 2%{?_dist_release} |
---|
| 6 | #svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist |
---|
| 7 | Source0: wordlist-%{upstreamid}.tar.bz2 |
---|
| 8 | Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip |
---|
| 9 | #See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1 |
---|
| 10 | Patch0: mozilla_words.patch |
---|
| 11 | Patch1: en_GB-singleletters.patch |
---|
| 12 | Patch2: en_GB.two_initial_caps.patch |
---|
| 13 | #See http://sourceforge.net/tracker/?func=detail&aid=2355344&group_id=10079&atid=1014602 |
---|
| 14 | #filter removes words with "." in them |
---|
| 15 | Patch3: en_US-strippedabbrevs.patch |
---|
| 16 | #See https://sourceforge.net/tracker/?func=detail&aid=2987192&group_id=143754&atid=756397 |
---|
| 17 | #to allow "didn't" instead of suggesting change to typographical apostrophe |
---|
| 18 | Patch4: hunspell-en-allow-non-typographical.marks.patch |
---|
| 19 | #See https://sourceforge.net/tracker/?func=detail&aid=3012183&group_id=10079&atid=1014602 |
---|
| 20 | #See https://bugzilla.redhat.com/show_bug.cgi?id=619577 add SI and IEC prefixes |
---|
| 21 | Patch5: hunspell-en-SI_and_IEC.patch |
---|
| 22 | #See https://sourceforge.net/tracker/?func=detail&aid=3175662&group_id=10079&atid=1014602 obscure Calender hides misspelling of Calendar |
---|
| 23 | Patch6: hunspell-en-calender.patch |
---|
| 24 | Group: Applications/Text |
---|
| 25 | URL: http://wordlist.sourceforge.net/ |
---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 27 | License: LGPLv2+ and BSD |
---|
| 28 | BuildArch: noarch |
---|
| 29 | BuildRequires: hunspell, aspell, zip |
---|
| 30 | Requires: hunspell |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | English (US, UK, etc.) hunspell dictionaries |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q -n wordlist |
---|
| 37 | %setup -q -T -D -a 1 -n wordlist |
---|
| 38 | %patch0 -p1 -b .mozilla |
---|
| 39 | %patch1 -p1 -b .singleletters |
---|
| 40 | %patch2 -p1 -b .two_initial_cap |
---|
| 41 | %patch3 -p1 -b .strippedabbrevs |
---|
| 42 | %patch4 -p1 -b .allow-non-typographical |
---|
| 43 | %patch5 -p1 -b .SI_and_IEC |
---|
| 44 | %patch6 -p1 -b .calender |
---|
| 45 | |
---|
| 46 | %build |
---|
| 47 | make |
---|
| 48 | cd scowl/speller |
---|
| 49 | make hunspell |
---|
| 50 | for i in README_en_CA.txt README_en_US.txt; do |
---|
| 51 | if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then |
---|
| 52 | iconv -f ISO-8859-1 -t UTF-8 $i > $i.new |
---|
| 53 | touch -r $i $i.new |
---|
| 54 | mv -f $i.new $i |
---|
| 55 | fi |
---|
| 56 | tr -d '\r' < $i > $i.new |
---|
| 57 | touch -r $i $i.new |
---|
| 58 | mv -f $i.new $i |
---|
| 59 | done |
---|
| 60 | |
---|
| 61 | %install |
---|
| 62 | rm -rf $RPM_BUILD_ROOT |
---|
| 63 | mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell |
---|
| 64 | cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell |
---|
| 65 | cd scowl/speller |
---|
| 66 | cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell |
---|
| 67 | |
---|
| 68 | pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ |
---|
| 69 | 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_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW" |
---|
| 70 | for lang in $en_GB_aliases; do |
---|
| 71 | ln -s en_GB.aff $lang.aff |
---|
| 72 | ln -s en_GB.dic $lang.dic |
---|
| 73 | done |
---|
| 74 | en_US_aliases="en_PH" |
---|
| 75 | for lang in $en_US_aliases; do |
---|
| 76 | ln -s en_US.aff $lang.aff |
---|
| 77 | ln -s en_US.dic $lang.dic |
---|
| 78 | done |
---|
| 79 | popd |
---|
| 80 | |
---|
| 81 | %clean |
---|
| 82 | rm -rf $RPM_BUILD_ROOT |
---|
| 83 | |
---|
| 84 | %files |
---|
| 85 | %defattr(-,root,root,-) |
---|
| 86 | %doc README_en_GB.txt scowl/speller/README_en_CA.txt scowl/speller/README_en_US.txt |
---|
| 87 | %{_datadir}/myspell/* |
---|
| 88 | |
---|
| 89 | %changelog |
---|
| 90 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.20110318-2 |
---|
| 91 | - initial build for Vine Linux |
---|
| 92 | |
---|
| 93 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-2 |
---|
| 94 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 95 | |
---|
| 96 | * Fri Mar 18 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110318-1 |
---|
| 97 | - latest version |
---|
| 98 | |
---|
| 99 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110112-4 |
---|
| 100 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 101 | |
---|
| 102 | * Tue Feb 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-3 |
---|
| 103 | - Resolves: rhbz#675550 add Haskell as a known proper noun |
---|
| 104 | |
---|
| 105 | * Thu Jan 13 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-1 |
---|
| 106 | - latest version |
---|
| 107 | |
---|
| 108 | * Sun Jan 09 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110108-1 |
---|
| 109 | - latest version |
---|
| 110 | |
---|
| 111 | * Tue Jan 04 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110104-1 |
---|
| 112 | - latest version |
---|
| 113 | |
---|
| 114 | * Tue Dec 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101221-1 |
---|
| 115 | - latest version |
---|
| 116 | |
---|
| 117 | * Tue Dec 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101211-1 |
---|
| 118 | - latest version |
---|
| 119 | |
---|
| 120 | * Wed Dec 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101207-1 |
---|
| 121 | - latest version |
---|
| 122 | |
---|
| 123 | * Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-6 |
---|
| 124 | - Resolves: rhbz#619577 add JEDEC prefixes |
---|
| 125 | |
---|
| 126 | * Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-5 |
---|
| 127 | - Resolves: rhbz#619577 add SI and IEC prefixes |
---|
| 128 | |
---|
| 129 | * Mon Jun 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-4 |
---|
| 130 | - Resolves: rhbz#603773 allow just non-typographical apostrophes |
---|
| 131 | |
---|
| 132 | * Sat Jun 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-3 |
---|
| 133 | - Resolves: rhbz#600860 generate a higher level en-US dict |
---|
| 134 | |
---|
| 135 | * Thu Apr 15 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-2 |
---|
| 136 | - allow non-typographical apostrophes |
---|
| 137 | |
---|
| 138 | * Wed Mar 31 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-1 |
---|
| 139 | - latest version |
---|
| 140 | |
---|
| 141 | * Mon Mar 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100308-1 |
---|
| 142 | - latest version |
---|
| 143 | |
---|
| 144 | * Sat Jul 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-7 |
---|
| 145 | - add extra mozilla REPs |
---|
| 146 | |
---|
| 147 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-6 |
---|
| 148 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 149 | |
---|
| 150 | * Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-5 |
---|
| 151 | - tidy spec |
---|
| 152 | |
---|
| 153 | * Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-4 |
---|
| 154 | - extend coverage |
---|
| 155 | |
---|
| 156 | * Sat Jun 06 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-3 |
---|
| 157 | - Change two suspicious words with two initial capitals in en_GB |
---|
| 158 | from ADte TEirtza to ADTe Teirtza |
---|
| 159 | |
---|
| 160 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-2 |
---|
| 161 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 162 | |
---|
| 163 | * Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-1 |
---|
| 164 | - fix upstreamed |
---|
| 165 | |
---|
| 166 | * Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090208-1 |
---|
| 167 | - latest version |
---|
| 168 | |
---|
| 169 | * Wed Jan 14 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090114-1 |
---|
| 170 | - latest version |
---|
| 171 | |
---|
| 172 | * Sun Jan 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090110-1 |
---|
| 173 | - latest version |
---|
| 174 | |
---|
| 175 | * Thu Dec 18 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081216-1 |
---|
| 176 | - latest version |
---|
| 177 | |
---|
| 178 | * Sat Dec 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081205-1 |
---|
| 179 | - latest version |
---|
| 180 | |
---|
| 181 | * Tue Dec 02 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081202-1 |
---|
| 182 | - latest version |
---|
| 183 | |
---|
| 184 | * Sun Nov 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081129-1 |
---|
| 185 | - mozilla blog ... webmistresses signature range integrated |
---|
| 186 | |
---|
| 187 | * Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-2 |
---|
| 188 | - abbrevs are always stripped out from US/CA dicts |
---|
| 189 | - some single characters are missing from en_GB |
---|
| 190 | |
---|
| 191 | * Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-1 |
---|
| 192 | - hardcoded path dropped upstream |
---|
| 193 | |
---|
| 194 | * Tue Nov 25 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081124-1 |
---|
| 195 | - latest version, i.e +Barack +Obama and co. |
---|
| 196 | |
---|
| 197 | * Fri Aug 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080829-1 |
---|
| 198 | - latest version |
---|
| 199 | |
---|
| 200 | * Fri Feb 08 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080207-1 |
---|
| 201 | - canonical upstream source |
---|
| 202 | |
---|
| 203 | * Thu Feb 07 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-5 |
---|
| 204 | - apply mozilla word diff |
---|
| 205 | |
---|
| 206 | * Tue Jan 15 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-4 |
---|
| 207 | - clean up spec |
---|
| 208 | |
---|
| 209 | * Mon Sep 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-3 |
---|
| 210 | - new varient alias |
---|
| 211 | |
---|
| 212 | * Thu Aug 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-2 |
---|
| 213 | - clarify licence |
---|
| 214 | |
---|
| 215 | * Fri Jun 01 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-1 |
---|
| 216 | - update to latest dictionaries |
---|
| 217 | |
---|
| 218 | * Thu Feb 08 2007 Caolán McNamara <caolanm@redhat.com> - 0.20040623-2 |
---|
| 219 | - update to new spec guidelines |
---|
| 220 | |
---|
| 221 | * Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20040623-1 |
---|
| 222 | - initial version |
---|