This commit is contained in:
daidai_is_here 2020-02-06 10:58:40 +08:00
parent 0678129056
commit 7d775ee4a7
2 changed files with 30 additions and 2 deletions

21
fix-test.patch Normal file
View File

@ -0,0 +1,21 @@
From 9c46fc2657dfae756d17a8a25ab8cd6c124f1f7b 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
---
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);

View File

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