1
0
forked from pool/perl-TimeDate

Accepting request 760579 from devel:languages:perl

OBS-URL: https://build.opensuse.org/request/show/760579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-TimeDate?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2020-01-03 16:35:52 +00:00 committed by Git OBS Bridge
commit 9ee82d3b72
4 changed files with 35 additions and 8 deletions

View File

@ -15,4 +15,5 @@ description: |-
could be extracted from the date string. The $zone element is the timezone
offset in seconds from GMT. An empty array is returned upon failure.
patches:
perl-TimeDate-getdate.patch: -p1

View File

@ -0,0 +1,13 @@
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,3 +1,14 @@
-------------------------------------------------------------------
Thu Jan 2 12:42:40 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Fix test getdate [bsc#1159990]
- Add perl-TimeDate-getdate.patch
-------------------------------------------------------------------
Thu Jan 2 12:42:12 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Update spec file
-------------------------------------------------------------------
Sat May 2 09:53:14 UTC 2015 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-TimeDate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -21,11 +21,12 @@ Version: 2.30
Release: 0
%define cpan_name TimeDate
Summary: TimeDate Perl module
License: Artistic-1.0 or GPL-1.0+
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/TimeDate/
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Patch0: perl-TimeDate-getdate.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@ -51,13 +52,14 @@ strptime(DATE [, ZONE])
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install