Accepting request 177336 from home:coolo:update-perl

- updated to 1.03
 - The set_time_zone() method was not returning the object when caalled with a
   name that matched the current zone. Reported by Noel Maddy. RT #84699.
 
 - When a constructor method like new() or today() was called on an object,
   you'd get an error message like 'Can't locate object method
   "_normalize_nanoseconds" via package "2013-04-15T00:00:00"'. This has been
   fixed to provide a sane error message. Patch by Doug Bell.
 
 - When set_time_zone() is called with a name that matches the current time
   zone, DateTime now short circuits and avoids a lot of work. Patch by Mark
   Stosberg.
 
 - Fixed test failures on older Perls.
 
 - Bumped the version to 1.00. This is mostly because my prior use of both X.YY
   and X.YYYY versions causes trouble for some packaging systems. Plus after 10
   years it's probably ready to be called 1.00. Requested by Adam. RT #82800. 
 
 - The %j specifier for strftime was not zero-padding 1 and 2 digit
   numbers. Fixed by Christian Hansen. RT #84310.
 
 - The truncate method was sloppy about validating its "to" parameter, so you
   could pass things like "years" or "month whatever anything goes". The method
   would accept the parameter but then not actually truncate the object. RT
   #84229.
 
 - Previously, if a call to $dt->set_time_zone() failed it would still change
   the time zone of the object, leaving it in a broken state. Reported by Bill
   Moseley. RT #83940.

OBS-URL: https://build.opensuse.org/request/show/177336
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime?expand=0&rev=46
This commit is contained in:
Stephan Kulow 2013-06-04 10:51:51 +00:00 committed by Git OBS Bridge
parent 42f40b04e7
commit ba4de8e03e
4 changed files with 71 additions and 38 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b05a90f2010cd97f2c6dcb3c58b54c792f703390073787319d9a4db91e940459
size 170910

3
DateTime-1.03.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:384f97c73da02492d771d6b5c3b37f6b18c2e12f4db3246b1d61ff19c6d6ad6d
size 174369

View File

@ -1,3 +1,49 @@
-------------------------------------------------------------------
Tue Jun 4 08:12:54 UTC 2013 - coolo@suse.com
- updated to 1.03
- The set_time_zone() method was not returning the object when caalled with a
name that matched the current zone. Reported by Noel Maddy. RT #84699.
- When a constructor method like new() or today() was called on an object,
you'd get an error message like 'Can't locate object method
"_normalize_nanoseconds" via package "2013-04-15T00:00:00"'. This has been
fixed to provide a sane error message. Patch by Doug Bell.
- When set_time_zone() is called with a name that matches the current time
zone, DateTime now short circuits and avoids a lot of work. Patch by Mark
Stosberg.
- Fixed test failures on older Perls.
- Bumped the version to 1.00. This is mostly because my prior use of both X.YY
and X.YYYY versions causes trouble for some packaging systems. Plus after 10
years it's probably ready to be called 1.00. Requested by Adam. RT #82800.
- The %j specifier for strftime was not zero-padding 1 and 2 digit
numbers. Fixed by Christian Hansen. RT #84310.
- The truncate method was sloppy about validating its "to" parameter, so you
could pass things like "years" or "month whatever anything goes". The method
would accept the parameter but then not actually truncate the object. RT
#84229.
- Previously, if a call to $dt->set_time_zone() failed it would still change
the time zone of the object, leaving it in a broken state. Reported by Bill
Moseley. RT #83940.
- DateTime::Infinite objects should no longer die when methods that require a
locale are called. Instead, these methods return undef for names and
Inf/-Inf for numbers. This affects methods such as day_name() as well as
CLDR and strftime formats. When a locale-specific format is used (like the
"full" datetime format) it uses the en_US format. Reported by Paul
Boldra. RT #67550.
- Reverted the change to round nanoseconds up or down in various
situtations. Now we always round down. This avoids the case where rounding
up would require us to then increment the second value (which could then
require us to increment the minute, which could then require us to increment
-------------------------------------------------------------------
Wed Feb 29 17:38:40 CET 2012 - ro@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,44 +16,41 @@
#
%bcond_with pod
Name: perl-DateTime
Version: 0.72
Version: 1.03
Release: 0
%define cpan_name DateTime
Summary: A date and time object
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime/
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
Patch: %{cpan_name}-0.72-Build.patch
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
%endif
BuildRequires: perl(Pod::Man) >= 1.14
BuildRequires: perl(Test::Exception)
%if 0%{?suse_version} >= 1130
BuildRequires: perl(Test::More) >= 0.88
%endif
BuildRequires: perl(DateTime::Locale) >= 0.41
BuildRequires: perl(DateTime::TimeZone) >= 1.09
BuildRequires: perl(Math::Round)
BuildRequires: perl(Module::Build) >= 0.3601
BuildRequires: perl(Params::Validate) >= 0.76
BuildRequires: perl(Scalar::Util)
#
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Try::Tiny)
#BuildRequires: perl(autodie)
#BuildRequires: perl(DateTime)
#BuildRequires: perl(DateTime::Duration)
#BuildRequires: perl(DateTime::Helpers)
#BuildRequires: perl(DateTime::Infinite)
#BuildRequires: perl(DateTime::LeapSecond)
#BuildRequires: perl(DateTimePP)
#BuildRequires: perl(DateTimePPExtra)
#BuildRequires: perl(Dist::Zilla::Plugin::ModuleBuild::XSOrPP)
#BuildRequires: perl(Moose)
#BuildRequires: perl(Test::DependentModules)
Requires: perl(DateTime::Locale) >= 0.41
Requires: perl(DateTime::TimeZone) >= 1.09
Requires: perl(Math::Round)
Requires: perl(Params::Validate) >= 0.76
Requires: perl(Scalar::Util)
Requires: perl(Time::Local) >= 1.04
Requires: perl(Try::Tiny)
%{perl_requires}
%description
DateTime is a class for the representation of date/time combinations, and
@ -75,30 +72,20 @@ For infinite datetimes, please see the DateTime::Infinite module.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
%patch
%endif
%{__chmod} 0644 tools/leap_seconds_header.pl
%build
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
%if 0%{?suse_version} >= 1130
%check
./Build test
%endif
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes CREDITS LICENSE README TODO tools
%defattr(-,root,root,755)
%doc Changes CREDITS leaptab.txt LICENSE README TODO
%changelog