rpms/hunspell-fy/devel hunspell-fy.spec,1.2,1.3

Caolan McNamara caolanm at fedoraproject.org
Fri Jul 10 08:28:04 UTC 2009


Author: caolanm

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

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


Index: hunspell-fy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hunspell-fy/devel/hunspell-fy.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- hunspell-fy.spec	25 Feb 2009 04:47:03 -0000	1.2
+++ hunspell-fy.spec	10 Jul 2009 08:27:32 -0000	1.3
@@ -1,7 +1,7 @@
 Name: hunspell-fy
 Summary: Frisian hunspell dictionaries
 Version: 2.0.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Source: https://addons.mozilla.org/en-US/firefox/downloads/file/32102/frysk_wurdboek-%{version}-fx+tb+sm.xpi
 Group: Applications/Text
 URL: http://www.mozilla-nl.org/projecten/frysk
@@ -18,8 +18,13 @@ Frisian hunspell dictionaries.
 %setup -q -c -n hunspell-fy
 
 %build
-tr -d '\r' < README-fy.txt > README-fy.txt.new
-iconv -f ISO-8859-1 -t UTF-8 README-fy.txt.new > README-fy.txt
+for i in README-fy.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 | tr -d '\r' > $i.new
+    touch -r $i $i.new
+    mv -f $i.new $i
+  fi
+done
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -43,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/myspell/*
 
 %changelog
+* Fri Jul 10 2009 Caolan McNamara <caolanm at redhat.com> - 2.0.0-3
+- tidy up
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list