diff --git a/hyphen-de.spec b/hyphen-de.spec index eeea24f..b22da06 100644 --- a/hyphen-de.spec +++ b/hyphen-de.spec @@ -2,7 +2,7 @@ Name: hyphen-de Summary: German hyphenation rules %define upstreamid 20060120 Version: 0.%{upstreamid} -Release: 3%{?dist} +Release: 4%{?dist} Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_de_DE.zip Group: Applications/Text URL: http://wiki.services.openoffice.org/wiki/Dictionaries @@ -18,8 +18,16 @@ German hyphenation rules. %setup -q -c -n hyphen-de %build -iconv -f ISO-8859-1 -t UTF-8 README_hyph_de_DE.txt > README_hyph_de_DE.txt.new -mv -f README_hyph_de_DE.txt.new README_hyph_de_DE.txt +for i in README_hyph_de_DE.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 @@ -42,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/hyphen/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20060120-4 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 0.20060120-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild