02c588
Name: hunspell-en
02c588
Summary: English hunspell dictionaries
02c588
%global upstreamid 20140811.1
02c588
Version: 0.%{upstreamid}
02c588
Release: 12%{?dist}
02c588
Source0: https://github.com/en-wl/wordlist/archive/rel-2014.08.11.1.tar.gz
02c588
Source1: http://download.services.openoffice.org/contrib/dictionaries/en_GB.zip
02c588
#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1
02c588
Patch0: mozilla_words.patch
02c588
Patch1: en_GB-singleletters.patch
02c588
Patch2: en_GB.two_initial_caps.patch
02c588
#See http://sourceforge.net/tracker/?func=detail&aid=2355344&group_id=10079&atid=1014602
02c588
#filter removes words with "." in them
02c588
Patch3: en_US-strippedabbrevs.patch
02c588
#See https://sourceforge.net/tracker/?func=detail&aid=2987192&group_id=143754&atid=756397
02c588
#to allow "didn't" instead of suggesting change to typographical apostrophe
02c588
Patch4: hunspell-en-allow-non-typographical.marks.patch
02c588
#See https://sourceforge.net/tracker/?func=detail&aid=3012183&group_id=10079&atid=1014602
02c588
#See https://bugzilla.redhat.com/show_bug.cgi?id=619577 add SI and IEC prefixes
02c588
Patch5: hunspell-en-SI_and_IEC.patch
02c588
#See https://sourceforge.net/tracker/?func=detail&aid=3175662&group_id=10079&atid=1014602 obscure Calender hides misspelling of Calendar
02c588
Patch6: hunspell-en-calender.patch
02c588
#valid English words that are archaic or rare in en-GB but not in en-IE
02c588
Patch7: en_IE.supplemental.patch
02c588
#call git to get the release hash, but this is a tarball
02c588
Patch8: hunspell-en-dont-call-git-during-build.patch
02c588
#fix build
02c588
Patch9: hunspell-en-fixbuild.patch
02c588
#rhbz#1492306 for better or worse treat etc the same in US and GB
02c588
Patch10: en_GB.etc.patch
02c588
#rhbz#1494968 perl tightened up regex rules
02c588
Patch11: perl.regex.patch
02c588
URL: http://wordlist.sourceforge.net/
02c588
License: LGPLv2+ and LGPLv2 and BSD
02c588
BuildArch: noarch
02c588
BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long
02c588
Requires: hunspell
02c588
Requires: hunspell-en-US = %{version}-%{release}
02c588
Requires: hunspell-en-GB = %{version}-%{release}
02c588
Supplements: (hunspell and langpacks-en)
02c588
02c588
%description
02c588
English (US, UK, etc.) hunspell dictionaries
02c588
02c588
%package US
02c588
Requires: hunspell
02c588
Summary: US English hunspell dictionaries
02c588
02c588
%description US
02c588
US English hunspell dictionaries
02c588
02c588
%package GB
02c588
Requires: hunspell
02c588
Supplements: (hunspell and langpacks-en_GB)
02c588
Summary: UK English hunspell dictionaries
02c588
02c588
%description GB
02c588
UK English hunspell dictionaries
02c588
02c588
%prep
02c588
%setup -q -n wordlist-rel-2014.08.11.1
02c588
%setup -q -T -D -a 1 -n wordlist-rel-2014.08.11.1
02c588
%patch0 -p0 -b .mozilla
02c588
%patch1 -p1 -b .singleletters
02c588
%patch2 -p1 -b .two_initial_cap
02c588
%patch3 -p0 -b .strippedabbrevs
02c588
%patch4 -p0 -b .allow-non-typographical
02c588
%patch5 -p0 -b .SI_and_IEC
02c588
%patch6 -p1 -b .calender
02c588
%patch7 -p1 -b .en_IE
02c588
%patch8 -p1 -b .nogit
02c588
%patch9 -p1 -b .fixbuild
02c588
%patch10 -p1 -b .etc
02c588
%patch11 -p1 -b .regex
02c588
02c588
%build
02c588
export PERL5LIB=`pwd`/scowl/r/varcon${PERL5LIB:+:${PERL5LIB}}
02c588
make
02c588
cd scowl/speller
02c588
make hunspell
02c588
for i in README_en_CA.txt README_en_US.txt; do
02c588
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
02c588
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
02c588
    touch -r $i $i.new
02c588
    mv -f $i.new $i
02c588
  fi
02c588
  tr -d '\r' < $i > $i.new
02c588
  touch -r $i $i.new
02c588
  mv -f $i.new $i
02c588
done
02c588
02c588
%install
02c588
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
02c588
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
02c588
cd scowl/speller
02c588
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
02c588
02c588
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
02c588
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"
02c588
for lang in $en_GB_aliases; do
02c588
	ln -s en_GB.aff $lang.aff
02c588
	ln -s en_GB.dic $lang.dic
02c588
done
02c588
en_US_aliases="en_PH"
02c588
for lang in $en_US_aliases; do
02c588
	ln -s en_US.aff $lang.aff
02c588
	ln -s en_US.dic $lang.dic
02c588
done
02c588
popd
02c588
02c588
02c588
%files
02c588
%doc scowl/speller/README_en_CA.txt
02c588
%{_datadir}/myspell/*
02c588
%exclude %{_datadir}/myspell/en_GB.*
02c588
%exclude %{_datadir}/myspell/en_US.*
02c588
02c588
%files US
02c588
%doc scowl/speller/README_en_US.txt
02c588
%{_datadir}/myspell/en_US.*
02c588
02c588
%files GB
02c588
%doc README_en_GB.txt
02c588
%{_datadir}/myspell/en_GB.*
02c588
02c588
%changelog
02c588
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 0.20140811.1-12
02c588
- Update Source tag
02c588
02c588
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-11
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
02c588
02c588
* Mon Nov 20 2017 Peter Oliver <rpm@mavit.org.uk> - 0.20140811.1-10
02c588
- Have hunspell-en-GB installed when langpacks-en_GB is installed.
02c588
  Resolves: rhbz#1409136.
02c588
02c588
* Mon Sep 25 2017 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-9
02c588
- Resolves: rhbz#1494968 perl regex rule changes result in broken en_US dict
02c588
02c588
* Thu Sep 21 2017 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-8
02c588
- Resolves: rhbz#1492306 for better or worse treat etc the same in US and GB
02c588
02c588
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-7
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
02c588
02c588
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-6
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
02c588
02c588
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.20140811.1-5
02c588
- Add Supplements: tag for langpacks naming guidelines
02c588
- Clean the specfile to follow current packaging guidelines
02c588
02c588
* Mon Feb 15 2016 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-4
02c588
- Resolves: rhbz#1307627 FTBFS
02c588
02c588
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-3
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
02c588
02c588
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20140811.1-2
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
02c588
02c588
* Wed Oct 08 2014 Caolán McNamara <caolanm@redhat.com> - 0.20140811-1
02c588
- bump to latest version
02c588
02c588
* Wed Oct 08 2014 Caolán McNamara <caolanm@redhat.com> - 0.20121024-9
02c588
- Resolves: rhbz#1149720 add BitTorrent as a word
02c588
02c588
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-8
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
02c588
02c588
* Mon Apr 07 2014 Caolán McNamara <caolanm@redhat.com> - 0.20121024-7
02c588
- en-ZM different to the other locale ids
02c588
02c588
* Thu Oct 24 2013 Caolán McNamara <caolanm@redhat.com> - 0.20121024-6
02c588
- bump n-v-r to ensure rhbz#1022628 is resolved
02c588
02c588
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-5
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
02c588
02c588
* Fri Jul 12 2013 Caolán McNamara <caolanm@redhat.com> - 0.20121024-4
02c588
- Resolves: rhbz#980604 wordlist tarball unreproducible, use svn export and xz
02c588
02c588
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-3
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
02c588
02c588
* Fri Nov 02 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-2
02c588
- wordlist/scowl/speller/aspell/en_phonet.dat under bare LGPLv2
02c588
02c588
* Wed Oct 24 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-1
02c588
- latest version
02c588
- drop integrated hunspell-en-irregular-plural-possessive.patch
02c588
02c588
* Thu Oct 11 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-9
02c588
- add possessive forms of irregular plurals for en-US, e.g. men's, women's
02c588
02c588
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-8
02c588
- Related: rhbz#850709 fix requires
02c588
02c588
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-7
02c588
- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone
02c588
02c588
* Wed Aug 1 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-6
02c588
- Related: rhbz#573516 we don't need hunspell to build hunspell-en
02c588
02c588
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-5
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
02c588
02c588
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-4
02c588
- add Malawian alias
02c588
02c588
* Tue Apr 10 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-3
02c588
- making a hames of it
02c588
- add Zambian alias
02c588
02c588
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-2
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
02c588
02c588
* Fri Mar 18 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110318-1
02c588
- latest version
02c588
02c588
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110112-4
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
02c588
02c588
* Tue Feb 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-3
02c588
- Resolves: rhbz#675550 add Haskell as a known proper noun
02c588
02c588
* Thu Jan 13 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-1
02c588
- latest version
02c588
02c588
* Sun Jan 09 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110108-1
02c588
- latest version
02c588
02c588
* Tue Jan 04 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110104-1
02c588
- latest version
02c588
02c588
* Tue Dec 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101221-1
02c588
- latest version
02c588
02c588
* Tue Dec 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101211-1
02c588
- latest version
02c588
02c588
* Wed Dec 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101207-1
02c588
- latest version
02c588
02c588
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-6
02c588
- Resolves: rhbz#619577 add JEDEC prefixes
02c588
02c588
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-5
02c588
- Resolves: rhbz#619577 add SI and IEC prefixes
02c588
02c588
* Mon Jun 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-4
02c588
- Resolves: rhbz#603773 allow just non-typographical apostrophes
02c588
02c588
* Sun Jun 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-3
02c588
- Resolves: rhbz#600860 generate a higher level en-US dict
02c588
02c588
* Thu Apr 15 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-2
02c588
- allow non-typographical apostrophes
02c588
02c588
* Wed Mar 31 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-1
02c588
- latest version
02c588
02c588
* Mon Mar 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100308-1
02c588
- latest version
02c588
02c588
* Sat Jul 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-7
02c588
- add extra mozilla REPs
02c588
02c588
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-6
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
02c588
02c588
* Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-5
02c588
- tidy spec
02c588
02c588
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-4
02c588
- extend coverage
02c588
02c588
* Sat Jun 06 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-3
02c588
- Change two suspicious words with two initial capitals in en_GB
02c588
  from ADte TEirtza to ADTe Teirtza
02c588
02c588
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-2
02c588
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
02c588
02c588
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-1
02c588
- fix upstreamed
02c588
02c588
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090208-1
02c588
- latest version
02c588
02c588
* Wed Jan 14 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090114-1
02c588
- latest version
02c588
02c588
* Sun Jan 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090110-1
02c588
- latest version
02c588
02c588
* Thu Dec 18 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081216-1
02c588
- latest version
02c588
02c588
* Sat Dec 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081205-1
02c588
- latest version
02c588
02c588
* Tue Dec 02 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081202-1
02c588
- latest version
02c588
02c588
* Sat Nov 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081129-1
02c588
- mozilla blog ... webmistresses signature range integrated
02c588
02c588
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-2
02c588
- abbrevs are always stripped out from US/CA dicts
02c588
- some single characters are missing from en_GB
02c588
02c588
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-1
02c588
- hardcoded path dropped upstream
02c588
02c588
* Tue Nov 25 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081124-1
02c588
- latest version, i.e +Barack +Obama and co.
02c588
02c588
* Fri Aug 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080829-1
02c588
- latest version
02c588
02c588
* Fri Feb 08 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080207-1
02c588
- canonical upstream source
02c588
02c588
* Thu Feb 07 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-5
02c588
- apply mozilla word diff
02c588
02c588
* Tue Jan 15 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-4
02c588
- clean up spec
02c588
02c588
* Mon Sep 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-3
02c588
- new varient alias
02c588
02c588
* Thu Aug 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-2
02c588
- clarify licence
02c588
02c588
* Fri Jun 01 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-1
02c588
- update to latest dictionaries
02c588
02c588
* Thu Feb 08 2007 Caolán McNamara <caolanm@redhat.com> - 0.20040623-2
02c588
- update to new spec guidelines
02c588
02c588
* Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20040623-1
02c588
- initial version