diff --git a/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch b/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch new file mode 100644 index 0000000..105f432 --- /dev/null +++ b/SOURCES/TimeDate-2.30-Update-Test-t-getdate.t.patch @@ -0,0 +1,31 @@ +From 36d47308a51350905ebbf01020fa88dcc3bbe3e1 Mon Sep 17 00:00:00 2001 +From: Prajith +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 +Signed-off-by: Petr Písař +--- + 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 + diff --git a/SPECS/perl-TimeDate.spec b/SPECS/perl-TimeDate.spec index 5f26107..645c749 100644 --- a/SPECS/perl-TimeDate.spec +++ b/SPECS/perl-TimeDate.spec @@ -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 - 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 - 1:2.30-13 - Rebuilt for MSVSphere 8.9