rpms/hyphen-pl/devel hyphen-pl.spec,1.2,1.3
Caolan McNamara
caolanm at fedoraproject.org
Sat Jul 11 15:40:29 UTC 2009
Author: caolanm
Update of /cvs/pkgs/rpms/hyphen-pl/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15064
Modified Files:
hyphen-pl.spec
Log Message:
tidy spec
Index: hyphen-pl.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hyphen-pl/devel/hyphen-pl.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- hyphen-pl.spec 25 Feb 2009 06:14:32 -0000 1.2
+++ hyphen-pl.spec 11 Jul 2009 15:40:29 -0000 1.3
@@ -2,7 +2,7 @@ Name: hyphen-pl
Summary: Polish hyphenation rules
%define upstreamid 20060726
Version: 0.%{upstreamid}
-Release: 2%{?dist}
+Release: 3%{?dist}
Source: http://pl.openoffice.org/pliki/hyph_pl_PL.zip
Group: Applications/Text
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
@@ -19,8 +19,16 @@ Polish hyphenation rules.
%build
unzip hyph_pl_PL.zip
-tr -d '\r' < README_hyph_pl_PL.txt > README_hyph_pl_PL.txt.new
-iconv -f ISO-8859-2 -t UTF-8 README_hyph_pl_PL.txt.new > README_hyph_pl_PL.txt
+for i in README_hyph_pl_PL.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
@@ -36,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/hyphen/*
%changelog
+* Sat Jul 11 2009 Caolan McNamara <caolanm at redhat.com> - 0.20060726-3
+- tidy spec
+
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.20060726-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the fedora-extras-commits
mailing list