Name: hyphen-lv Summary: Latvian hyphenation rules Version: 0.9.4 Release: %mkrel 5 Source: http://dict.dv.lv/download/lv_LV-%{version}.oxt Group: Text tools URL: http://dict.dv.lv/ License: LGPLv2+ BuildArch: noarch Requires: hyphen %description Latvian hyphenation rules. %prep %setup -q -c %build for i in README_lv_LV.txt README_hyph_lv_LV.txt; do if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then iconv -f ISO-8859-4 -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 chmod -x *.dic %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen %files %doc README_hyph_lv_LV.txt license.txt %{_datadir}/hyphen/* %changelog * Tue Feb 14 2012 kamil <kamil> 0.9.4-5.mga2 + Revision: 208556 - remove from .spec hunspell-lv and mythes-lv parts - exclude hyphen-lv from hunspell-lv * Tue Feb 14 2012 kamil <kamil> 0.9.4-4.mga2 + Revision: 208543 - rename package to hunspell-lv - rename package to hunspell-lv * Tue Feb 14 2012 kamil <kamil> 0.9.4-3.mga2 + Revision: 208536 - imported package openoffice-lv