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
|
|
|
#
|
2019-04-22 09:48:30 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
2019-04-22 09:48:30 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-04-20 02:43:46 +02:00
|
|
|
#
|
|
|
|
|
2011-02-21 00:54:37 +01:00
|
|
|
|
2010-04-20 02:43:46 +02:00
|
|
|
Name: perl-DateTime
|
2019-04-22 09:48:30 +02:00
|
|
|
Version: 1.51
|
2012-02-13 20:40:35 +01:00
|
|
|
Release: 0
|
2011-02-20 00:51:49 +01:00
|
|
|
%define cpan_name DateTime
|
2019-04-22 09:48:30 +02:00
|
|
|
Summary: Date and time object for Perl
|
2012-02-13 20:40:35 +01:00
|
|
|
License: Artistic-2.0
|
2010-04-20 02:43:46 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2019-04-22 09:48:30 +02:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-06-14 12:30:25 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-06-10 12:44:16 +02:00
|
|
|
Source1: cpanspec.yml
|
2010-04-20 02:43:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2016-07-04 17:23:52 +02:00
|
|
|
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
|
|
|
|
BuildRequires: perl(CPAN::Meta::Requirements)
|
2017-06-14 12:30:25 +02:00
|
|
|
BuildRequires: perl(DateTime::Locale) >= 1.060000
|
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 2.02
|
2016-07-04 17:23:52 +02:00
|
|
|
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
|
2018-01-05 11:06:59 +01:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler) >= 0.26
|
2017-06-14 12:30:25 +02:00
|
|
|
BuildRequires: perl(Specio) >= 0.18
|
|
|
|
BuildRequires: perl(Specio::Declare)
|
|
|
|
BuildRequires: perl(Specio::Exporter)
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::Numeric)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2013-06-04 12:51:51 +02:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-06-10 12:44:16 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
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)
|
2016-08-07 09:19:09 +02:00
|
|
|
BuildRequires: perl(namespace::autoclean) >= 0.19
|
2017-06-14 12:30:25 +02:00
|
|
|
BuildRequires: perl(parent)
|
|
|
|
Requires: perl(DateTime::Locale) >= 1.060000
|
|
|
|
Requires: perl(DateTime::TimeZone) >= 2.02
|
2016-07-04 17:23:52 +02:00
|
|
|
Requires: perl(Dist::CheckConflicts) >= 0.02
|
2018-01-05 11:06:59 +01:00
|
|
|
Requires: perl(Params::ValidationCompiler) >= 0.26
|
2017-06-14 12:30:25 +02:00
|
|
|
Requires: perl(Specio) >= 0.18
|
|
|
|
Requires: perl(Specio::Declare)
|
|
|
|
Requires: perl(Specio::Exporter)
|
|
|
|
Requires: perl(Specio::Library::Builtins)
|
|
|
|
Requires: perl(Specio::Library::Numeric)
|
|
|
|
Requires: perl(Specio::Library::String)
|
2013-06-04 12:51:51 +02:00
|
|
|
Requires: perl(Try::Tiny)
|
2016-08-07 09:19:09 +02:00
|
|
|
Requires: perl(namespace::autoclean) >= 0.19
|
2017-06-14 12:30:25 +02:00
|
|
|
Requires: perl(parent)
|
2013-06-04 12:51:51 +02:00
|
|
|
%{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
|
2016-03-09 07:39:32 +01:00
|
|
|
see http://datetime.perl.org/. The DateTime site has a FAQ which may help
|
|
|
|
answer many "how do I do X?" questions. The FAQ is at
|
|
|
|
http://datetime.perl.org/wiki/datetime/page/FAQ.
|
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
|
2019-04-22 09:48:30 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%check
|
2019-04-22 09:48:30 +02:00
|
|
|
make test
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%install
|
2016-03-22 11:21:57 +01:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
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)
|
2018-08-24 13:06:43 +02:00
|
|
|
%doc appveyor.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS leaptab.txt README.md TODO
|
2017-06-14 12:30:25 +02:00
|
|
|
%license LICENSE
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%changelog
|