hunspell-gv/hunspell-gv.spec
2020-07-09 20:28:34 +08:00

43 lines
1.1 KiB
RPMSpec

Name: hunspell-gv
Summary: Manx hunspell dictionaries used in OpenOffice
Version: 0.20040505
Release: 18
Source: http://ftp.gnu.org/gnu/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2
URL: http://borel.slu.edu/crubadan/apps.html
License: GPL+
BuildArch: noarch
BuildRequires: aspell hunspell-devel
Requires: hunspell
Supplements: (hunspell and langpacks-gv)
%description
Manx hunspell dictionaries used in OpenOffice.
%prep
%autosetup -n aspell-gv-0.50-0 -p1
%build
export LANG=gv_GB.utf8
preunzip -d *.cwl
cat *.wl > manx.wordlist
wordlist2hunspell manx.wordlist gv_GB
for i in Copyright doc/Crawler.txt; do
iconv -f ISO-8859-1 -t UTF-8 $i -o $i.new.1
tr -d '\r' < $i.new.1 > $i.new.2
rm -f $i $i.new.1
mv -f $i.new.2 $i
done
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
install -Dp *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
%files
%doc COPYING Copyright README doc/Crawler.txt
%{_datadir}/myspell/*
%changelog
* Wed Apr 22 2020 Captain Wei <captain.a.wei@gmail.com> 0.20040505-18
- Package init