hunspell-en-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. %description
  32. English (US, UK, etc.) hunspell dictionaries
  33. %prep
  34. %setup -q -n wordlist
  35. %setup -q -T -D -a 1 -n wordlist
  36. %patch0 -p1 -b .mozilla
  37. %patch1 -p1 -b .singleletters
  38. %patch2 -p1 -b .two_initial_cap
  39. %patch3 -p1 -b .strippedabbrevs
  40. %patch4 -p1 -b .allow-non-typographical
  41. %patch5 -p1 -b .SI_and_IEC
  42. %patch6 -p1 -b .calender
  43. %build
  44. make
  45. cd scowl/speller
  46. make hunspell
  47. for i in README_en_CA.txt README_en_US.txt; do
  48. if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
  49. iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
  50. touch -r $i $i.new
  51. mv -f $i.new $i
  52. fi
  53. tr -d '\r' < $i > $i.new
  54. touch -r $i $i.new
  55. mv -f $i.new $i
  56. done
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
  60. cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
  61. cd scowl/speller
  62. cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
  63. pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
  64. 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"
  65. for lang in $en_GB_aliases; do
  66. ln -s en_GB.aff $lang.aff
  67. ln -s en_GB.dic $lang.dic
  68. done
  69. en_US_aliases="en_PH"
  70. for lang in $en_US_aliases; do
  71. ln -s en_US.aff $lang.aff
  72. ln -s en_US.dic $lang.dic
  73. done
  74. popd
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %files
  78. %defattr(-,root,root,-)
  79. %doc README_en_GB.txt scowl/speller/README_en_CA.txt scowl/speller/README_en_US.txt
  80. %{_datadir}/myspell/*
  81. %changelog
  82. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.20110318-2
  83. - initial build for Vine Linux
  84. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-2
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  86. * Fri Mar 18 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110318-1
  87. - latest version
  88. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110112-4
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  90. * Tue Feb 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-3
  91. - Resolves: rhbz#675550 add Haskell as a known proper noun
  92. * Thu Jan 13 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-1
  93. - latest version
  94. * Sun Jan 09 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110108-1
  95. - latest version
  96. * Tue Jan 04 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110104-1
  97. - latest version
  98. * Tue Dec 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101221-1
  99. - latest version
  100. * Tue Dec 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101211-1
  101. - latest version
  102. * Wed Dec 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101207-1
  103. - latest version
  104. * Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-6
  105. - Resolves: rhbz#619577 add JEDEC prefixes
  106. * Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-5
  107. - Resolves: rhbz#619577 add SI and IEC prefixes
  108. * Mon Jun 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-4
  109. - Resolves: rhbz#603773 allow just non-typographical apostrophes
  110. * Sat Jun 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-3
  111. - Resolves: rhbz#600860 generate a higher level en-US dict
  112. * Thu Apr 15 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-2
  113. - allow non-typographical apostrophes
  114. * Wed Mar 31 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-1
  115. - latest version
  116. * Mon Mar 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100308-1
  117. - latest version
  118. * Sat Jul 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-7
  119. - add extra mozilla REPs
  120. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-6
  121. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  122. * Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-5
  123. - tidy spec
  124. * Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-4
  125. - extend coverage
  126. * Sat Jun 06 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-3
  127. - Change two suspicious words with two initial capitals in en_GB
  128. from ADte TEirtza to ADTe Teirtza
  129. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-2
  130. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  131. * Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-1
  132. - fix upstreamed
  133. * Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090208-1
  134. - latest version
  135. * Wed Jan 14 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090114-1
  136. - latest version
  137. * Sun Jan 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090110-1
  138. - latest version
  139. * Thu Dec 18 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081216-1
  140. - latest version
  141. * Sat Dec 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081205-1
  142. - latest version
  143. * Tue Dec 02 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081202-1
  144. - latest version
  145. * Sun Nov 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081129-1
  146. - mozilla blog ... webmistresses signature range integrated
  147. * Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-2
  148. - abbrevs are always stripped out from US/CA dicts
  149. - some single characters are missing from en_GB
  150. * Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-1
  151. - hardcoded path dropped upstream
  152. * Tue Nov 25 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081124-1
  153. - latest version, i.e +Barack +Obama and co.
  154. * Fri Aug 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080829-1
  155. - latest version
  156. * Fri Feb 08 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080207-1
  157. - canonical upstream source
  158. * Thu Feb 07 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-5
  159. - apply mozilla word diff
  160. * Tue Jan 15 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-4
  161. - clean up spec
  162. * Mon Sep 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-3
  163. - new varient alias
  164. * Thu Aug 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-2
  165. - clarify licence
  166. * Fri Jun 01 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-1
  167. - update to latest dictionaries
  168. * Thu Feb 08 2007 Caolán McNamara <caolanm@redhat.com> - 0.20040623-2
  169. - update to new spec guidelines
  170. * Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20040623-1
  171. - initial version