1
0
forked from pool/perl-DateTime
perl-DateTime/perl-DateTime.spec
Pedro Monreal Gonzalez b8e3e10238 Accepting request 500295 from devel:languages:perl:autoupdate
- updated to 1.43
   see /usr/share/doc/packages/perl-DateTime/Changes
  1.43   2017-05-29
  
  - Added a small optimization for boolification overloading. Rather than
    relying on a fallback to stringification, we now return true directly, which
    is a little faster in cases like "if ($might_be_dt) { ... }".
  
  - The datetime() method now accepts a single argument to use as the separate
    between the date and time portion. This defaults to "T".

- updated to 1.42
   see /usr/share/doc/packages/perl-DateTime/Changes
  1.42   2016-12-25
  
  - The DateTime::Duration->add and ->subtract methods now accept
    DateTime::Duration objects. This used to work by accident, but this is now
    done intentionally (with docs and tests). Reported by Petr Pisar. GitHub
    #50.
  
  
  1.41   2016-11-16
  
  - The DateTime->add and ->subtract methods now accept DateTime::Duration
    objects. This used to work by accident, but this is now done intentionally
    (with docs and tests). Based on PR #45 from Sam Kington.
  
  
  1.40   2016-11-12

OBS-URL: https://build.opensuse.org/request/show/500295
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime?expand=0&rev=76
2017-06-14 10:30:25 +00:00

104 lines
3.8 KiB
RPMSpec

#
# spec file for package perl-DateTime
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: perl-DateTime
Version: 1.43
Release: 0
%define cpan_name DateTime
Summary: Date and Time Object for Perl
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime/
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(DateTime::Locale) >= 1.060000
BuildRequires: perl(DateTime::TimeZone) >= 2.02
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
BuildRequires: perl(Params::ValidationCompiler) >= 0.13
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)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Warnings) >= 0.005
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::autoclean) >= 0.19
BuildRequires: perl(parent)
Requires: perl(DateTime::Locale) >= 1.060000
Requires: perl(DateTime::TimeZone) >= 2.02
Requires: perl(Dist::CheckConflicts) >= 0.02
Requires: perl(Params::ValidationCompiler) >= 0.13
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)
Requires: perl(Try::Tiny)
Requires: perl(namespace::autoclean) >= 0.19
Requires: perl(parent)
%{perl_requires}
%description
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 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.
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.
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".
For infinite datetimes, please see the DateTime::Infinite module.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc appveyor.yml Changes CONTRIBUTING.md CREDITS leaptab.txt README.md TODO
%license LICENSE
%changelog