.gear/rules | 2 + .../tags/d6d5f05a4dec7e8845d4ca5d275db945e1fbdd3a | 13 ++++ .gear/tags/list | 1 + lib/DateTime.pm | 18 +---- perl-DateTime.spec | 73 ++++++++++++++++++++ t/39no-so.t | 3 +- 6 files changed, 94 insertions(+), 16 deletions(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..1eb3f3f --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: @version@:. name=DateTime-@version@ +diff: @version@:. . name=perl-DateTime-@version@-@release@.patch diff --git a/.gear/tags/d6d5f05a4dec7e8845d4ca5d275db945e1fbdd3a b/.gear/tags/d6d5f05a4dec7e8845d4ca5d275db945e1fbdd3a new file mode 100644 index 0000000..b9107a9 --- /dev/null +++ b/.gear/tags/d6d5f05a4dec7e8845d4ca5d275db945e1fbdd3a @@ -0,0 +1,13 @@ +object 00013a49c28640d6a3b1c5f15621da6f9c220788 +type commit +tag 0.49 +tagger Alexey Tourbin 1241994548 +0400 + +0.49 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.9 (GNU/Linux) + +iEYEABECAAYFAkoHVTQACgkQfBKgtDjnu0apnACfb2CdI8OYV9FecGF2qE+PRBQ3 +S7gAnj5+5OyYeHLrQw4c/eqbRJkxmyQY +=hEsH +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..1662c8a --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +d6d5f05a4dec7e8845d4ca5d275db945e1fbdd3a 0.49 diff --git a/lib/DateTime.pm b/lib/DateTime.pm index 5106aa8..2639607 100644 --- a/lib/DateTime.pm +++ b/lib/DateTime.pm @@ -14,25 +14,13 @@ BEGIN { $VERSION = '0.49'; - my $loaded = 0; unless ( $ENV{PERL_DATETIME_PP} ) { - local $@; - eval - { - require XSLoader; - XSLoader::load( 'DateTime', $DateTime::VERSION ); + require XSLoader; + XSLoader::load( 'DateTime', $DateTime::VERSION ); - $DateTime::IsPurePerl = 0; - }; + $DateTime::IsPurePerl = 0; - die $@ if $@ && $@ !~ /object version|loadable object/; - - $loaded = 1 unless $@; - } - - if ($loaded) - { require DateTimePPExtra unless defined &DateTime::_normalize_tai_seconds; } diff --git a/perl-DateTime.spec b/perl-DateTime.spec new file mode 100644 index 0000000..e9a0c8d --- /dev/null +++ b/perl-DateTime.spec @@ -0,0 +1,73 @@ +%define dist DateTime +Name: perl-%dist +Version: 0.49 +Release: alt1 + +Summary: DateTime base objects +License: GPL or Artistic +Group: Development/Perl + +URL: %CPAN %dist +Source: %dist-%version.tar +Patch: %name-%version-%release.patch + +# break dependency loop +Requires: perl-DateTime-TimeZone + +# Automatically added by buildreq on Mon May 11 2009 +BuildRequires: perl-DateTime-Locale perl-DateTime-TimeZone perl-Storable perl-Test-Pod perl-Test-Warn + +%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/faq.html. + +%prep +%setup -q -n %dist-%version +%patch -p1 + +%build +%perl_vendor_build --xs + +%install +%perl_vendor_install + +%files +%doc Changes README +%perl_vendor_archlib/DateTime* +%perl_vendor_autolib/DateTime* + +%changelog +* Mon May 11 2009 Alexey Tourbin 0.49-alt1 +- 0.47 -> 0.49 + +* Tue Mar 24 2009 Alexey Tourbin 0.47-alt1 +- 0.4401 -> 0.47 +- DateTime.pm no longer requires Time/y2038.pm + +* Thu Nov 06 2008 Alexey Tourbin 0.44-alt1 +- 0.4302 -> 0.4401 +- DateTime.pm now requires Time/y2038.pm + +* Thu Jun 19 2008 Alexey Tourbin 0.43-alt1 +- 0.42 -> 0.4302 + +* Wed Mar 05 2008 Alexey Tourbin 0.42-alt1 +- 0.37 -> 0.42 + +* Mon Apr 09 2007 Alexey Tourbin 0.37-alt1 +- 0.34 -> 0.37 + +* Tue Sep 05 2006 Alexey Tourbin 0.34-alt1 +- 0.33 -> 0.34 + +* Wed Aug 09 2006 Alexey Tourbin 0.33-alt1 +- 0.30 -> 0.33 + +* Wed Apr 19 2006 Alexey Tourbin 0.30-alt1 +- 0.29.01 -> 0.30 + +* Sun Aug 21 2005 Alexey Tourbin 0.29.01-alt1 +- initial revision diff --git a/t/39no-so.t b/t/39no-so.t index d1e7df2..6a1fc15 100644 --- a/t/39no-so.t +++ b/t/39no-so.t @@ -2,7 +2,8 @@ use strict; -use Test::More tests => 3; +use Test::More; +plan skip_all => "these tests are bullshit"; no warnings 'once', 'redefine';