hunspell-en/hunspell-en.spec

327 lines
12 KiB
RPMSpec
Raw Normal View History

Name: hunspell-en
Summary: English hunspell dictionaries
%global upstreamid 20140811.1
Version: 0.%{upstreamid}
Release: 8%{?dist}
2014-10-08 09:40:25 +00:00
Source0: https://github.com/kevina/wordlist/archive/rel-2014.08.11.1.tar.gz
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
2008-02-07 15:31:53 +00:00
#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
2010-04-15 14:06:40 +00:00
#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
2011-01-04 16:40:56 +00:00
Patch5: hunspell-en-SI_and_IEC.patch
2011-02-08 12:59:52 +00:00
#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
2012-04-10 22:03:48 +00:00
#valid English words that are archaic or rare in en-GB but not in en-IE
Patch7: en_IE.supplemental.patch
2014-10-08 13:03:36 +00:00
#call git to get the release hash, but this is a tarball
Patch8: hunspell-en-dont-call-git-during-build.patch
2016-02-15 10:39:05 +00:00
#fix build
Patch9: hunspell-en-fixbuild.patch
#rhbz#1492306 for better or worse treat etc the same in US and GB
Patch10: en_GB.etc.patch
URL: http://wordlist.sourceforge.net/
License: LGPLv2+ and LGPLv2 and BSD
BuildArch: noarch
2016-02-15 10:59:06 +00:00
BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long
2012-08-27 21:00:05 +00:00
Requires: hunspell
Requires: hunspell-en-US = %{version}-%{release}
Requires: hunspell-en-GB = %{version}-%{release}
Supplements: (hunspell and langpacks-en)
%description
English (US, UK, etc.) hunspell dictionaries
%package US
2012-08-27 21:00:05 +00:00
Requires: hunspell
Summary: US English hunspell dictionaries
%description US
US English hunspell dictionaries
%package GB
2012-08-27 21:00:05 +00:00
Requires: hunspell
Summary: UK English hunspell dictionaries
%description GB
UK English hunspell dictionaries
%prep
2014-10-08 09:40:25 +00:00
%setup -q -n wordlist-rel-2014.08.11.1
%setup -q -T -D -a 1 -n wordlist-rel-2014.08.11.1
%patch0 -p0 -b .mozilla
%patch1 -p1 -b .singleletters
%patch2 -p1 -b .two_initial_cap
2014-10-08 09:40:25 +00:00
%patch3 -p0 -b .strippedabbrevs
%patch4 -p0 -b .allow-non-typographical
%patch5 -p0 -b .SI_and_IEC
%patch6 -p1 -b .calender
2012-04-10 22:03:48 +00:00
%patch7 -p1 -b .en_IE
2016-02-15 10:39:05 +00:00
%patch8 -p1 -b .nogit
%patch9 -p1 -b .fixbuild
%patch10 -p1 -b .etc
2007-05-05 16:21:36 +00:00
%build
make
cd scowl/speller
make hunspell
2009-07-11 15:15:26 +00:00
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
2007-05-05 16:21:36 +00:00
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
2014-10-08 09:40:25 +00:00
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
cd scowl/speller
2014-10-08 09:40:25 +00:00
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
%files
%doc scowl/speller/README_en_CA.txt
%{_datadir}/myspell/*
%exclude %{_datadir}/myspell/en_GB.*
%exclude %{_datadir}/myspell/en_US.*
%files US
%doc scowl/speller/README_en_US.txt
%{_datadir}/myspell/en_US.*
%files GB
%doc README_en_GB.txt
%{_datadir}/myspell/en_GB.*
%changelog
* Thu Sep 21 2017 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-8
- Resolves: rhbz#1492306 for better or worse treat etc the same in US and GB
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.20140811.1-5
- Add Supplements: tag for langpacks naming guidelines
- Clean the specfile to follow current packaging guidelines
2016-02-15 10:39:05 +00:00
* Mon Feb 15 2016 Caolán McNamara <caolanm@redhat.com> - 0.20140811.1-4
- Resolves: rhbz#1307627 FTBFS
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20140811.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-10-08 09:40:25 +00:00
* Wed Oct 08 2014 Caolán McNamara <caolanm@redhat.com> - 0.20140811-1
- bump to latest version
* Wed Oct 08 2014 Caolán McNamara <caolanm@redhat.com> - 0.20121024-9
- Resolves: rhbz#1149720 add BitTorrent as a word
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Apr 07 2014 Caolán McNamara <caolanm@redhat.com> - 0.20121024-7
- en-ZM different to the other locale ids
* Thu Oct 24 2013 Caolán McNamara <caolanm@redhat.com> - 0.20121024-6
- bump n-v-r to ensure rhbz#1022628 is resolved
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jul 12 2013 Caolán McNamara <caolanm@redhat.com> - 0.20121024-4
- Resolves: rhbz#980604 wordlist tarball unreproducible, use svn export and xz
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20121024-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Nov 02 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-2
- wordlist/scowl/speller/aspell/en_phonet.dat under bare LGPLv2
2012-10-24 14:50:30 +00:00
* Wed Oct 24 2012 Caolán McNamara <caolanm@redhat.com> - 0.20121024-1
- latest version
- drop integrated hunspell-en-irregular-plural-possessive.patch
* Thu Oct 11 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-9
- add possessive forms of irregular plurals for en-US, e.g. men's, women's
2012-08-27 21:02:02 +00:00
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-8
- Related: rhbz#850709 fix requires
* Mon Aug 27 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-7
- Resolves: rhbz#850709 allow installation of en-US and en-GB standalone
* Wed Aug 1 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-6
- Related: rhbz#573516 we don't need hunspell to build hunspell-en
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-04-12 09:36:22 +00:00
* Thu Apr 12 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-4
- add Malawian alias
2012-04-10 22:03:48 +00:00
* Tue Apr 10 2012 Caolán McNamara <caolanm@redhat.com> - 0.20110318-3
- making a hames of it
2012-04-10 22:04:38 +00:00
- add Zambian alias
2012-04-10 22:03:48 +00:00
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110318-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-03-18 20:17:02 +00:00
* Fri Mar 18 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110318-1
- latest version
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20110112-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Feb 08 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-3
- Resolves: rhbz#675550 add Haskell as a known proper noun
2011-01-13 10:28:55 +00:00
* Thu Jan 13 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110112-1
- latest version
2011-01-09 20:58:24 +00:00
* Sun Jan 09 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110108-1
- latest version
2011-01-04 16:43:04 +00:00
* Tue Jan 04 2011 Caolán McNamara <caolanm@redhat.com> - 0.20110104-1
2011-01-04 16:40:56 +00:00
- latest version
2010-12-21 15:42:53 +00:00
* Tue Dec 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101221-1
- latest version
2010-12-14 12:40:48 +00:00
* Tue Dec 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101211-1
- latest version
2010-12-08 20:54:39 +00:00
* Wed Dec 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20101207-1
- latest version
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-6
- Resolves: rhbz#619577 add JEDEC prefixes
2010-12-08 20:54:39 +00:00
* Fri Jul 30 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-5
- Resolves: rhbz#619577 add SI and IEC prefixes
2010-12-08 20:54:39 +00:00
* Mon Jun 14 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-4
- Resolves: rhbz#603773 allow just non-typographical apostrophes
2013-07-12 12:29:07 +00:00
* Sun Jun 06 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-3
- Resolves: rhbz#600860 generate a higher level en-US dict
2010-12-08 20:54:39 +00:00
* Thu Apr 15 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-2
2010-04-15 14:06:40 +00:00
- allow non-typographical apostrophes
2010-12-08 20:54:39 +00:00
* Wed Mar 31 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100322-1
2010-03-31 10:38:12 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Mon Mar 08 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100308-1
2010-03-08 09:38:47 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Sat Jul 25 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-7
2009-07-25 15:07:29 +00:00
- add extra mozilla REPs
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090216-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2010-12-08 20:54:39 +00:00
* Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-5
2009-07-11 15:15:26 +00:00
- tidy spec
2010-12-08 20:54:39 +00:00
* Fri Jun 12 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-4
2009-06-12 14:16:09 +00:00
- extend coverage
2010-12-08 20:54:39 +00:00
* Sat Jun 06 2009 Caolán McNamara <caolanm@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 0.20090216-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2010-12-08 20:54:39 +00:00
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090216-1
2009-02-16 23:26:02 +00:00
- fix upstreamed
2010-12-08 20:54:39 +00:00
* Mon Feb 16 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090208-1
2009-02-16 15:09:50 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Wed Jan 14 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090114-1
2009-01-13 10:57:11 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Sun Jan 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090110-1
2009-01-11 12:55:15 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Thu Dec 18 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081216-1
2008-12-18 14:55:02 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Sat Dec 06 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081205-1
2008-12-06 16:06:19 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Tue Dec 02 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081202-1
2008-12-02 10:53:43 +00:00
- latest version
2013-07-12 12:29:07 +00:00
* Sat Nov 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081129-1
2008-11-29 23:17:03 +00:00
- mozilla blog ... webmistresses signature range integrated
2010-12-08 20:54:39 +00:00
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-2
- abbrevs are always stripped out from US/CA dicts
- some single characters are missing from en_GB
2010-12-08 20:54:39 +00:00
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081127-1
2008-11-28 08:49:09 +00:00
- hardcoded path dropped upstream
2010-12-08 20:54:39 +00:00
* Tue Nov 25 2008 Caolán McNamara <caolanm@redhat.com> - 0.20081124-1
- latest version, i.e +Barack +Obama and co.
2010-12-08 20:54:39 +00:00
* Fri Aug 29 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080829-1
2008-08-29 08:34:43 +00:00
- latest version
2010-12-08 20:54:39 +00:00
* Fri Feb 08 2008 Caolán McNamara <caolanm@redhat.com> - 0.20080207-1
- canonical upstream source
2010-12-08 20:54:39 +00:00
* Thu Feb 07 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-5
2008-02-07 15:31:53 +00:00
- apply mozilla word diff
2010-12-08 20:54:39 +00:00
* Tue Jan 15 2008 Caolán McNamara <caolanm@redhat.com> - 0.20061130-4
2008-01-15 20:52:59 +00:00
- clean up spec
2010-12-08 20:54:39 +00:00
* Mon Sep 17 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-3
2007-10-04 07:54:37 +00:00
- new varient alias
2010-12-08 20:54:39 +00:00
* Thu Aug 09 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-2
2007-08-03 08:46:48 +00:00
- clarify licence
2010-12-08 20:54:39 +00:00
* Fri Jun 01 2007 Caolán McNamara <caolanm@redhat.com> - 0.20061130-1
2007-05-05 16:21:36 +00:00
- update to latest dictionaries
2010-12-08 20:54:39 +00:00
* Thu Feb 08 2007 Caolán McNamara <caolanm@redhat.com> - 0.20040623-2
2007-02-08 13:05:13 +00:00
- update to new spec guidelines
2010-12-08 20:54:39 +00:00
* Thu Dec 07 2006 Caolán McNamara <caolanm@redhat.com> - 0.20040623-1
- initial version