2010-04-20 02:43:46 +02:00
|
|
|
#
|
2011-02-21 00:54:37 +01:00
|
|
|
# spec file for package perl-DateTime
|
2010-04-20 02:43:46 +02:00
|
|
|
#
|
2014-02-11 11:38:25 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-20 02:43:46 +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-02-21 00:54:37 +01:00
|
|
|
|
2010-04-20 02:43:46 +02:00
|
|
|
Name: perl-DateTime
|
2014-07-25 11:33:29 +02:00
|
|
|
Version: 1.10
|
2012-02-13 20:40:35 +01:00
|
|
|
Release: 0
|
2011-02-20 00:51:49 +01:00
|
|
|
%define cpan_name DateTime
|
|
|
|
Summary: A date and time object
|
2012-02-13 20:40:35 +01:00
|
|
|
License: Artistic-2.0
|
2010-04-20 02:43:46 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2010-09-18 01:12:56 +02:00
|
|
|
Url: http://search.cpan.org/dist/DateTime/
|
2013-06-04 12:51:51 +02:00
|
|
|
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2010-04-20 02:43:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(DateTime::Locale) >= 0.41
|
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 1.09
|
2013-06-04 12:51:51 +02:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.3601
|
2010-04-20 02:43:46 +02:00
|
|
|
BuildRequires: perl(Params::Validate) >= 0.76
|
2013-06-04 12:51:51 +02:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2014-07-25 11:33:29 +02:00
|
|
|
BuildRequires: perl(Test::Warnings) >= 0.005
|
2013-06-04 12:51:51 +02:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2010-04-20 02:43:46 +02:00
|
|
|
Requires: perl(DateTime::Locale) >= 0.41
|
|
|
|
Requires: perl(DateTime::TimeZone) >= 1.09
|
|
|
|
Requires: perl(Params::Validate) >= 0.76
|
2013-06-04 12:51:51 +02:00
|
|
|
Requires: perl(Try::Tiny)
|
|
|
|
%{perl_requires}
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%description
|
2011-02-20 00:51:49 +01:00
|
|
|
DateTime is a class for the representation of date/time combinations, and
|
|
|
|
is part of the Perl DateTime project. For details on this project please
|
|
|
|
see the http://datetime.perl.org/ manpage. The DateTime site has a FAQ
|
|
|
|
which may help answer many "how do I do X?" questions. The FAQ is at the
|
|
|
|
http://datetime.perl.org/wiki/datetime/page/FAQ manpage.
|
2010-04-20 02:43:46 +02:00
|
|
|
|
2011-02-20 00:51:49 +01:00
|
|
|
It represents the Gregorian calendar, extended backwards in time before its
|
|
|
|
creation (in 1582). This is sometimes known as the "proleptic Gregorian
|
|
|
|
calendar". In this calendar, the first day of the calendar (the epoch), is
|
|
|
|
the first day of year 1, which corresponds to the date which was
|
|
|
|
(incorrectly) believed to be the birth of Jesus Christ.
|
2010-04-20 02:43:46 +02:00
|
|
|
|
2011-02-20 00:51:49 +01:00
|
|
|
The calendar represented does have a year 0, and in that way differs from
|
|
|
|
how dates are often written using "BCE/CE" or "BC/AD".
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
For infinite datetimes, please see the DateTime::Infinite module.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2011-02-20 00:51:49 +01:00
|
|
|
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
2010-09-18 01:12:56 +02:00
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2011-02-20 00:51:49 +01:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-04-20 02:43:46 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2013-06-04 12:51:51 +02:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes CREDITS leaptab.txt LICENSE README TODO
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%changelog
|