From 8a891ff33578fbcb3e3563dc28d86238ef467d23 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 11 Jul 2009 15:25:43 +0000 Subject: [PATCH] tidy spec --- hyphen-sv.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/hyphen-sv.spec b/hyphen-sv.spec index 01fb7b8..bd18506 100644 --- a/hyphen-sv.spec +++ b/hyphen-sv.spec @@ -1,7 +1,7 @@ Name: hyphen-sv Summary: Swedish hyphenation rules Version: 1.00.1 -Release: 2%{?dist} +Release: 3%{?dist} Source: http://extensions.services.openoffice.org/files/1966/4/hyph_sv_SE.oxt Group: Applications/Text URL: http://extensions.services.openoffice.org/node/1968 @@ -18,9 +18,16 @@ Swedish hyphenation rules. %build chmod -x * -iconv -f ISO-8859-1 -t UTF-8 README_sv_SE.txt > README_sv_SE.txt.new -touch -r README_sv_SE.txt README_sv_SE.txt.new -mv -f README_sv_SE.txt.new README_sv_SE.txt +for i in README_sv_SE.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 @@ -43,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/hyphen/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 1.00.1-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 1.00.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild