commit 1c0b4f11cddc8298c401d579b9f9a88a23d8e716 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Aug 22 20:04:43 2013 +0100 Initial import (perl-Time-y2038-20100403-2) On many computers, Perl's time functions will not work past the year 2038. This is a design fault in the underlying C libraries Perl uses. Time::y2038 provides replacements for those functions, which will work accurately +/1 142 million years. .gitignore | 1 + perl-Time-y2038.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..91ab57c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Time-y2038-[0-9.]*.tar.gz diff --git a/perl-Time-y2038.spec b/perl-Time-y2038.spec new file mode 100644 index 0000000..668b8bf --- /dev/null +++ b/perl-Time-y2038.spec @@ -0,0 +1,60 @@ +Name: perl-Time-y2038 +Version: 20100403 +Release: 2%{?dist} +Summary: Versions of Perl's time functions which work beyond 2038 +License: GPL+ or Artistic +Group: Development/Libraries +URL: https://metacpan.org/release/Time-y2038 +Source0: http://cpan.metacpan.org/authors/id/M/MS/MSCHWERN/Time-y2038-%{version}.tar.gz +BuildRequires: perl(base) +BuildRequires: perl(Config) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::CBuilder) >= 0.24 +BuildRequires: perl(JSON) >= 2.17 +BuildRequires: perl(lib) +BuildRequires: perl(Module::Build) >= 0.36 +BuildRequires: perl(strict) +BuildRequires: perl(Test::Exception) >= 0.27 +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(Test::Warn) >= 0.11 +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Don't "provide" private Perl libs +%{?perl_default_filter} + +%description +On many computers, Perl's time functions will not work past the year 2038. +This is a design fault in the underlying C libraries Perl uses. Time::y2038 +provides replacements for those functions, which will work accurately ++/1 142 million years. + +%prep +%setup -q -n Time-y2038-%{version} + +%build +perl Build.PL installdirs=vendor optimize="%{optflags}" +./Build + +%install +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +%{_fixperms} %{buildroot} + +%check +./Build test + +%files +%doc Changes +%{perl_vendorarch}/auto/Time/ +%{perl_vendorarch}/Time/ +%{_mandir}/man3/Time::y2038.3pm* +%{_mandir}/man3/Time::y2038::Everywhere.3pm* + +%changelog +* Sun Aug 18 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 20100403-2 +- Sanitize for Fedora submission + +* Fri Aug 16 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 20100403-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..6422a21 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4bb7e43aab24a7c5f06958b553978eee Time-y2038-20100403.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel