Blame SPECS/hunspell-en.spec

288a79
Name: hunspell-en
288a79
Summary: English hunspell dictionaries
288a79
%define upstreamid 20121024
288a79
Version: 0.%{upstreamid}
288a79
Release: 6%{?dist}
288a79
#svn export https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist
288a79
Source0: wordlist-%{upstreamid}.tar.xz
288a79
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
288a79
#See http://mxr.mozilla.org/mozilla/source/extensions/spellcheck/locales/en-US/hunspell/mozilla_words.diff?raw=1
288a79
Patch0: mozilla_words.patch
288a79
Patch1: en_GB-singleletters.patch
288a79
Patch2: en_GB.two_initial_caps.patch
288a79
#See http://sourceforge.net/tracker/?func=detail&aid=2355344&group_id=10079&atid=1014602
288a79
#filter removes words with "." in them
288a79
Patch3: en_US-strippedabbrevs.patch
288a79
#See https://sourceforge.net/tracker/?func=detail&aid=2987192&group_id=143754&atid=756397
288a79
#to allow "didn't" instead of suggesting change to typographical apostrophe
288a79
Patch4: hunspell-en-allow-non-typographical.marks.patch
288a79
#See https://sourceforge.net/tracker/?func=detail&aid=3012183&group_id=10079&atid=1014602
288a79
#See https://bugzilla.redhat.com/show_bug.cgi?id=619577 add SI and IEC prefixes
288a79
Patch5: hunspell-en-SI_and_IEC.patch
288a79
#See https://sourceforge.net/tracker/?func=detail&aid=3175662&group_id=10079&atid=1014602 obscure Calender hides misspelling of Calendar
288a79
Patch6: hunspell-en-calender.patch
288a79
#valid English words that are archaic or rare in en-GB but not in en-IE
288a79
Patch7: en_IE.supplemental.patch
288a79
Group: Applications/Text
288a79
URL: http://wordlist.sourceforge.net/
288a79
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
288a79
License: LGPLv2+ and LGPLv2 and BSD
288a79
BuildArch: noarch
288a79
BuildRequires: aspell, zip
288a79
Requires: hunspell
288a79
Requires: hunspell-en-US = %{version}-%{release}
288a79
Requires: hunspell-en-GB = %{version}-%{release}
288a79
288a79
%description
288a79
English (US, UK, etc.) hunspell dictionaries
288a79
288a79
%package US
288a79
Requires: hunspell
288a79
Summary: US English hunspell dictionaries
288a79
Group: Applications/Text
288a79
288a79
%description US
288a79
US English hunspell dictionaries
288a79
288a79
%package GB
288a79
Requires: hunspell
288a79
Summary: UK English hunspell dictionaries
288a79
Group: Applications/Text
288a79
288a79
%description GB
288a79
UK English hunspell dictionaries
288a79
288a79
%prep
288a79
%setup -q -n wordlist
288a79
%setup -q -T -D -a 1 -n wordlist
288a79
%patch0 -p1 -b .mozilla
288a79
%patch1 -p1 -b .singleletters
288a79
%patch2 -p1 -b .two_initial_cap
288a79
%patch3 -p1 -b .strippedabbrevs
288a79
%patch4 -p1 -b .allow-non-typographical
288a79
%patch5 -p1 -b .SI_and_IEC
288a79
%patch6 -p1 -b .calender
288a79
%patch7 -p1 -b .en_IE
288a79
288a79
%build
288a79
make
288a79
cd scowl/speller
288a79
make hunspell
288a79
for i in README_en_CA.txt README_en_US.txt; do
288a79
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
288a79
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
288a79
    touch -r $i $i.new
288a79
    mv -f $i.new $i
288a79
  fi
288a79
  tr -d '\r' < $i > $i.new
288a79
  touch -r $i $i.new
288a79
  mv -f $i.new $i
288a79
done
288a79
288a79
%install
288a79
rm -rf $RPM_BUILD_ROOT
288a79
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
288a79
cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
288a79
cd scowl/speller
288a79
cp -p en_*.dic en_*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
288a79
288a79
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
288a79
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"
288a79
for lang in $en_GB_aliases; do
288a79
	ln -s en_GB.aff $lang.aff
288a79
	ln -s en_GB.dic $lang.dic
288a79
done
288a79
en_US_aliases="en_PH"
288a79
for lang in $en_US_aliases; do
288a79
	ln -s en_US.aff $lang.aff
288a79
	ln -s en_US.dic $lang.dic
