File perl-Locale-Maketext-Simple.spec of Package perl-Locale-Maketext-Simple

# spec file for package perl-Locale-Maketext-Simple
# 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-Locale-Maketext-Simple
Version:        0.21
Release:        0
%define cpan_name Locale-Maketext-Simple
Summary:        Simple interface to Locale::Maketext::Lexicon
License:        MIT
Group:          Development/Libraries/Perl
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
Requires:       perl(File::Spec)
Requires:       perl(Locale::Maketext::Lexicon)

This module is a simple wrapper around Locale::Maketext::Lexicon, designed
to alleviate the need of creating Language Classes for module authors.

The language used is chosen from the loc_lang call. If a lookup is not
possible, the i-default language will be used. If the lookup is not in
the i-default language, then the key will be returned.

If Locale::Maketext::Lexicon is not present, it implements a minimal
localization function by simply interpolating [_1] with the first
argument, [_2] with the second, etc. Interpolated function like
[quant,_1] are treated as [_1], with the sole exception of
[tense,_1,X], which will append ing to _1 when X is present, or
appending ed to <_1> otherwise.

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

%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%{__make} test


%{__rm} -rf %{buildroot}

%files -f %{name}.files

openSUSE Build Service is sponsored by