Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37708313
en ru br
ALT Linux repos
S:6.4-alt3
5.0: 5.4-alt2
4.1: 5.4-alt1
4.0: 5.4-alt1
3.0: 5.3-alt2.1

Group :: Development/Perl
RPM: perl-Date-Calc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: perl-Date-Calc-6.3-alt2.patch
Download


 .gear/rules                                        |    2 +
 .../tags/d8184fcb86839bf176a81234741fa6cb4da1d011  |   13 +++
 .gear/tags/list                                    |    1 +
 lib/Date/Calc.pm                                   |    8 +--
 perl-Date-Calc.spec                                |   87 ++++++++++++++++++++
 5 files changed, 105 insertions(+), 6 deletions(-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..97fa30f
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,2 @@
+tar: @version@:. name=Date-Calc-@version@
+diff: @version@:. . name=perl-Date-Calc-@version@-@release@.patch
diff --git a/.gear/tags/d8184fcb86839bf176a81234741fa6cb4da1d011 b/.gear/tags/d8184fcb86839bf176a81234741fa6cb4da1d011
new file mode 100644
index 0000000..a649a63
--- /dev/null
+++ b/.gear/tags/d8184fcb86839bf176a81234741fa6cb4da1d011
@@ -0,0 +1,13 @@
+object f8f61a534744bd168cdc01a3cb1ee0c727b38a75
+type commit
+tag 6.3
+tagger Alexey Tourbin <at@altlinux.ru> 1272611765 +0400
+
+6.3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.10 (GNU/Linux)
+
+iEYEABECAAYFAkvag7UACgkQfBKgtDjnu0alrwCfejk4g5/GP8dNhhB7uL2J6Ozs
+Y+AAmgNw3iIrDeXwDc9HjOSH+ZxUU2xP
+=/dtb
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..6c54998
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+d8184fcb86839bf176a81234741fa6cb4da1d011 6.3
diff --git a/lib/Date/Calc.pm b/lib/Date/Calc.pm
index 627635a..8d0e611 100644
--- a/lib/Date/Calc.pm
+++ b/lib/Date/Calc.pm
@@ -21,18 +21,14 @@ BEGIN # Re-export imports from Date::Calc::XS or Date::Calc::PP:
     $XS_OK = 0;
     unless ($XS_DISABLE and $XS_DISABLE) # prevent warning "used only once"
     {
-        eval
-        {
             require Date::Calc::XS;
             @EXPORT      = (@Date::Calc::XS::EXPORT);
             @EXPORT_OK   = (@Date::Calc::XS::EXPORT_OK);
             %EXPORT_TAGS = (all => [@EXPORT_OK]);
             Date::Calc::XS->import(@EXPORT,@EXPORT_OK);
-        };
-        if ($@) { die $@ unless ($@ =~ /^Can't locate .*? at /); }
-        else    { $XS_OK = 1; }
+            $XS_OK = 1;
     }
-    unless ($XS_OK)
+    else
     {
         require Date::Calc::PP;
         @EXPORT      = (@Date::Calc::PP::EXPORT);
diff --git a/perl-Date-Calc.spec b/perl-Date-Calc.spec
new file mode 100644
index 0000000..4fdeaff
--- /dev/null
+++ b/perl-Date-Calc.spec
@@ -0,0 +1,87 @@
+%define dist Date-Calc
+Name: perl-%dist
+Version: 6.3
+Release: alt2
+
+Summary: %dist module for perl
+License: GPL or Artistic
+Group: Development/Perl
+
+URL: %CPAN %dist
+Source: %dist-%version.tar
+Patch: %name-%version-%release.patch
+
+BuildArch: noarch
+
+# Automatically added by buildreq on Fri Apr 30 2010 (-bi)
+BuildRequires: perl-Bit-Vector perl-Date-Calc-XS perl-devel
+
+%description
+This package consists of a C library (intended to make life easier for C
+developers) and a Perl module to access this library from Perl.
+
+The library provides all sorts of date calculations based on the Gregorian
+calendar (the one used in all western countries today), thereby complying
+with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to
+some extent, ISO 8601 (where applicable).
+
+The package is designed as an efficient (and fast) toolbox, not a bulky
+ready-made application. It provides extensive documentation and examples
+of use, multi-language support and special functions for business needs.
+
+%prep
+%setup -q -n %dist-%version
+%patch -p1
+
+%build
+%perl_vendor_build
+
+%install
+%perl_vendor_install
+
+%files
+%doc	CHANGES.txt CREDITS.txt README.txt
+%dir	%perl_vendor_privlib/Date
+	%perl_vendor_privlib/Date/Calc.pm
+%doc	%perl_vendor_privlib/Date/Calc.pod
+%dir	%perl_vendor_privlib/Date/Calc
+	%perl_vendor_privlib/Date/Calc/*.pm
+%doc	%perl_vendor_privlib/Date/Calc/*.pod
+	%perl_vendor_privlib/Date/Calendar.pm
+%doc	%perl_vendor_privlib/Date/Calendar.pod
+%dir	%perl_vendor_privlib/Date/Calendar
+	%perl_vendor_privlib/Date/Calendar/*.pm
+%doc	%perl_vendor_privlib/Date/Calendar/*.pod
+
+%changelog
+* Fri Apr 30 2010 Alexey Tourbin <at@altlinux.ru> 6.3-alt2
+- enabled dependency on Date::Calc::XS
+
+* Fri Apr 30 2010 Alexey Tourbin <at@altlinux.ru> 6.3-alt1
+- 5.4 -> 6.3
+
+* Mon Apr 13 2009 Alexey Tourbin <at@altlinux.ru> 5.4-alt2
+- rebuild
+
+* Wed Oct 25 2006 Alexey Tourbin <at@altlinux.ru> 5.4-alt1
+- 5.3 -> 5.4
+- imported sources into git and built with gear
+- use -fvisibility=hidden to hide underlying C library symbols
+- use PERL_NO_GET_CONTEXT for some marginal performance gain
+- for the same reason, use XSLoader instead of DynaLoader
+
+* Sat Feb 19 2005 ALT QA Team Robot <qa-robot@altlinux.org> 5.3-alt2.1
+- Rebuilt with rpm-build-perl-0.5.1.
+
+* Mon Nov 04 2002 Stanislav Ievlev <inger@altlinux.ru> 5.3-alt2
+- rebuild with new perl
+
+* Mon Sep 30 2002 Igor Homyakov <homyakov at altlinux dot ru> 5.3-alt1
+- 5.3
+
+* Tue Sep 17 2002 Igor Homyakov <homyakov at altlinux dot ru> 5.1-alt1
+- 5.1-alt1 
+- cleanup spec file
+
+* Wed Nov 14 2001 Igor Homyakov <homyakov@altlinux.ru> alt1 
+- Build package for ALTLinux 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin