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
|
|
|
#
|
2022-03-03 15:08:36 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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
|
|
|
|
2022-01-01 18:41:09 +01:00
|
|
|
%define cpan_name DateTime
|
2010-04-20 02:43:46 +02:00
|
|
|
Name: perl-DateTime
|
2022-03-08 12:49:12 +01:00
|
|
|
Version: 1.57
|
2012-02-13 20:40:35 +01:00
|
|
|
Release: 0
|
|
|
|
License: Artistic-2.0
|
2022-03-03 15:08:36 +01:00
|
|
|
Summary: Date and time object for Perl
|
2020-11-10 10:09:55 +01: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
|
|
|
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
|
2020-11-10 10:09:55 +01:00
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 2.44
|
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)
|
2022-03-03 15:08:36 +01:00
|
|
|
BuildRequires: perl(Specio::Subs)
|
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
|
2022-03-08 12:49:12 +01:00
|
|
|
BuildRequires: perl(Test::Without::Module)
|
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
|
2020-11-10 10:09:55 +01:00
|
|
|
Requires: perl(DateTime::TimeZone) >= 2.44
|
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)
|
2022-03-03 15:08:36 +01:00
|
|
|
Requires: perl(Specio::Subs)
|
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
|
2022-01-01 18:41:09 +01:00
|
|
|
is part of the Perl DateTime project.
|
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
|
2022-01-01 18:41:09 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%build
|
2019-04-22 09:48:30 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-01-01 18:41:09 +01:00
|
|
|
%make_build
|
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
|
2022-01-01 18:41:09 +01:00
|
|
|
%doc azure-pipelines.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS leaptab.txt precious.toml README.md TODO
|
2017-06-14 12:30:25 +02:00
|
|
|
%license LICENSE
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%changelog
|