From 3f83fcf7e80d58fcabf2fa4a8a3e9d856b306671 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Fri, 10 Jul 2009 15:54:26 +0000 Subject: [PATCH] tidy spec --- hyphen-bg.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hyphen-bg.spec b/hyphen-bg.spec index 7774e5c..73ff369 100644 --- a/hyphen-bg.spec +++ b/hyphen-bg.spec @@ -1,7 +1,7 @@ Name: hyphen-bg Summary: Bulgarian hyphenation rules Version: 4.1 -Release: 2%{?dist} +Release: 3%{?dist} Source: http://downloads.sourceforge.net/bgoffice/OOo-hyph-bg-%{version}.zip Group: Applications/Text URL: http://bgoffice.sourceforge.net/ @@ -18,10 +18,16 @@ Bulgarian hyphenation rules. %setup -q -n OOo-hyph-bg-%{version} %build -tr -d '\r' < README > README.new -iconv -f ISO-8859-2 -t UTF-8 README.new > README -tr -d '\r' < COPYING > COPYING.new -mv COPYING.new COPYING +for i in README COPYING; 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 +43,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/hyphen/* %changelog +* Fri Jul 10 2009 Caolan McNamara - 4.1-3 +- tidy spec + * Tue Feb 24 2009 Fedora Release Engineering - 4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild