File perl-DateTime-Locale.spec of Package perl-DateTime-Locale

# spec file for package perl-DateTime-Locale (Version 0.45)
# Copyright (c) 2010 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

# norootforbuild

%bcond_with test

Name:           perl-DateTime-Locale
%define cpan_name DateTime-Locale
Summary:        Localization support for
Version:        0.45
Release:        5
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl(Module::Build)
BuildRequires:  perl-macros
%if %{with test}
BuildRequires:  perl(Test::Output)
#BuildRequires:  perl(Test::Pod)
#BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Params::Validate) >= 0.91
Requires:       perl(List::MoreUtils)
Requires:       perl(Params::Validate) >= 0.91
#Conflicts:      perl(DateTime::Format::Strptime) >= 1.1000

DateTime::Locale is primarily a factory for the various locale subclasses.
It also provides some functions for getting information on all the
available locales.

If you want to know what methods are available for locale objects,
then please read the DateTime::Locale::Base documentation.

    Richard Evans <>
    Dave Rolsky <>

%setup -q -n %{cpan_name}-%{version}
# rpmlint: spurious-executable-perm
%{__chmod} 0644 tools/generate-from-cldr

%{__perl} Build.PL installdirs=vendor

./Build test

./Build install destdir=$RPM_BUILD_ROOT create_packlist=0

%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files