rpms/hunspell/devel hunspell.spec,1.68,1.69

Caolan McNamara caolanm at fedoraproject.org
Thu Jul 9 12:10:08 UTC 2009


Author: caolanm

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

Modified Files:
	hunspell.spec 
Log Message:
future proof against double-conversion


Index: hunspell.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hunspell/devel/hunspell.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -p -r1.68 -r1.69
--- hunspell.spec	9 Jul 2009 09:13:20 -0000	1.68
+++ hunspell.spec	9 Jul 2009 12:10:08 -0000	1.69
@@ -52,8 +52,11 @@ autoconf
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 for i in AUTHORS.myspell; do
-    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
+  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
 done
 make %{?_smp_mflags}
 




More information about the fedora-extras-commits mailing list