tidy spec

This commit is contained in:
Caolan McNamara 2009-07-11 15:59:01 +00:00
parent 758e7a7897
commit 9b18e9474e

View File

@ -2,7 +2,7 @@ Name: hyphen-de
Summary: German hyphenation rules Summary: German hyphenation rules
%define upstreamid 20060120 %define upstreamid 20060120
Version: 0.%{upstreamid} Version: 0.%{upstreamid}
Release: 3%{?dist} Release: 4%{?dist}
Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_de_DE.zip Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_de_DE.zip
Group: Applications/Text Group: Applications/Text
URL: http://wiki.services.openoffice.org/wiki/Dictionaries URL: http://wiki.services.openoffice.org/wiki/Dictionaries
@ -18,8 +18,16 @@ German hyphenation rules.
%setup -q -c -n hyphen-de %setup -q -c -n hyphen-de
%build %build
iconv -f ISO-8859-1 -t UTF-8 README_hyph_de_DE.txt > README_hyph_de_DE.txt.new for i in README_hyph_de_DE.txt; do
mv -f README_hyph_de_DE.txt.new README_hyph_de_DE.txt 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 %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -42,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/hyphen/* %{_datadir}/hyphen/*
%changelog %changelog
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20060120-4
- tidy spec
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-3 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20060120-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild