2.31 bump

This commit is contained in:
Jitka Plesnikova 2020-01-17 10:18:41 +01:00
parent c35c5ebdd1
commit ef87cd9cfc
4 changed files with 9 additions and 39 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
TimeDate-1.20.tar.gz
/TimeDate-2.30.tar.gz
/TimeDate-2.31.tar.gz

View File

@ -1,32 +0,0 @@
Subject: tests fails in 2020
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-3376-1519211598-1392.0-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 557
similar to https://rt.cpan.org/Public/Bug/Display.html?id=124508
after 2020-01-01 $offset was shifting dates from 2002 to 2102
This trivial patch fixed it for me:
Index: TimeDate-2.30/t/getdate.t
===================================================================
--- TimeDate-2.30.orig/t/getdate.t
+++ TimeDate-2.30/t/getdate.t
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;102733200
!;
require Time::Local;
-my $offset = Time::Local::timegm(0,0,0,1,0,70);
+my $offset = Time::Local::timegm(0,0,0,1,0,1970);
@data = split(/\n/, $data);

View File

@ -1,13 +1,11 @@
Name: perl-TimeDate
Version: 2.30
Version: 2.31
Epoch: 1
Release: 19%{?dist}
Release: 1%{?dist}
Summary: A Perl module for time and date manipulation
License: GPL+ or Artistic
URL: https://metacpan.org/release/TimeDate
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
# Adjust tests to pass 4-digit years to Time::Local, CPAN RT#124509
Patch0: TimeDate-2.30-Pass_4_digit_year_in_tests.patch
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/TimeDate-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
# glibc-common for iconv tool
@ -39,7 +37,6 @@ textual representations of points in time.
%prep
%setup -q -n TimeDate-%{version}
%patch0 -p1
# ChangeLog is ISO-8859-1 encoded
iconv -f iso-8859-1 -t utf8 < ChangeLog > ChangeLog.utf8
mv ChangeLog.utf8 ChangeLog
@ -61,9 +58,13 @@ make test
%doc README ChangeLog
%{perl_vendorlib}/Date/
%{perl_vendorlib}/Time/
%{perl_vendorlib}/TimeDate.pm
%{_mandir}/man3/*.3*
%changelog
* Fri Jan 17 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:2.31-1
- 2.31 bump
* Mon Jan 06 2020 Petr Pisar <ppisar@redhat.com> - 1:2.30-19
- Adjust tests to pass 4-digit years to Time::Local (CPAN RT#124509)
- Modernize a spec file

View File

@ -1 +1 @@
b1d91153ac971347aee84292ed886c1c TimeDate-2.30.tar.gz
SHA512 (TimeDate-2.31.tar.gz) = abee40d77ce4a57e251575b450406b1d26ac369d05899c1630f996b6f3c0c5ac222b84ff04d6fdf4c0763eb0a5bc45a59edadcfb15c73982787c8c17e0ee2a2a