File perl-Text-SpellChecker.spec of Package perl-Text-SpellChecker
#
# spec file for package perl-Text-SpellChecker
#
# Copyright (c) 2011 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/
#
Name: perl-Text-SpellChecker
Version: 0.11
Release: 0
%define cpan_name Text-SpellChecker
Summary: OO interface for spell-checking a block of text
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Text-SpellChecker/
Source: http://www.cpan.org/authors/id/B/BD/BDUGGAN/Text-SpellChecker-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Text::Hunspell)
Requires: perl(Text::Hunspell)
%{perl_requires}
%description
This module is a thin layer above either Text::Aspell or Text::Hunspell
(preferring the latter if available), and allows one to spellcheck a body
of text.
Whereas Text::(Hu|A)spell deals with words, Text::Spellchecker deals with
blocks of text. For instance, we provide methods for iterating through the
text, serializing the object (thus remembering where we left off), and
highlighting the current misspelled word within the text.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog