update to 2019.10.06 [release 2019.10.06-1mamba;Wed May 06 2020]
This commit is contained in:
parent
226713aaff
commit
66bb3e9129
@ -1,4 +1,4 @@
|
|||||||
# hunspell-en
|
# hunspell-en
|
||||||
|
|
||||||
English hunspell dictionaries
|
English (all) hunspell dictionaries
|
||||||
|
|
||||||
|
208
hunspell-en.spec
208
hunspell-en.spec
@ -1,16 +1,21 @@
|
|||||||
Name: hunspell-en
|
Name: hunspell-en
|
||||||
Version: 20110410
|
Epoch: 1
|
||||||
|
Version: 2019.10.06
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: English hunspell dictionaries
|
Summary: English (all) hunspell dictionaries
|
||||||
Group: System/Internationalization
|
Group: System/Internationalization
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: gil <puntogil@libero.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://wordlist.sourceforge.net/
|
URL: http://wordlist.sourceforge.net/
|
||||||
# svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist
|
Source0: http://downloads.sourceforge.net/project/wordlist/speller/%{version}/hunspell-en_US-large-%{version}.zip
|
||||||
# tar czf hunspell-en-wordlist-2011025-src-svn.tar.gz wordlist
|
Source1: http://downloads.sourceforge.net/project/wordlist/speller/%{version}/hunspell-en_AU-large-%{version}.zip
|
||||||
Source0: hunspell-en-wordlist-20110410-src-svn.tar.gz
|
Source2: http://downloads.sourceforge.net/project/wordlist/speller/%{version}/hunspell-en_CA-large-%{version}.zip
|
||||||
Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
|
Source3: http://downloads.sourceforge.net/project/wordlist/speller/%{version}/hunspell-en_GB-large-%{version}.zip
|
||||||
|
## svn co https://wordlist.svn.sourceforge.net/svnroot/wordlist/trunk wordlist
|
||||||
|
## tar czf hunspell-en-wordlist-2011025-src-svn.tar.gz wordlist
|
||||||
|
#Source0: hunspell-en-wordlist-20110410-src-svn.tar.gz
|
||||||
|
#Source1: http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
|
||||||
Patch0: hunspell-en-2011025-mozilla_words.patch
|
Patch0: hunspell-en-2011025-mozilla_words.patch
|
||||||
Patch1: hunspell-en-2011025-en_GB-singleletters.patch
|
Patch1: hunspell-en-2011025-en_GB-singleletters.patch
|
||||||
Patch2: hunspell-en-2011025-en_GB-two_initial_caps.patch
|
Patch2: hunspell-en-2011025-en_GB-two_initial_caps.patch
|
||||||
@ -18,54 +23,102 @@ Patch3: hunspell-en-2011025-en_US-strippedabbrevs.patch
|
|||||||
Patch4: hunspell-en-2011025-allow-non-typographical-marks.patch
|
Patch4: hunspell-en-2011025-allow-non-typographical-marks.patch
|
||||||
Patch5: hunspell-en-2011025-SI_and_IEC.patch
|
Patch5: hunspell-en-2011025-SI_and_IEC.patch
|
||||||
License: BSD, LGPL
|
License: BSD, LGPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: aspell
|
BuildRequires: aspell
|
||||||
BuildRequires: hunspell
|
BuildRequires: hunspell
|
||||||
|
%ifnarch arm
|
||||||
|
BuildRequires: libQt5WebEngine
|
||||||
|
%endif
|
||||||
BuildRequires: zip
|
BuildRequires: zip
|
||||||
|
Requires: %{name}_GB = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Requires: %{name}_US = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Requires: %{name}_AU = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Requires: %{name}_CA = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
English hunspell dictionaries
|
English (all) hunspell dictionaries
|
||||||
|
|
||||||
|
%package -n %{name}_GB
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: English (GB) hunspell dictionaries
|
||||||
|
|
||||||
|
%description -n %{name}_GB
|
||||||
|
English (GB) hunspell dictionaries
|
||||||
|
|
||||||
|
%package -n %{name}_US
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: English (US) hunspell dictionaries
|
||||||
|
|
||||||
|
%description -n %{name}_US
|
||||||
|
English (US) hunspell dictionaries
|
||||||
|
|
||||||
|
%package -n %{name}_AU
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: English (AU) hunspell dictionaries
|
||||||
|
|
||||||
|
%description -n %{name}_AU
|
||||||
|
English (AU) hunspell dictionaries
|
||||||
|
|
||||||
|
%package -n %{name}_CA
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: English (CA) hunspell dictionaries
|
||||||
|
|
||||||
|
%description -n %{name}_CA
|
||||||
|
English (CA) hunspell dictionaries
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n wordlist
|
%setup -q -c -a1 -a2 -a3
|
||||||
%setup -q -T -D -a 1 -n wordlist
|
sed -i "s:SET UTF8:SET UTF-8:g" *.aff
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
%patch5 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
|
||||||
cd scowl/speller
|
|
||||||
make hunspell
|
|
||||||
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
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/myspell
|
install -dm755 %{buildroot}%{_datadir}/hunspell
|
||||||
cp -p *.dic *.aff %{buildroot}%{_datadir}/myspell
|
install -m644 *.dic *.aff %{buildroot}%{_datadir}/hunspell
|
||||||
cd scowl/speller
|
|
||||||
cp -p en_*.dic en_*.aff %{buildroot}%{_datadir}/myspell
|
|
||||||
|
|
||||||
pushd %{buildroot}%{_datadir}/myspell/
|
en_US_aliases="en_US"
|
||||||
for lang in 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; do
|
en_GB_aliases="en_AG en_BS en_BW en_BZ en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NG en_NZ en_SG en_TT en_ZA en_ZW"
|
||||||
ln -s en_GB.aff $lang.aff
|
en_AU_aliases="en_AU"
|
||||||
ln -s en_GB.dic $lang.dic
|
en_CA_aliases="en_CA"
|
||||||
done
|
|
||||||
ln -s en_US.aff en_PH.aff
|
pushd %{buildroot}%{_datadir}/hunspell/
|
||||||
ln -s en_US.dic en_PH.dic
|
for lang in $en_US_aliases; do
|
||||||
|
ln -s en_US-large.aff $lang.aff
|
||||||
|
ln -s en_US-large.dic $lang.dic
|
||||||
|
done
|
||||||
|
for lang in $en_GB_aliases; do
|
||||||
|
ln -s en_GB-large.aff $lang.aff
|
||||||
|
ln -s en_GB-large.dic $lang.dic
|
||||||
|
done
|
||||||
|
for lang in $en_AU_aliases; do
|
||||||
|
ln -s en_AU-large.aff $lang.aff
|
||||||
|
ln -s en_AU-large.dic $lang.dic
|
||||||
|
done
|
||||||
|
for lang in $en_CA_aliases; do
|
||||||
|
ln -s en_CA-large.aff $lang.aff
|
||||||
|
ln -s en_CA-large.dic $lang.dic
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
%ifnarch arm
|
||||||
|
# Install webengine dictionaries
|
||||||
|
install -d %{buildroot}%{_datadir}/qt/qtwebengine_dictionaries/
|
||||||
|
for _file in %{buildroot}%{_datadir}/hunspell/*.dic; do
|
||||||
|
_filename=$(basename $_file)
|
||||||
|
%{_libdir}/qt5/bin/qwebengine_convert_dict $_file %{buildroot}%{_datadir}/qt/qtwebengine_dictionaries/${_filename/\.dic/\.bdic}
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# myspell symlinks
|
||||||
|
install -dm755 %{buildroot}%{_datadir}/myspell
|
||||||
|
pushd %{buildroot}%{_datadir}/myspell
|
||||||
|
for file in %{buildroot}%{_datadir}/hunspell/*; do
|
||||||
|
ln -sv %{_datadir}/hunspell/$(basename $file) .
|
||||||
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -73,11 +126,82 @@ popd
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
|
%files -n %{name}_GB
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/hunspell/en_*.aff
|
||||||
|
%{_datadir}/hunspell/en_*.dic
|
||||||
%{_datadir}/myspell/en_*.aff
|
%{_datadir}/myspell/en_*.aff
|
||||||
%{_datadir}/myspell/en_*.dic
|
%{_datadir}/myspell/en_*.dic
|
||||||
%doc README_en_GB.txt scowl/speller/README_en_CA.txt scowl/speller/README_en_US.txt
|
%exclude %{_datadir}/hunspell/en_AU*
|
||||||
|
%exclude %{_datadir}/hunspell/en_CA*
|
||||||
|
%exclude %{_datadir}/hunspell/en_US*
|
||||||
|
%exclude %{_datadir}/myspell/en_AU*
|
||||||
|
%exclude %{_datadir}/myspell/en_CA*
|
||||||
|
%exclude %{_datadir}/myspell/en_US*
|
||||||
|
%ifnarch arm
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_AG.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_BS.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_BW.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_BZ.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_DK.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_GB.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_GB-large.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_GH.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_HK.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_IE.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_IN.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_JM.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_NA.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_NG.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_NZ.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_SG.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_TT.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_ZA.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_ZW.bdic
|
||||||
|
%endif
|
||||||
|
%doc README_en_GB-large.txt
|
||||||
|
|
||||||
|
%files -n %{name}_US
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/hunspell/en_US*.aff
|
||||||
|
%{_datadir}/hunspell/en_US*.dic
|
||||||
|
%{_datadir}/myspell/en_US*.aff
|
||||||
|
%{_datadir}/myspell/en_US*.dic
|
||||||
|
%ifnarch arm
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_US-large.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_US.bdic
|
||||||
|
%endif
|
||||||
|
%doc README_en_US-large.txt
|
||||||
|
|
||||||
|
%files -n %{name}_AU
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/hunspell/en_AU*.aff
|
||||||
|
%{_datadir}/hunspell/en_AU*.dic
|
||||||
|
%{_datadir}/myspell/en_AU*.aff
|
||||||
|
%{_datadir}/myspell/en_AU*.dic
|
||||||
|
%ifnarch arm
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_AU-large.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_AU.bdic
|
||||||
|
%endif
|
||||||
|
%doc README_en_AU-large.txt
|
||||||
|
|
||||||
|
%files -n %{name}_CA
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/hunspell/en_CA*.aff
|
||||||
|
%{_datadir}/hunspell/en_CA*.dic
|
||||||
|
%{_datadir}/myspell/en_CA*.aff
|
||||||
|
%{_datadir}/myspell/en_CA*.dic
|
||||||
|
%ifnarch arm
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_CA-large.bdic
|
||||||
|
%{_datadir}/qt/qtwebengine_dictionaries/en_CA.bdic
|
||||||
|
%endif
|
||||||
|
%doc README_en_CA-large.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2019.10.06-1mamba
|
||||||
|
- update to 2019.10.06
|
||||||
|
|
||||||
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20110410-1mamba
|
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20110410-1mamba
|
||||||
- update to 20110410
|
- update to 20110410
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user