|
|
|
@ -1,81 +1,93 @@
|
|
|
|
|
%global dict_dirname hunspell
|
|
|
|
|
Name: hunspell-en
|
|
|
|
|
Summary: English hunspell dictionaries
|
|
|
|
|
%global upstreamid 20140811.1
|
|
|
|
|
%global upstreamid 20201207
|
|
|
|
|
Version: 0.%{upstreamid}
|
|
|
|
|
Release: 20%{?dist}
|
|
|
|
|
Source0: https://github.com/en-wl/wordlist/archive/rel-2014.08.11.1.tar.gz
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Source0: https://github.com/en-wl/wordlist/archive/rel-2020.12.07.tar.gz
|
|
|
|
|
Source1: http://download.services.openoffice.org/contrib/dictionaries/en_GB.zip
|
|
|
|
|
#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
|
|
|
|
|
#See https://github.com/en-wl/wordlist/issues/15
|
|
|
|
|
#filter removes words with "." in them
|
|
|
|
|
Patch3: en_US-strippedabbrevs.patch
|
|
|
|
|
#See https://sourceforge.net/tracker/?func=detail&aid=2987192&group_id=143754&atid=756397
|
|
|
|
|
#See https://sourceforge.net/p/hunspell/patches/35
|
|
|
|
|
#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
|
|
|
|
|
Patch5: hunspell-en-SI_and_IEC.patch
|
|
|
|
|
#See https://sourceforge.net/tracker/?func=detail&aid=3175662&group_id=10079&atid=1014602 obscure Calender hides misspelling of Calendar
|
|
|
|
|
#See https://github.com/en-wl/wordlist/issues/46 obscure Calender hides misspelling of Calendar
|
|
|
|
|
Patch6: hunspell-en-calender.patch
|
|
|
|
|
#valid English words that are archaic or rare in en-GB but not in en-IE
|
|
|
|
|
Patch7: en_IE.supplemental.patch
|
|
|
|
|
#call git to get the release hash, but this is a tarball
|
|
|
|
|
Patch8: hunspell-en-dont-call-git-during-build.patch
|
|
|
|
|
#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
|
|
|
|
|
#rhbz#1494968 perl tightened up regex rules
|
|
|
|
|
Patch11: perl.regex.patch
|
|
|
|
|
Patch9: en_GB.etc.patch
|
|
|
|
|
Patch10: hunspell-en-buildfix.patch
|
|
|
|
|
URL: http://wordlist.sourceforge.net/
|
|
|
|
|
# README_en_GB.txt has specified just LGPL which mean LGPLv2+
|
|
|
|
|
# scowl/speller/aspell/en_affix.dat is BSD
|
|
|
|
|
# scowl/speller/aspell/en_phonet.dat is LGPLv2
|
|
|
|
|
License: LGPLv2+ and LGPLv2 and BSD
|
|
|
|
|
License: LGPL-2.1-or-later AND LGPL-2.1-only AND BSD-3-Clause-Modification
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: aspell, zip, dos2unix, perl-Getopt-Long, gcc-c++
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
Requires: hunspell
|
|
|
|
|
Requires: hunspell-en-US = %{version}-%{release}
|
|
|
|
|
Requires: hunspell-en-GB = %{version}-%{release}
|
|
|
|
|
Supplements: (hunspell and langpacks-en)
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
Requires: hunspell
|
|
|
|
|
%else
|
|
|
|
|
Supplements: (hunspell or nuspell)
|
|
|
|
|
%endif
|
|
|
|
|
Supplements: langpacks-en
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
English (US, UK, etc.) hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%package US
|
|
|
|
|
Requires: hunspell-filesystem
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
Requires: hunspell
|
|
|
|
|
%else
|
|
|
|
|
Recommends: (hunspell or nuspell)
|
|
|
|
|
%endif
|
|
|
|
|
Summary: US English hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%description US
|
|
|
|
|
US English hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%package GB
|
|
|
|
|
Requires: hunspell-filesystem
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
Requires: hunspell
|
|
|
|
|
Supplements: (hunspell and langpacks-en_GB)
|
|
|
|
|
Supplements: hunspell
|
|
|
|
|
%else
|
|
|
|
|
Recommends: (hunspell or nuspell)
|
|
|
|
|
Supplements: (hunspell or nuspell)
|
|
|
|
|
%endif
|
|
|
|
|
Supplements: langpacks-en_GB
|
|
|
|
|
Summary: UK English hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%description GB
|
|
|
|
|
UK English hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%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
|
|
|
|
|
%patch3 -p0 -b .strippedabbrevs
|
|
|
|
|
%patch4 -p0 -b .allow-non-typographical
|
|
|
|
|
%patch5 -p0 -b .SI_and_IEC
|
|
|
|
|
%patch6 -p1 -b .calender
|
|
|
|
|
%patch7 -p1 -b .en_IE
|
|
|
|
|
%patch8 -p1 -b .nogit
|
|
|
|
|
%patch9 -p1 -b .fixbuild
|
|
|
|
|
%patch10 -p1 -b .etc
|
|
|
|
|
%patch11 -p1 -b .regex
|
|
|
|
|
%setup -q -n wordlist-rel-2020.12.07
|
|
|
|
|
%setup -q -T -D -a 1 -n wordlist-rel-2020.12.07
|
|
|
|
|
%patch -P 0 -p0 -b .mozilla
|
|
|
|
|
%patch -P 1 -p1 -b .singleletters
|
|
|
|
|
%patch -P 2 -p1 -b .two_initial_cap
|
|
|
|
|
%patch -P 3 -p0 -b .strippedabbrevs
|
|
|
|
|
%patch -P 4 -p0 -b .allow-non-typographical
|
|
|
|
|
%patch -P 5 -p0 -b .SI_and_IEC
|
|
|
|
|
%patch -P 6 -p1 -b .calender
|
|
|
|
|
%patch -P 7 -p1 -b .en_IE
|
|
|
|
|
%patch -P 8 -p1 -b .nogit
|
|
|
|
|
%patch -P 9 -p1 -b .etc
|
|
|
|
|
%patch -P 10 -p1 -b .buildfix
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export PERL5LIB=`pwd`/scowl/r/varcon${PERL5LIB:+:${PERL5LIB}}
|
|
|
|
@ -94,13 +106,13 @@ for i in README_en_CA.txt README_en_US.txt; do
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|
|
|
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|
|
|
|
cd scowl/speller
|
|
|
|
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
|
|
|
|
en_GB_aliases="en_AG 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
|
|
|
|
@ -115,25 +127,68 @@ popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc scowl/speller/README_en_CA.txt
|
|
|
|
|
%{_datadir}/myspell/*
|
|
|
|
|
%exclude %{_datadir}/myspell/en_GB.*
|
|
|
|
|
%exclude %{_datadir}/myspell/en_US.*
|
|
|
|
|
%{_datadir}/%{dict_dirname}/*
|
|
|
|
|
%exclude %{_datadir}/%{dict_dirname}/en_GB.*
|
|
|
|
|
%exclude %{_datadir}/%{dict_dirname}/en_US.*
|
|
|
|
|
|
|
|
|
|
%files US
|
|
|
|
|
%doc scowl/speller/README_en_US.txt
|
|
|
|
|
%{_datadir}/myspell/en_US.*
|
|
|
|
|
%{_datadir}/%{dict_dirname}/en_US.*
|
|
|
|
|
|
|
|
|
|
%files GB
|
|
|
|
|
%doc README_en_GB.txt
|
|
|
|
|
%{_datadir}/myspell/en_GB.*
|
|
|
|
|
%{_datadir}/%{dict_dirname}/en_GB.*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.20140811.1-20
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.20201207-11
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20201207-10
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20201207-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.20201207-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20201207-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.20201207-6
|
|
|
|
|
- Temporarily revert to aspell.
|
|
|
|
|
|
|
|
|
|
* Wed Jun 28 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.20201207-5
|
|
|
|
|
- Move BR from aspell to hunspell.
|
|
|
|
|
|
|
|
|
|
* Wed Feb 22 2023 Caolán McNamara <caolanm@redhat.com> - 0.20201207-4
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20201207-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 07 2022 Caolán McNamara <caolanm@redhat.com> - 0.20201207-2
|
|
|
|
|
- use dict_dirname of hunspell for future rhel, etc.
|
|
|
|
|
|
|
|
|
|
* Tue Sep 20 2022 Caolán McNamara <caolanm@redhat.com> - 0.20201207-1
|
|
|
|
|
- latest en-US version
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-23
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.20140811.1-22
|
|
|
|
|
- rename install directory name from myspell to hunspell
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-21
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-20
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.20140811.1-19
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Wed Feb 03 2021 Peter Oliver <rpm@mavit.org.uk> - 0.20140811.1-19
|
|
|
|
|
- Accomodate Nuspell.
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.20140811.1-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|