# # spec file for package perl-DateTime-Locale # # Copyright (c) 2014 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 http://bugs.opensuse.org/ # %bcond_with test Name: perl-DateTime-Locale %define cpan_name DateTime-Locale Summary: Localization support for DateTime.pm License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl Version: 0.45 Release: 0 Url: http://search.cpan.org/dist/DateTime-Locale/ #Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) %if %{with test} BuildRequires: perl(Test::Output) #BuildRequires: perl(Test::Pod) #BuildRequires: perl(Test::Pod::Coverage) %endif BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Params::Validate) >= 0.91 # Requires: perl(List::MoreUtils) Requires: perl(Params::Validate) >= 0.91 # MANUAL Provides: perl(DateTime::Locale) = %{version}00 %description 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. %prep %setup -q -n %{cpan_name}-%{version} # rpmlint: spurious-executable-perm find . -type f -print0 | xargs -0 chmod 644 %if 0%{?rhel_version} || 0%{?centos_version} %{__rm} -rf tools %endif %build %{__perl} Build.PL installdirs=vendor ./Build %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,-) %if 0%{suse_version} %doc Changes LICENSE README SIGNATURE tools %else %doc Changes LICENSE README SIGNATURE %endif %changelog