From 1be898f0cb99ff5843f6a036ea21ce705ca0c2be Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 11 Jul 2009 14:16:50 +0000 Subject: [PATCH] tidy spec --- hunspell-de.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/hunspell-de.spec b/hunspell-de.spec index 93b23ac..8b71e2d 100644 --- a/hunspell-de.spec +++ b/hunspell-de.spec @@ -2,7 +2,7 @@ Name: hunspell-de Summary: German hunspell dictionaries %define upstreamid 20090107 Version: 0.%{upstreamid} -Release: 2%{?dist} +Release: 3%{?dist} Source: http://www.j3e.de/ispell/igerman98/dict/igerman98-%{upstreamid}.tar.bz2 Group: Applications/Text URL: http://www.j3e.de/ispell/igerman98 @@ -27,8 +27,14 @@ make hunspell/de_AT.dic hunspell/de_AT.aff \ hunspell/de_DE.dic hunspell/de_DE.aff cd hunspell for i in README_*.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 - tr -d '\r' <$i.new > $i + 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 @@ -59,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20090107-3 +- tidy spec + * Thu Apr 23 2009 Caolan McNamara - 0.20090107-2 - fix dictionaries