tidy spec

This commit is contained in:
Caolan McNamara 2009-07-11 14:35:35 +00:00
parent e6abfa12bb
commit 91b730141d

View File

@ -2,7 +2,7 @@ Name: hunspell-pt
Summary: Portuguese hunspell dictionaries
%define upstreamid 20090702
Version: 0.%{upstreamid}
Release: 1%{?dist}
Release: 2%{?dist}
Source0: http://natura.di.uminho.pt/download/sources/Dictionaries/hunspell/hunspell-pt_PT-20090309.tar.gz
Source1: http://www.broffice.org/files/pt_BR-2009-07-02AOC.zip
Group: Applications/Text
@ -19,11 +19,15 @@ Portuguese hunspell dictionaries.
%prep
%setup -q -n hunspell-pt_PT-20090309
unzip -q -o %{SOURCE1}
tr -d '\r' < README_pt_BR.TXT > README.TXT.new
mv -f README.TXT.new README_pt_BR.TXT
for i in README*; do
for i in README_pt_BR.TXT README_pt_PT.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
%build
@ -42,6 +46,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/myspell/*
%changelog
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090702-2
- tidy spec
* Fri Jul 03 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090702-1
- latest pt_BR version