Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37340617
en ru br
Репозитории ALT
S:1.59-alt1
5.1: 0.49-alt1
4.1: 0.42-alt1
4.0: 0.42-alt1
www.altlinux.org/Changes

Группа :: Разработка/Perl
Пакет: perl-DateTime

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: perl-DateTime-0.42-alt1.patch
Скачать


 .gear/rules                                        |    2 +
 .../tags/d7c5b665adbd6448925dc0abe251f78561595496  |   13 +++++
 .gear/tags/list                                    |    1 +
 lib/DateTime.pm                                    |   36 +++----------
 perl-DateTime.spec                                 |   56 ++++++++++++++++++++
 t/39no-so.t                                        |    3 +-
 6 files changed, 81 insertions(+), 30 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/d7c5b665adbd6448925dc0abe251f78561595496 b/.gear/tags/d7c5b665adbd6448925dc0abe251f78561595496
new file mode 100644
index 0000000..6f96a91
--- /dev/null
+++ b/.gear/tags/d7c5b665adbd6448925dc0abe251f78561595496
@@ -0,0 +1,13 @@
+object ed15a0aabea372478a4f56b039feac19998ab7ee
+type commit
+tag 0.42
+tagger Alexey Tourbin <at@altlinux.ru> 1204706769 +0300
+
+0.42
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.8 (GNU/Linux)
+
+iEYEABECAAYFAkfOXdEACgkQfBKgtDjnu0YV7QCfQQiubwREgnp8gAuVuugdvMHm
+CvkAnjsCvGpO6CXZVldrgJ1bkvJm73sn
+=iHnx
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..5811e7b
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+d7c5b665adbd6448925dc0abe251f78561595496 0.42
diff --git a/lib/DateTime.pm b/lib/DateTime.pm
index 611fb54..02af817 100644
--- a/lib/DateTime.pm
+++ b/lib/DateTime.pm
@@ -13,39 +13,17 @@ BEGIN
     $VERSION = '0.42';
 
     my $loaded = 0;
-    unless ( $ENV{PERL_DATETIME_PP} )
+    if ( $ENV{PERL_DATETIME_PP} )
     {
-        local $@;
-	eval
-	{
-	    if ( $] >= 5.006 )
-	    {
-		require XSLoader;
-		XSLoader::load( 'DateTime', $DateTime::VERSION );
-	    }
-	    else
-	    {
-		require DynaLoader;
-		@DateTime::ISA = 'DynaLoader';
-		DateTime->bootstrap( $DateTime::VERSION );
-	    }
-
-            $DateTime::IsPurePerl = 0;
-	};
-
-	die $@ if $@ && $@ !~ /object version|loadable object/;
-
-        $loaded = 1 unless $@;
-    }
-
-    if ($loaded)
-    {
-        require DateTimePPExtra
-            unless defined &DateTime::_normalize_tai_seconds;
+	require DateTimePP;
     }
     else
     {
-        require DateTimePP;
+	require XSLoader;
+	XSLoader::load( __PACKAGE__, $VERSION );
+
+	require DateTimePPExtra
+	    unless defined &DateTime::_normalize_tai_seconds;
     }
 }
 
diff --git a/perl-DateTime.spec b/perl-DateTime.spec
new file mode 100644
index 0000000..5b23f3c
--- /dev/null
+++ b/perl-DateTime.spec
@@ -0,0 +1,56 @@
+%define dist DateTime
+Name: perl-%dist
+Version: 0.42
+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
+
+# Automatically added by buildreq on Wed Mar 05 2008
+BuildRequires: perl-DateTime-Locale perl-DateTime-TimeZone perl-Storable perl-Test-Pod
+
+%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
+* Wed Mar 05 2008 Alexey Tourbin <at@altlinux.ru> 0.42-alt1
+- 0.37 -> 0.42
+
+* Mon Apr 09 2007 Alexey Tourbin <at@altlinux.ru> 0.37-alt1
+- 0.34 -> 0.37
+
+* Tue Sep 05 2006 Alexey Tourbin <at@altlinux.ru> 0.34-alt1
+- 0.33 -> 0.34
+
+* Wed Aug 09 2006 Alexey Tourbin <at@altlinux.ru> 0.33-alt1
+- 0.30 -> 0.33
+
+* Wed Apr 19 2006 Alexey Tourbin <at@altlinux.ru> 0.30-alt1
+- 0.29.01 -> 0.30
+
+* Sun Aug 21 2005 Alexey Tourbin <at@altlinux.ru> 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';
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin