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