tidy spec

This commit is contained in:
Caolan McNamara 2009-07-10 08:27:32 +00:00
parent b60d163b80
commit 3c5bcd1147

View File

@ -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@redhat.com> - 2.0.0-3
- tidy up
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild