rpms/hyphen-sk/devel hyphen-sk.spec,1.3,1.4

Caolan McNamara caolanm at fedoraproject.org
Sat Jul 11 16:01:51 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/hyphen-sk/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20644

Modified Files:
	hyphen-sk.spec 
Log Message:
tidy spec


Index: hyphen-sk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hyphen-sk/devel/hyphen-sk.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- hyphen-sk.spec	25 Feb 2009 06:18:46 -0000	1.3
+++ hyphen-sk.spec	11 Jul 2009 16:01:50 -0000	1.4
@@ -2,7 +2,7 @@ Name: hyphen-sk
 Summary: Slovak hyphenation rules
 %define upstreamid 20031227
 Version: 0.%{upstreamid}
-Release: 3%{?dist}
+Release: 4%{?dist}
 Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_sk_SK.zip
 Group: Applications/Text
 URL: http://wiki.services.openoffice.org/wiki/Dictionaries
@@ -20,8 +20,16 @@ Slovak hyphenation rules.
 
 %build
 chmod -x *
-iconv -f ISO-8859-1 -t UTF-8 README_hyph_sk_SK.txt > README_hyph_sk_SK.txt.new
-mv -f README_hyph_sk_SK.txt.new README_hyph_sk_SK.txt
+for i in README_hyph_sk_SK.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
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -37,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/hyphen/*
 
 %changelog
+* Sat Jul 11 2009 Caolan McNamara <caolanm at redhat.com> - 0.20031227-4
+- tidy spec
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.20031227-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list