diff --git a/fix-test.patch b/fix-test.patch new file mode 100644 index 0000000..cf6f185 --- /dev/null +++ b/fix-test.patch @@ -0,0 +1,21 @@ +From 9c46fc2657dfae756d17a8a25ab8cd6c124f1f7b 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 + +--- + 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); diff --git a/perl-TimeDate.spec b/perl-TimeDate.spec index 235a953..e687e39 100644 --- a/perl-TimeDate.spec +++ b/perl-TimeDate.spec @@ -1,11 +1,12 @@ Name: perl-TimeDate Version: 2.30 Epoch: 1 -Release: 17 +Release: 18 Summary: Perl5 TimeDate distribution License: GPL+ or Artistic URL: https://metacpan.org/release/TimeDate Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz +Patch0001: fix-test.patch BuildArch: noarch BuildRequires: perl-generators perl(base) perl(Carp) BuildRequires: perl(Exporter) perl(ExtUtils::MakeMaker) perl(strict) @@ -40,7 +41,7 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %{__chmod} -Rf a+rX,u+w,g-w,o-w $RPM_BUILD_ROOT/* %check -#make test +make test %files %{perl_vendorlib}/ @@ -52,6 +53,12 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %changelog +* Thu Feb 06 2020 yanzhihua - 1:2.30-18 +- Type:bugs +- ID:NA +- SUG:NA +- DESC: fix test + * Wed Jan 22 2020 gulining - 1:2.30-17 - Disable test