From 9ad63c7c46879b02f924a6fe16b5e1397832dd4e Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 11 Jul 2009 15:20:43 +0000 Subject: [PATCH] tidy spec --- hunspell-tl.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hunspell-tl.spec b/hunspell-tl.spec index 9f59d56..e699064 100644 --- a/hunspell-tl.spec +++ b/hunspell-tl.spec @@ -2,7 +2,7 @@ Name: hunspell-tl Summary: Tagalog hunspell dictionaries %define upstreamid 20050109 Version: 0.%{upstreamid} -Release: 2%{?dist} +Release: 3%{?dist} Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/tl_PH.zip Group: Applications/Text URL: http://borel.slu.edu/crubadan/apps.html @@ -19,8 +19,16 @@ Tagalog hunspell dictionaries. %setup -q -c -n hunspell-tl %build -iconv -f ISO-8859-1 -t UTF-8 README_tl_PH.txt > README_tl_PH.txt.new -mv -f README_tl_PH.txt.new README_tl_PH.txt +for i in README_tl_PH.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 +51,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20050109-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 0.20050109-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild