2019-09-30 10:52:53 -04:00
|
|
|
Name: hunspell-en
|
2020-01-09 09:35:03 +08:00
|
|
|
Version: 0.201910.06
|
2020-02-25 21:13:40 +08:00
|
|
|
Release: 2
|
2019-09-30 10:52:53 -04:00
|
|
|
Summary: English hunspell dictionaries
|
|
|
|
|
License: LGPLv2+ and LGPLv2 and BSD
|
2020-01-09 09:35:03 +08:00
|
|
|
URL: https://wordlist.sourceforge.net/
|
|
|
|
|
Source0: https://github.com/en-wl/wordlist/archive/rel-2019.10.06.tar.gz
|
|
|
|
|
|
2020-02-25 21:13:40 +08:00
|
|
|
Patch0001: hunspell-en-fixbuild-err.patch
|
|
|
|
|
|
2019-09-30 10:52:53 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: git aspell zip dos2unix perl-Getopt-Long gcc-c++
|
|
|
|
|
Requires: hunspell
|
|
|
|
|
|
2020-01-09 09:35:03 +08:00
|
|
|
Provides: %{name}-US = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-US < %{version}-%{release}
|
2019-09-30 10:52:53 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
English (US, UK, etc.) hunspell dictionaries
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-01-09 09:35:03 +08:00
|
|
|
%autosetup -n wordlist-rel-2019.10.06 -p1
|
2019-09-30 10:52:53 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export PERL5LIB=`pwd`/scowl/r/varcon${PERL5LIB:+:${PERL5LIB}}
|
|
|
|
|
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
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
cd scowl/speller
|
|
|
|
|
cp -p en_??.dic en_??.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
|
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
|
|
|
|
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
|
|
|
|
|
%defattr(-,root,root)
|
2019-11-06 19:33:08 +08:00
|
|
|
%doc scowl/speller/README_en_*.txt README.md
|
2020-01-09 09:35:03 +08:00
|
|
|
%license scowl/speller/aspell/Copyright.sh
|
2019-09-30 10:52:53 -04:00
|
|
|
%{_datadir}/myspell/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
2020-01-09 09:35:03 +08:00
|
|
|
%doc scowl/speller/aspell/doc/ChangeLog
|
2019-09-30 10:52:53 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2020-02-25 21:13:40 +08:00
|
|
|
* Tue Feb 25 2020 xiaoweiwei<xiaoweiwei5@huawei.com> - 0.201910.06-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: fix build err
|
|
|
|
|
|
2020-01-09 09:35:03 +08:00
|
|
|
* Wed Jan 8 2020 songnannan<songnannan2@huawei.com> - 0.201910.06-1
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update to 201910.06
|
|
|
|
|
|
2019-11-06 19:33:08 +08:00
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.20140811.1-15
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add license files to rpm package
|
|
|
|
|
|
2019-09-30 10:52:53 -04:00
|
|
|
* Fri Sep 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.20140811.1-14
|
|
|
|
|
- Package init
|
|
|
|
|
|
2020-01-09 09:35:03 +08:00
|
|
|
|