Accepting request 69999 from devel:languages:perl

bugfix: fixes %N placeholder

OBS-URL: https://build.opensuse.org/request/show/69999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-DateTime?expand=0&rev=16
This commit is contained in:
Berthold Gunreben 2011-05-12 08:45:20 +00:00 committed by Git OBS Bridge
commit 49f5503cb1
6 changed files with 102 additions and 53 deletions

View File

@ -1,43 +0,0 @@
diff -ruN DateTime-0.66-orig/Build.PL DateTime-0.66/Build.PL
--- DateTime-0.66-orig/Build.PL 2010-11-26 19:47:41.000000000 +0100
+++ DateTime-0.66/Build.PL 2011-02-20 00:40:30.000000000 +0100
@@ -2,13 +2,13 @@
use strict;
use warnings;
-use Module::Build 0.3601;
+use Module::Build 0.280801;
my %module_build_args = (
'build_requires' => {
'ExtUtils::CBuilder' => '0',
- 'Module::Build' => '0.3601',
+ 'Module::Build' => '0.280801',
'Pod::Man' => '1.14',
'Test::Exception' => '0',
'Test::More' => '0.88'
diff -ruN DateTime-0.66-orig/META.json DateTime-0.66/META.json
--- DateTime-0.66-orig/META.json 2010-11-26 19:47:41.000000000 +0100
+++ DateTime-0.66/META.json 2011-02-20 00:40:12.000000000 +0100
@@ -17,7 +17,7 @@
"build" : {
"requires" : {
"ExtUtils::CBuilder" : 0,
- "Module::Build" : "0.3601",
+ "Module::Build" : "0.280801",
"Pod::Man" : "1.14",
"Test::Exception" : 0,
"Test::More" : "0.88"
diff -ruN DateTime-0.66-orig/META.yml DateTime-0.66/META.yml
--- DateTime-0.66-orig/META.yml 2010-11-26 19:47:41.000000000 +0100
+++ DateTime-0.66/META.yml 2011-02-20 00:41:10.000000000 +0100
@@ -4,7 +4,7 @@
- 'Dave Rolsky <autarch@urth.org>'
build_requires:
ExtUtils::CBuilder: 0
- Module::Build: 0.3601
+ Module::Build: 0.280801
Pod::Man: 1.14
Test::Exception: 0
Test::More: 0.88

View File

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

57
DateTime-0.70-Build.patch Normal file
View File

@ -0,0 +1,57 @@
--- META.yml.orig 2011-05-10 00:08:41.000000000 +0200
+++ META.yml 2011-05-10 00:09:11.000000000 +0200
@@ -3,11 +3,11 @@
author:
- 'Dave Rolsky <autarch@urth.org>'
build_requires:
- Module::Build: 0.3601
+ Module::Build: 0.280801
Test::Exception: 0
Test::More: 0.88
configure_requires:
- Module::Build: 0.3601
+ Module::Build: 0.280801
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.200006, CPAN::Meta::Converter version 2.110930'
license: artistic_2
--- META.json.orig 2011-05-10 00:08:11.000000000 +0200
+++ META.json 2011-05-10 00:08:35.000000000 +0200
@@ -16,12 +16,12 @@
"prereqs" : {
"build" : {
"requires" : {
- "Module::Build" : "0.3601"
+ "Module::Build" : "0.280801"
}
},
"configure" : {
"requires" : {
- "Module::Build" : "0.3601"
+ "Module::Build" : "0.280801"
}
},
"runtime" : {
--- Build.PL.orig 2011-05-10 00:07:29.000000000 +0200
+++ Build.PL 2011-05-10 00:08:08.000000000 +0200
@@ -2,18 +2,18 @@
use strict;
use warnings;
-use Module::Build 0.3601;
+use Module::Build 0.280801;
my %module_build_args = (
'build_requires' => {
- 'Module::Build' => '0.3601',
+ 'Module::Build' => '0.280801',
'Test::Exception' => '0',
'Test::More' => '0.88'
},
'c_source' => 'c',
'configure_requires' => {
- 'Module::Build' => '0.3601'
+ 'Module::Build' => '0.280801'
},
'dist_abstract' => 'A date and time object',
'dist_author' => [

3
DateTime-0.70.tar.bz2 Normal file
View File

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

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon May 09 21:56:19 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.70:
* really fix %N, finally
-------------------------------------------------------------------
Wed May 04 20:13:05 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.69:
* when a DateTime object had nanoseconds == 0, the %N strftime specifier
always returned "0" regardless of the precision requested
-------------------------------------------------------------------
Mon Apr 25 20:25:12 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.68:
* the tests for %N in the last release relied on the vagaries of floating
point math on a 64-bit system; now the from_epoch() method just uses string
operations to separate the epoch into an integer value and a mantissa; this
avoids floating point insanity (RT#67736)
- changes from 0.67:
* the %N strftime specifier simply truncated nanoseconds, rather than
rounding them (RT#66744)
* the %U strftime specifier was off by one in years where January 1st was a
Sunday (RT#67631)
* the %W strftime specifier was off by one in years where January 1st was a
Sunday or Monday (RT#67631)
* some small optimizations; the biggest impact is for calculating
week_of_month, week_number, and week_year
* now requires Perl 5.8.1+ (it implicitly did this anyway now that
Params::Validate is 5.8.1+)
-------------------------------------------------------------------
Thu Mar 31 09:17:28 UTC 2011 - pascal.bleser@opensuse.org

View File

@ -19,16 +19,16 @@
%bcond_with pod
Name: perl-DateTime
Version: 0.66
Release: 2
Version: 0.70
Release: 1
License: Artistic 2.0
%define cpan_name DateTime
Summary: A date and time object
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
# http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Patch: %{cpan_name}-0.66-Build.patch
Patch: %{cpan_name}-0.70-Build.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
@ -47,13 +47,14 @@ BuildRequires: perl(DateTime::Locale) >= 0.41
BuildRequires: perl(DateTime::TimeZone) >= 1.09
BuildRequires: perl(Params::Validate) >= 0.76
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Math::Round)
#
Requires: perl(DateTime::Locale) >= 0.41
Requires: perl(DateTime::TimeZone) >= 1.09
Requires: perl(Params::Validate) >= 0.76
Requires: perl(Scalar::Util)
Requires: perl(Time::Local) >= 1.04
Requires: perl(Math::Round)
%description
DateTime is a class for the representation of date/time combinations, and
@ -76,7 +77,7 @@ For infinite datetimes, please see the DateTime::Infinite module.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
%patch -p1
%patch
%endif
%{__chmod} 0644 tools/leap_seconds_header.pl
@ -95,7 +96,7 @@ For infinite datetimes, please see the DateTime::Infinite module.
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f %{name}.files
%defattr(644,root,root,755)