From 753f9c6ee03a80bbb6b9818cd381f61c5ccac3eb Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 11 Jul 2009 16:36:16 +0000 Subject: [PATCH] tidy spec --- hunspell-ny.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hunspell-ny.spec b/hunspell-ny.spec index b7c4791..c092f82 100644 --- a/hunspell-ny.spec +++ b/hunspell-ny.spec @@ -2,7 +2,7 @@ Name: hunspell-ny Summary: Chichewa hunspell dictionaries %define upstreamid 20050108 Version: 0.%{upstreamid} -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/Text Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ny_MW.zip URL: http://borel.slu.edu/crubadan/apps.html @@ -20,8 +20,16 @@ Chichewa hunspell dictionaries. %setup -q -c %build -iconv -f ISO-8859-1 -t UTF-8 README_ny_MW.txt > README_ny_MW.txt.new -mv -f README_ny_MW.txt.new README_ny_MW.txt +for i in README_ny_MW.txt; do + if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then + iconv -f ISO-8859-2 -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 @@ -37,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20050108-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 0.20050108-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild