diff --git a/hunspell-sw.spec b/hunspell-sw.spec index 8b2fd61..dd603c3 100644 --- a/hunspell-sw.spec +++ b/hunspell-sw.spec @@ -2,7 +2,7 @@ Name: hunspell-sw Summary: Swahili hunspell dictionaries %define upstreamid 20050819 Version: 0.%{upstreamid} -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/Text Source: http://www.it46.se/downloads/openoffice/dictionary/dictionary_myspell_sw_TZ_1.1.tar.gz URL: http://www.it46.se @@ -20,8 +20,16 @@ Swahili hunspell dictionaries. %setup -q -c %build -iconv -f ISO-8859-1 -t UTF-8 README_sw_TZ.txt > README_sw_TZ.txt.new -mv -f README_sw_TZ.txt.new README_sw_TZ.txt +for i in README_sw_TZ.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 rm -rf $RPM_BUILD_ROOT @@ -44,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20050819-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 0.20050819-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild