2010-04-20 02:44:06 +02:00
|
|
|
#
|
2011-08-29 23:08:57 +02:00
|
|
|
# spec file for package perl-DateTime-Locale
|
2010-04-20 02:44:06 +02:00
|
|
|
#
|
2011-08-29 23:08:57 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-20 02:44:06 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-11-11 12:16:08 +01:00
|
|
|
|
2010-07-19 20:49:44 +02:00
|
|
|
%bcond_with test
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
Name: perl-DateTime-Locale
|
2010-07-19 20:49:44 +02:00
|
|
|
%define cpan_name DateTime-Locale
|
2010-04-20 02:44:06 +02:00
|
|
|
Summary: Localization support for DateTime.pm
|
|
|
|
Version: 0.45
|
2011-11-11 12:16:08 +01:00
|
|
|
Release: 10
|
2010-07-19 20:49:44 +02:00
|
|
|
License: GPL+ or Artistic
|
2010-04-20 02:44:06 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2010-07-19 20:49:44 +02:00
|
|
|
Url: http://search.cpan.org/dist/DateTime-Locale/
|
|
|
|
#Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz
|
2011-11-17 16:28:11 +01:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2010-04-20 02:44:06 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:01:45 +01:00
|
|
|
%{perl_requires}
|
2010-04-20 02:44:06 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-08-29 23:08:57 +02:00
|
|
|
BuildRequires: perl(Module::Build)
|
2010-07-19 20:49:44 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: perl(Test::Output)
|
2010-04-20 02:44:06 +02:00
|
|
|
#BuildRequires: perl(Test::Pod)
|
|
|
|
#BuildRequires: perl(Test::Pod::Coverage)
|
2010-07-19 20:49:44 +02:00
|
|
|
%endif
|
2010-04-20 02:44:06 +02:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
|
|
|
BuildRequires: perl(Params::Validate) >= 0.91
|
2010-07-19 20:49:44 +02:00
|
|
|
#
|
2010-04-20 02:44:06 +02:00
|
|
|
Requires: perl(List::MoreUtils)
|
|
|
|
Requires: perl(Params::Validate) >= 0.91
|
2010-07-19 20:49:44 +02:00
|
|
|
#
|
|
|
|
#Conflicts: perl(DateTime::Format::Strptime) >= 1.1000
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
DateTime::Locale is primarily a factory for the various locale subclasses.
|
2010-07-19 20:49:44 +02:00
|
|
|
It also provides some functions for getting information on all the
|
|
|
|
available locales.
|
|
|
|
|
2010-04-20 02:44:06 +02:00
|
|
|
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}
|
2010-07-19 20:49:44 +02:00
|
|
|
# rpmlint: spurious-executable-perm
|
2011-08-29 23:08:57 +02:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
%{__rm} -rf tools
|
|
|
|
%endif
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%build
|
2010-07-19 20:49:44 +02:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
2010-04-20 02:44:06 +02:00
|
|
|
./Build
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2011-08-29 23:08:57 +02:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-04-20 02:44:06 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
2010-07-19 20:49:44 +02:00
|
|
|
%clean
|
2011-08-29 23:08:57 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%files -f %{name}.files
|
2010-07-19 20:49:44 +02:00
|
|
|
%defattr(-,root,root,-)
|
2011-08-29 23:08:57 +02:00
|
|
|
%if 0%{suse_version}
|
2010-07-19 20:49:44 +02:00
|
|
|
%doc Changes LICENSE README SIGNATURE tools
|
2011-08-29 23:08:57 +02:00
|
|
|
%else
|
|
|
|
%doc Changes LICENSE README SIGNATURE
|
|
|
|
%endif
|
2010-04-20 02:44:06 +02:00
|
|
|
|
|
|
|
%changelog
|