288a79
done
288a79
popd
288a79
288a79
%clean
288a79
rm -rf $RPM_BUILD_ROOT
288a79
288a79
%files
288a79
%defattr(-,root,root,-)
288a79
%doc scowl/speller/README_en_CA.txt
288a79
%{_datadir}/myspell/*
288a79
%exclude %{_datadir}/myspell/en_GB.*
288a79
%exclude %{_datadir}/myspell/en_US.*
288a79
288a79
%files US
288a79
%defattr(-,root,root,-)
288a79
%doc scowl/speller/README_en_US.txt
288a79
%{_datadir}/myspell/en_US.*
288a79
288a79
%files GB
288a79
%defattr(-,root,root,-)
288a79
%doc README_en_GB.txt
288a79
%{_datadir}/myspell/en_GB.*
288a79
288a79
%changelog
288a79
* Mon Feb 20 2017 Caolán McNamara <caolanm@redhat.com> - 0.20121024-6
288a79
- Resolves: rhbz#1376031 Zambia english is named with dash instead of underscore
288a79
288a79
* Wed Jan 08 2014 Caolán McNamara <caolanm@redhat.com> - 0.20121024-5
288a79
- Resolves: rhbz#1048864 accidentally included prebuilt binary
288a79
288a79
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20121024-4
288a79
- Mass rebuild 2013-12-27
288a79
288a79
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-3
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
288a79
288a79
* Fri Nov 02 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-2
288a79
- wordlist/scowl/speller/aspell/en_phonet.dat under bare LGPLv2
288a79
288a79
* Wed Oct 24 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-1
288a79
- latest version
288a79
- drop integrated hunspell-en-irregular-plural-possessive.patch
288a79
288a79
* Thu Oct 11 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-9
288a79
- add possessive forms of irregular plurals for en-US, e.g. men's, women's
288a79
288a79
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-8
288a79
- Related: rhbz#850709 fix requires
288a79
288a79
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-7
288a79
- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone
288a79
288a79
* Wed Aug 1 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-6
288a79
- Related: rhbz#573516 we don't need hunspell to build hunspell-en
288a79
288a79
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-5
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
288a79
288a79
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-4
288a79
- add Malawian alias
288a79
288a79
* Tue Apr 10 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-3
288a79
- making a hames of it
288a79
- add Zambian alias
288a79
288a79
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-2
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
288a79
288a79
* Fri Mar 18 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110318-1
288a79
- latest version
288a79
288a79
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110112-4
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
288a79
288a79
* Tue Feb 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-3
288a79
- Resolves: rhbz#675550 add Haskell as a known proper noun
288a79
288a79
* Thu Jan 13 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-1
288a79
- latest version
288a79
288a79
* Sun Jan 09 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110108-1
288a79
- latest version
288a79
288a79
* Tue Jan 04 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110104-1
288a79
- latest version
288a79
288a79
* Tue Dec 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101221-1
288a79
- latest version
288a79
288a79
* Tue Dec 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101211-1
288a79
- latest version
288a79
288a79
* Wed Dec 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101207-1
288a79
- latest version
288a79
288a79
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-6
288a79
- Resolves: rhbz#619577 add JEDEC prefixes
288a79
288a79
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-5
288a79
- Resolves: rhbz#619577 add SI and IEC prefixes
288a79
288a79
* Mon Jun 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-4
288a79
- Resolves: rhbz#603773 allow just non-typographical apostrophes
288a79
288a79
* Sun Jun 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-3
288a79
- Resolves: rhbz#600860 generate a higher level en-US dict
288a79
288a79
* Thu Apr 15 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-2
288a79
- allow non-typographical apostrophes
288a79
288a79
* Wed Mar 31 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-1
288a79
- latest version
288a79
288a79
* Mon Mar 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100308-1
288a79
- latest version
288a79
288a79
* Sat Jul 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-7
288a79
- add extra mozilla REPs
288a79
288a79
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-6
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
288a79
288a79
* Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-5
288a79
- tidy spec
288a79
288a79
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-4
288a79
- extend coverage
288a79
288a79
* Sat Jun 06 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-3
288a79
- Change two suspicious words with two initial capitals in en_GB
288a79
  from ADte TEirtza to ADTe Teirtza
288a79
288a79
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-2
288a79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
288a79
288a79
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-1
288a79
- fix upstreamed
288a79
288a79
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090208-1
288a79
- latest version
288a79
288a79
* Wed Jan 14 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090114-1
288a79
- latest version
288a79
288a79
* Sun Jan 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090110-1
288a79
- latest version
288a79
288a79
* Thu Dec 18 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081216-1
288a79
- latest version
288a79
288a79
* Sat Dec 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081205-1
288a79
- latest version
288a79
288a79
* Tue Dec 02 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081202-1
288a79
- latest version
288a79
288a79
* Sat Nov 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081129-1
288a79
- mozilla blog ... webmistresses signature range integrated
288a79
288a79
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-2
288a79
- abbrevs are always stripped out from US/CA dicts
288a79
- some single characters are missing from en_GB
288a79
288a79
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-1
288a79
- hardcoded path dropped upstream
288a79
288a79
* Tue Nov 25 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081124-1
288a79
- latest version, i.e +Barack +Obama and co.
288a79
288a79
* Fri Aug 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080829-1
288a79
- latest version
288a79
288a79
* Fri Feb 08 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080207-1
288a79
- canonical upstream source
288a79
288a79
* Thu Feb 07 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-5
288a79
- apply mozilla word diff
288a79
288a79
* Tue Jan 15 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-4
288a79
- clean up spec
288a79
288a79
* Mon Sep 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-3
288a79
- new varient alias
288a79
288a79
* Thu Aug 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-2
288a79
- clarify licence
288a79
288a79
* Fri Jun 01 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-1
288a79
- update to latest dictionaries
288a79
288a79
* Thu Feb 08 2007 Caolán McNamara <caolanm@redhat.com> - 0.20040623-2
288a79
- update to new spec guidelines
288a79
288a79
* Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20040623-1
288a79
- initial version