Name: hunspell-wa Summary: The hunspell dictionaries for Walloon Version: 0.4.17 Release: 11 Source0: http://chanae.walon.org/walon/aspell-wa-%{version}.tar.bz2 URL: http://chanae.walon.org/walon/aspell.php License: LGPLv2+ BuildArch: noarch Patch0: hunspell-wa-0.4.15-buildfix.patch Requires: hunspell Supplements: (hunspell and langpacks-wa) %description The hunspell dictionaries for Walloon. %prep %autosetup -n aspell-wa-%{version} -p1 %build make myspell for i in TODO README; 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 -d $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p wa.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/wa_BE.dic cp -p wa.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/wa_BE.aff %files %doc README LGPL ChangeLog TODO %{_datadir}/myspell/* %changelog * Thu Apr 16 2020 wangyue - 0.4.17-11 - Package init