rpms/hunspell-pt/devel hunspell-pt.spec,1.32,1.33

Caolan McNamara caolanm at fedoraproject.org
Sat Jul 11 14:35:35 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/hunspell-pt/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31295

Modified Files:
	hunspell-pt.spec 
Log Message:
tidy spec


Index: hunspell-pt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hunspell-pt/devel/hunspell-pt.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -p -r1.32 -r1.33
--- hunspell-pt.spec	3 Jul 2009 19:47:23 -0000	1.32
+++ hunspell-pt.spec	11 Jul 2009 14:35:35 -0000	1.33
@@ -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 at redhat.com> - 0.20090702-2
+- tidy spec
+
 * Fri Jul 03 2009 Caolan McNamara <caolanm at redhat.com> - 0.20090702-1
 - latest pt_BR version
 




More information about the fedora-extras-commits mailing list