Group :: System/Internationalization
RPM: aspell-nl
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Summary: Dutch dictionaries for Aspell
Name: aspell-nl
# Have to bump this to make it newer than the old, bad version.
Packager: Igor Vlasenko <viy at altlinux.ru>
Version: 0.1e
Release: alt1
License: GPL
Group: System/Internationalization
URL: http://packages.debian.org/unstable/text/%{name}
Source0: http://ftp.debian.org/debian/pool/main/d/dutch/dutch_%{version}.orig.tar.gz
Source1: http://corbu.aq.upm.es/~agmartin/linux/ispellaff2myspell
Patch0: dutch-debian.patch
Buildrequires: aspell >= 0.60
Requires: aspell >= 0.60
%description
Provides the word list/dictionaries for the following: Dutch
%prep
%setup -q -n dutch-%{version}
%patch0 -p1
%build
install -m0755 %{SOURCE1} wl/
cd wl/
sed -e '/[_:`^<>()]/d' ./small.wl ./medium.wl ./large.wl ./toponames.wla ./chemistry.wla ./countries.wla ./energy.wla ./jargon.wla ./newwords.wla ./physics.wla ./puzzle.wla | tr -d '\267' | sort -f | uniq | tee dutch | sed -e '/[- 0-9\.,]/d' > dutch.stripped
./ispellaff2myspell --charset=latin1 --split=200 --myheader=nl_NL.myheader dutch.aff > nl_NL.myaff
cp ../aspell/dutch.dat nl.dat
cp nl_NL.myaff nl_affix.dat
%{_bindir}/aspell --lang=nl create master ./nl.rws < dutch.stripped
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}/aspell
install -m0644 aspell/dutch.alias $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/dutch.alias $RPM_BUILD_ROOT%{_libdir}/aspell/nederlands.alias
install -m0644 aspell/dutch.dat $RPM_BUILD_ROOT%{_libdir}/aspell/nl.dat
install -m0644 wl/nl_NL.myaff $RPM_BUILD_ROOT%{_libdir}/aspell/nl_affix.dat
install -m0644 wl/dutch.aff $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 wl/nl.rws $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/dutch.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/flemish.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/nederlands.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/nl.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/vlaams.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
%files
%doc COPYING README ChangeLog
%{_libdir}/aspell/*
%changelog
…
Full changelog you can see here
Name: aspell-nl
# Have to bump this to make it newer than the old, bad version.
Packager: Igor Vlasenko <viy at altlinux.ru>
Version: 0.1e
Release: alt1
License: GPL
Group: System/Internationalization
URL: http://packages.debian.org/unstable/text/%{name}
Source0: http://ftp.debian.org/debian/pool/main/d/dutch/dutch_%{version}.orig.tar.gz
Source1: http://corbu.aq.upm.es/~agmartin/linux/ispellaff2myspell
Patch0: dutch-debian.patch
Buildrequires: aspell >= 0.60
Requires: aspell >= 0.60
%description
Provides the word list/dictionaries for the following: Dutch
%prep
%setup -q -n dutch-%{version}
%patch0 -p1
%build
install -m0755 %{SOURCE1} wl/
cd wl/
sed -e '/[_:`^<>()]/d' ./small.wl ./medium.wl ./large.wl ./toponames.wla ./chemistry.wla ./countries.wla ./energy.wla ./jargon.wla ./newwords.wla ./physics.wla ./puzzle.wla | tr -d '\267' | sort -f | uniq | tee dutch | sed -e '/[- 0-9\.,]/d' > dutch.stripped
./ispellaff2myspell --charset=latin1 --split=200 --myheader=nl_NL.myheader dutch.aff > nl_NL.myaff
cp ../aspell/dutch.dat nl.dat
cp nl_NL.myaff nl_affix.dat
%{_bindir}/aspell --lang=nl create master ./nl.rws < dutch.stripped
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}/aspell
install -m0644 aspell/dutch.alias $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/dutch.alias $RPM_BUILD_ROOT%{_libdir}/aspell/nederlands.alias
install -m0644 aspell/dutch.dat $RPM_BUILD_ROOT%{_libdir}/aspell/nl.dat
install -m0644 wl/nl_NL.myaff $RPM_BUILD_ROOT%{_libdir}/aspell/nl_affix.dat
install -m0644 wl/dutch.aff $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 wl/nl.rws $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/dutch.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/flemish.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/nederlands.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/nl.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
install -m0644 aspell/vlaams.multi $RPM_BUILD_ROOT%{_libdir}/aspell/
%files
%doc COPYING README ChangeLog
%{_libdir}/aspell/*
%changelog
…
Full changelog you can see here