diff --git a/hunspell-fy.spec b/hunspell-fy.spec index a1e5146..bc2390c 100644 --- a/hunspell-fy.spec +++ b/hunspell-fy.spec @@ -1,7 +1,7 @@ Name: hunspell-fy Summary: Frisian hunspell dictionaries Version: 2.0.0 -Release: 2%{?dist} +Release: 3%{?dist} Source: https://addons.mozilla.org/en-US/firefox/downloads/file/32102/frysk_wurdboek-%{version}-fx+tb+sm.xpi Group: Applications/Text URL: http://www.mozilla-nl.org/projecten/frysk @@ -18,8 +18,13 @@ Frisian hunspell dictionaries. %setup -q -c -n hunspell-fy %build -tr -d '\r' < README-fy.txt > README-fy.txt.new -iconv -f ISO-8859-1 -t UTF-8 README-fy.txt.new > README-fy.txt +for i in README-fy.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 | tr -d '\r' > $i.new + touch -r $i $i.new + mv -f $i.new $i + fi +done %install rm -rf $RPM_BUILD_ROOT @@ -43,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Fri Jul 10 2009 Caolan McNamara - 2.0.0-3 +- tidy up + * Tue Feb 24 2009 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild