File aspell-en.spec of Package aspell-en
#
# spec file for package aspell-en (Version 6.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: aspell-en
BuildRequires: aspell
License: Collective copyright allows use, copying, modification, distribution
Group: Productivity/Text/Spell
Provides: locale(aspell:en)
Requires: aspell >= 0.60
AutoReqProv: on
Version: 6.0
Release: 162
Summary: An English Dictionary for ASpell
Url: http://wordlist.sourceforge.net/
Source: aspell6-en-6.0-0.tar.bz2
Source1: Nwordlist.tgz
Patch: aspell-en-Novellwords_extra_dict.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define aspell_dict_dir %(aspell dump config dict-dir)
%define aspell_data_dir %(aspell dump config data-dir)
%description
An English dictionary for the ASpell spell checker.
Authors:
--------
Kevin Atkinson <kevina@gnu.org>
%prep
%setup -q -n aspell6-en-6.0-0 -a1
%patch
%build
./configure
make
# creating extra dictionary with Novell jargon
/usr/bin/word-list-compress c < Nwordlist > Nwordlist.cwl
/usr/bin/word-list-compress d < Nwordlist.cwl | aspell --lang=en create master ./enNovellwords
%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m 644 ./enNovellwords $RPM_BUILD_ROOT/%{aspell_dict_dir}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Copyright README doc/ChangeLog doc/SCOWL-README
%{aspell_dict_dir}/*.rws
%{aspell_dict_dir}/*.multi
%{aspell_dict_dir}/*.alias
%{aspell_dict_dir}/enNovellwords
%{aspell_data_dir}/*.dat
%changelog