File aspell-en.spec of Package aspell-en

#
# spec file for package aspell-en
#
# Copyright (c) 2012 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/
#


%define aspell_dict_dir %(aspell dump config dict-dir)
%define aspell_data_dir %(aspell dump config data-dir)

Name:           aspell-en
Version:        7.1
Release:        1
Summary:        English Dictionaries for ASpell

License:        MIT and BSD-3-Clause
Url:            http://wordlist.sourceforge.net/
Group:          Productivity/Text/Spell
Source0:        ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-%{version}-0.tar.bz2
Source1:        Nwordlist.tgz
# PATCH-FEATURE-OPENSUSE aspell-en-Novellwords_extra_dict.patch -- Add Novell jargon dictionary
Patch0:         aspell-en-Novellwords_extra_dict.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  aspell >= 0.60
BuildRequires:  fdupes
Requires:       aspell >= 0.60
Provides:       locale(aspell:en)

%description
An English, Canadian English and British English dictionary for the ASpell
spell checker.

%prep
%setup -q -n aspell6-en-%{version}-0 -a1
%patch0

%build
#not autoconf
./configure
make %{?_smp_mflags}
# 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
%makeinstall
install -pm 0644 ./enNovellwords %{buildroot}%{aspell_dict_dir}/

%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc Copyright README doc/ChangeLog doc/SCOWL-README doc/extra.txt
%{aspell_dict_dir}/*.rws
%{aspell_dict_dir}/*.multi
%{aspell_dict_dir}/*.alias
%{aspell_dict_dir}/enNovellwords
%{aspell_data_dir}/*.dat

%changelog
openSUSE Build Service is sponsored by