rpms/mythes-el/devel mythes-el.spec,1.3,1.4

Caolan McNamara caolanm at fedoraproject.org
Sat Jul 11 15:38:25 UTC 2009


Author: caolanm

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

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


Index: mythes-el.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mythes-el/devel/mythes-el.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- mythes-el.spec	12 Jun 2009 14:11:04 -0000	1.3
+++ mythes-el.spec	11 Jul 2009 15:38:25 -0000	1.4
@@ -2,7 +2,7 @@ Name: mythes-el
 Summary: Greek thesaurus
 %define upstreamid 20070412
 Version: 0.%{upstreamid}
-Release: 3%{?dist}
+Release: 4%{?dist}
 Source: http://www.ellak.gr/pub/oo_extras/th_el.zip
 Group: Applications/Text
 URL: http://www.openthesaurus.gr/
@@ -17,8 +17,16 @@ Greek thesaurus.
 %setup -q -c
 
 %build
-iconv -f ISO-8859-7 -t UTF-8 README_th_el_GR_v2.txt > README_th_el_GR_v2.txt.new
-mv -f README_th_el_GR_v2.txt.new README_th_el_GR_v2.txt
+for i in README_th_el_GR_v2.txt; do
+  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
+    iconv -f ISO-8859-7 -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.20070412-4
+- tidy spec
+
 * Fri Jun 12 2009 Caolan McNamara <caolanm at redhat.com> - 0.20070412-3
 - extend coverage
 




More information about the fedora-extras-commits mailing list