File perl-Text-SpellChecker.spec of Package perl-Text-SpellChecker

# spec file for package perl-Text-SpellChecker
# Copyright (c) 2017 SUSE LINUX 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

%define cpan_name Text-SpellChecker
Name:           perl-Text-SpellChecker
Version:        0.14
Release:        0
Summary:        OO interface for spell-checking a block of text
License:        Artistic-1.0 OR GPL-1.0+
Group:          Development/Libraries/Perl
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Text::Hunspell)
Requires:       perl(Text::Hunspell)
BuildArch:      noarch

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.

%setup -q -n %{cpan_name}-%{version}

perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

make %{?_smp_mflags} test


%files -f %{name}.files
%doc Changes README

openSUSE Build Service is sponsored by