rpms/mythes-pt/devel mythes-pt.spec,1.2,1.3

Caolan McNamara caolanm at fedoraproject.org
Sat Jul 11 16:47:22 UTC 2009


Author: caolanm

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

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


Index: mythes-pt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mythes-pt/devel/mythes-pt.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- mythes-pt.spec	26 Feb 2009 03:57:12 -0000	1.2
+++ mythes-pt.spec	11 Jul 2009 16:46:52 -0000	1.3
@@ -2,7 +2,7 @@ Name: mythes-pt
 Summary: Portuguese thesaurus
 %define upstreamid 20060817
 Version: 0.%{upstreamid}
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source: http://openthesaurus.caixamagica.pt/download/thes_pt_PT_v2.zip
 Group: Applications/Text
 URL: http://openthesaurus.caixamagica.pt/
@@ -18,8 +18,16 @@ Portuguese thesaurus.
 %setup -q -c
 
 %build
-iconv -f ISO-8859-1 -t UTF-8 README_th_pt_PT_v2.txt > README_th_pt_PT_v2.txt.new
-mv -f README_th_pt_PT_v2.txt.new README_th_pt_PT_v2.txt
+for i in README_th_pt_PT_v2.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
@@ -42,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/mythes/*
 
 %changelog
+* Sat Jul 11 2009 Caolan McNamara <caolanm at redhat.com> - 0.20060817-3
+- tidy spec
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.20060817-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the scm-commits mailing list