File perl-Lingua-EN-Inflect.spec of Package perl-Lingua-EN-Inflect

# spec file for package perl-Lingua-EN-Inflect
# 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

Name:           perl-Lingua-EN-Inflect
Version:        1.893
Release:        0
%define cpan_name Lingua-EN-Inflect
Summary:        Convert singular to plural. Select "a" or "an".
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(version)
Requires:       perl(version)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

The exportable subroutines of Lingua::EN::Inflect provide plural
inflections, "a"/"an" selection for English words, and manipulation of
numbers as words

Plural forms of all nouns, most verbs, and some adjectives are provided.
Where appropriate, "classical" variants (for example: "brother" ->
"brethren", "dogma" -> "dogmata", etc.) are also provided.

Pronunciation-based "a"/"an" selection is provided for all English words,
and most initialisms.

It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd)
and to english words ("one", "two", "three).

In generating these inflections, Lingua::EN::Inflect follows the Oxford
English Dictionary and the guidelines in Fowler's Modern English Usage,
preferring the former where the two disagree.

The module is built around standard British spelling, but is designed to
cope with common American variants as well. Slang, jargon, and other
English dialects are _not_ explicitly catered for.

Where two or more inflected forms exist for a single word (typically a
"classical" form and a "modern" form), Lingua::EN::Inflect prefers the more
common form (typically the "modern" one), unless "classical" processing has
been specified (see the "MODERN VS CLASSICAL INFLECTIONS" manpage).

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

%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}

./Build test

./Build install destdir=%{buildroot} create_packlist=0

%{__rm} -rf %{buildroot}

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