Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37041195
en ru br
ALT Linux repos
S:6.4-alt6

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: perl-Date-Calc-XS-6.2-alt1.1.patch
Download


 .gear/rules                                        |    2 +
 .../tags/e3077fd9b66ba1bfc04f27b9c72424e97f3d86a1  |   13 +++++
 .gear/tags/list                                    |    1 +
 XS.xs                                              |    1 +
 lib/Date/Calc/XS.pm                                |    7 +--
 perl-Date-Calc-XS.spec                             |   49 ++++++++++++++++++++
 6 files changed, 69 insertions(+), 4 deletions(-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..edc9941
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,2 @@
+tar: @version@:. name=Date-Calc-XS-@version@
+diff: @version@:. . name=perl-Date-Calc-XS-@version@-@release@.patch
diff --git a/.gear/tags/e3077fd9b66ba1bfc04f27b9c72424e97f3d86a1 b/.gear/tags/e3077fd9b66ba1bfc04f27b9c72424e97f3d86a1
new file mode 100644
index 0000000..7280c54
--- /dev/null
+++ b/.gear/tags/e3077fd9b66ba1bfc04f27b9c72424e97f3d86a1
@@ -0,0 +1,13 @@
+object 5322aa5591c618c7ff738614cd9f5445a23ee0be
+type commit
+tag 6.2
+tagger Alexey Tourbin <at@altlinux.ru> 1272611395 +0400
+
+6.2
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.10 (GNU/Linux)
+
+iEYEABECAAYFAkvagkMACgkQfBKgtDjnu0Y8/QCeNsM9WlBEShT2MU1b+Wgf4Pf3
+IRIAoJId05D5WJAhoRBtC7VNLbdAA4R2
+=evZH
+-----END PGP SIGNATURE-----
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..fcfb294
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+e3077fd9b66ba1bfc04f27b9c72424e97f3d86a1 6.2
diff --git a/XS.xs b/XS.xs
index e41d832..aba8484 100644
--- a/XS.xs
+++ b/XS.xs
@@ -11,6 +11,7 @@
 /*****************************************************************************/
 
 
+#define PERL_NO_GET_CONTEXT     /* we want efficiency */
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
diff --git a/lib/Date/Calc/XS.pm b/lib/Date/Calc/XS.pm
index a4bc1b4..5f9dcfb 100644
--- a/lib/Date/Calc/XS.pm
+++ b/lib/Date/Calc/XS.pm
@@ -18,9 +18,7 @@ use vars qw(@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);
 use Carp::Clan qw(^Date::);
 
 require Exporter;
-require DynaLoader;
-
-@ISA = qw(Exporter DynaLoader);
+@ISA = qw(Exporter);
 
 @EXPORT = qw();
 
@@ -107,7 +105,8 @@ require DynaLoader;
 
 $VERSION = '6.2';
 
-bootstrap Date::Calc::XS $VERSION;
+require XSLoader;
+XSLoader::load(__PACKAGE__, $VERSION);
 
 sub Decode_Date_EU2
 {
diff --git a/perl-Date-Calc-XS.spec b/perl-Date-Calc-XS.spec
new file mode 100644
index 0000000..153dd7f
--- /dev/null
+++ b/perl-Date-Calc-XS.spec
@@ -0,0 +1,49 @@
+%define dist Date-Calc-XS
+Name: perl-%dist
+Version: 6.2
+Release: alt1.1
+
+Summary: XS wrapper and C library plug-in for Date::Calc
+License: GPL or Artistic
+Group: Development/Perl
+
+URL: %CPAN %dist
+Source: %dist-%version.tar
+Patch: %name-%version-%release.patch
+
+# Automatically added by buildreq on Mon Sep 20 2010
+BuildRequires: perl-Bit-Vector perl-devel
+
+%description
+This package provides all sorts of date calculations based on the Gregorian
+calendar (the one used in all western countries today).
+
+%prep
+%setup -q -n %dist-%version
+%patch -p1
+
+%build
+%def_disable test
+%perl_vendor_build
+
+%install
+%perl_vendor_install
+
+%files
+%doc	CHANGES.txt CREDITS.txt README.txt
+%dir	%perl_vendor_archlib/Date
+%dir	%perl_vendor_archlib/Date/Calc
+	%perl_vendor_archlib/Date/Calc/XS.pm
+%doc	%perl_vendor_archlib/Date/Calc/XS.pod
+%dir	%perl_vendor_autolib/Date
+%dir	%perl_vendor_autolib/Date/Calc
+%dir	%perl_vendor_autolib/Date/Calc/XS
+	%perl_vendor_autolib/Date/Calc/XS/XS.so
+
+%changelog
+* Mon Sep 20 2010 Alexey Tourbin <at@altlinux.ru> 6.2-alt1.1
+- rebuilt for perl-5.12
+- disabled build dependency on perl-Date-Calc, for bootstrap
+
+* Fri Apr 30 2010 Alexey Tourbin <at@altlinux.ru> 6.2-alt1
+- initial revision
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin