Applied TimeDate-2.30-Update-Test-t-getdate.t.patch to fix tests

i8-stream-5.24 changed/i8-stream-5.24/perl-TimeDate-2.30-13.module_el8.1.0+224+75158c84.inferit
Eugene Zamriy 9 months ago
parent 1ece3cfc3f
commit 59daf54150
Signed by: ezamriy
GPG Key ID: 7EBF95C7DCFA496C

@ -0,0 +1,31 @@
From 36d47308a51350905ebbf01020fa88dcc3bbe3e1 Mon Sep 17 00:00:00 2001
From: Prajith <me@prajith.in>
Date: Thu, 2 Jan 2020 11:51:23 +0530
Subject: [PATCH] Update Test t/getdate.t
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
(cherry picked from commit 9c46fc2657dfae756d17a8a25ab8cd6c124f1f7b)
Signed-off-by: Nicolas Rochelemagne <rochelemagne@cpanel.net>
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/getdate.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/getdate.t b/t/getdate.t
index 31b577b..82c5850 100644
--- a/t/getdate.t
+++ b/t/getdate.t
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;1027332000
!;
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);
--
2.21.1

@ -1,12 +1,14 @@
Name: perl-TimeDate
Version: 2.30
Epoch: 1
Release: 13%{?dist}
Release: 13%{?dist}.inferit
Summary: A Perl module for time and date manipulation
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/TimeDate/
Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
# Adjusts tests to year 2020, bug #1821729, in 2.31.
Patch0: TimeDate-2.30-Update-Test-t-getdate.t.patch
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(base)
@ -30,6 +32,7 @@ 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
@ -55,6 +58,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
* Thu Apr 25 2024 Eugene Zamriy <ezamriy@msvsphere-os.ru> - 1:2.30-13.inferit
- Applied TimeDate-2.30-Update-Test-t-getdate.t.patch to fix tests
* Thu Apr 18 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1:2.30-13
- Rebuilt for MSVSphere 8.9

Loading…
Cancel
Save