File perl-DateTime-Format-Builder.spec of Package perl-DateTime-Format-Builder

# spec file for package perl-DateTime-Format-Builder
# Copyright (c) 2013 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-DateTime-Format-Builder
Version:        0.81
Release:        0
%define cpan_name DateTime-Format-Builder
Summary:        Create DateTime parser classes and objects.
License:        Artistic-2.0
Group:          Development/Libraries/Perl
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Factory::Util) >= 1.6
BuildRequires:  perl(DateTime) >= 1.00
BuildRequires:  perl(DateTime::Format::Strptime) >= 1.04
BuildRequires:  perl(Params::Validate) >= 0.72
BuildRequires:  perl(Test::More) >= 0.88
#BuildRequires: perl(DateTime::Format::Builder)
#BuildRequires: perl(DateTime::Format::Builder::Parser)
#BuildRequires: perl(DateTime::Format::Builder::Parser::generic)
#BuildRequires: perl(DateTime::Format::HTTP)
#BuildRequires: perl(DateTime::Format::IBeat)
#BuildRequires: perl(DateTime::Format::Mail)
Requires:       perl(Class::Factory::Util) >= 1.6
Requires:       perl(DateTime) >= 1.00
Requires:       perl(DateTime::Format::Strptime) >= 1.04
Requires:       perl(Params::Validate) >= 0.72

DateTime::Format::Builder creates DateTime parsers. Many string formats of
dates and times are simple and just require a basic regular expression to
extract the relevant information. Builder provides a simple way to do this
without writing reams of structural code.

Builder provides a number of methods, most of which you'll never need, or
at least rarely need. They're provided more for exposing of the module's
innards to any subclasses, or for when you need to do something slightly
beyond what I expected.

This creates the end methods. Coderefs die on bad parses, return 'DateTime'
objects on good parse.

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

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

%{__make} test


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

openSUSE Build Service is sponsored by