From 11d4b6be97ce4ef60f596cf5d3691b8308a2ddda Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Sat, 11 Jul 2009 10:44:30 +0000 Subject: [PATCH] tidy spec --- hunspell-csb.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hunspell-csb.spec b/hunspell-csb.spec index fbe024a..25635fc 100644 --- a/hunspell-csb.spec +++ b/hunspell-csb.spec @@ -2,7 +2,7 @@ Name: hunspell-csb Summary: Kashubian hunspell dictionaries %define upstreamid 20050311 Version: 0.%{upstreamid} -Release: 2%{?dist} +Release: 3%{?dist} Group: Applications/Text Source: http://ftp.gnu.org/gnu/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2 URL: http://borel.slu.edu/crubadan/apps.html @@ -23,10 +23,16 @@ Kashubian hunspell dictionaries. export LANG=csb_PL.utf8 preunzip csb.cwl wordlist2hunspell csb.wl csb_PL -iconv -f ISO-8859-1 -t UTF-8 Copyright > Copyright.new -mv -f Copyright.new Copyright -iconv -f ISO-8859-1 -t UTF-8 doc/Crawler.txt > doc/Crawler.txt.new -mv -f doc/Crawler.txt.new doc/Crawler.txt +for i in Copyright doc/Crawler.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 +48,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/myspell/* %changelog +* Sat Jul 11 2009 Caolan McNamara - 0.20050311-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 0.20050311-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild