tidy spec

This commit is contained in:
Caolan McNamara 2009-07-11 16:36:16 +00:00
parent 9634e4a541
commit 753f9c6ee0

View File

@ -2,7 +2,7 @@ Name: hunspell-ny
Summary: Chichewa hunspell dictionaries Summary: Chichewa hunspell dictionaries
%define upstreamid 20050108 %define upstreamid 20050108
Version: 0.%{upstreamid} Version: 0.%{upstreamid}
Release: 2%{?dist} Release: 3%{?dist}
Group: Applications/Text Group: Applications/Text
Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ny_MW.zip Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/ny_MW.zip
URL: http://borel.slu.edu/crubadan/apps.html URL: http://borel.slu.edu/crubadan/apps.html
@ -20,8 +20,16 @@ Chichewa hunspell dictionaries.
%setup -q -c %setup -q -c
%build %build
iconv -f ISO-8859-1 -t UTF-8 README_ny_MW.txt > README_ny_MW.txt.new for i in README_ny_MW.txt; do
mv -f README_ny_MW.txt.new README_ny_MW.txt 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 %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -37,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/myspell/* %{_datadir}/myspell/*
%changelog %changelog
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20050108-3
- tidy spec
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20050108-2 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20050108-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild