Blame SPECS/hunspell-gv.spec

265a8b
Name: hunspell-gv
265a8b
Summary: Manx hunspell dictionaries
265a8b
%define upstreamid 20040505
265a8b
Version: 0.%{upstreamid}
265a8b
Release: 9%{?dist}
265a8b
Group: Applications/Text
265a8b
Source: http://ftp.gnu.org/gnu/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2
265a8b
URL: http://borel.slu.edu/crubadan/apps.html
265a8b
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
265a8b
License: GPL+
265a8b
BuildArch: noarch
265a8b
BuildRequires: aspell, hunspell-devel
265a8b
265a8b
Requires: hunspell
265a8b
265a8b
%description
265a8b
Manx hunspell dictionaries.
265a8b
265a8b
%prep
265a8b
%setup -q -n aspell-gv-0.50-0
265a8b
265a8b
%build
265a8b
export LANG=gv_GB.utf8
265a8b
preunzip -d *.cwl
265a8b
cat *.wl > manx.wordlist
265a8b
wordlist2hunspell manx.wordlist gv_GB
265a8b
for i in Copyright doc/Crawler.txt; do
265a8b
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
265a8b
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
265a8b
    touch -r $i $i.new
265a8b
    mv -f $i.new $i
265a8b
  fi
265a8b
  tr -d '\r' < $i > $i.new
265a8b
  touch -r $i $i.new
265a8b
  mv -f $i.new $i
265a8b
done
265a8b
265a8b
%install
265a8b
rm -rf $RPM_BUILD_ROOT
265a8b
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
265a8b
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
265a8b
265a8b
%clean
265a8b
rm -rf $RPM_BUILD_ROOT
265a8b
265a8b
%files
265a8b
%defattr(-,root,root,-)
265a8b
%doc COPYING Copyright README doc/Crawler.txt
265a8b
%{_datadir}/myspell/*
265a8b
265a8b
%changelog
265a8b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20040505-9
265a8b
- Mass rebuild 2013-12-27
265a8b
265a8b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-8
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
265a8b
265a8b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-7
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
265a8b
265a8b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-6
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
265a8b
265a8b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-5
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
265a8b
265a8b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-4
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
265a8b
265a8b
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.20040505-3
265a8b
- tidy spec
265a8b
265a8b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20040505-2
265a8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
265a8b
265a8b
* Fri Nov 07 2008 Caolan McNamara <caolanm@redhat.com> - 0.20040505-1
265a8b
- initial version