From 6126567c4677600dda390e81053508c3a860b18d4746e711503f90732398290f Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Fri, 3 Jan 2020 07:03:17 +0000 Subject: [PATCH] Accepting request 760415 from home:pmonrealgonzalez:branches:devel:languages:perl - Fix test getdate [bsc#1159990] - Add perl-TimeDate-getdate.patch - Update spec file OBS-URL: https://build.opensuse.org/request/show/760415 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TimeDate?expand=0&rev=28 --- cpanspec.yml | 3 ++- perl-TimeDate-getdate.patch | 13 +++++++++++++ perl-TimeDate.changes | 11 +++++++++++ perl-TimeDate.spec | 16 +++++++++------- 4 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 perl-TimeDate-getdate.patch diff --git a/cpanspec.yml b/cpanspec.yml index 6f5c2ee..681eebe 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -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 diff --git a/perl-TimeDate-getdate.patch b/perl-TimeDate-getdate.patch new file mode 100644 index 0000000..32f9739 --- /dev/null +++ b/perl-TimeDate-getdate.patch @@ -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); + diff --git a/perl-TimeDate.changes b/perl-TimeDate.changes index 01bd6d8..f202e47 100644 --- a/perl-TimeDate.changes +++ b/perl-TimeDate.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Jan 2 12:42:40 UTC 2020 - Pedro Monreal Gonzalez + +- Fix test getdate [bsc#1159990] +- Add perl-TimeDate-getdate.patch + +------------------------------------------------------------------- +Thu Jan 2 12:42:12 UTC 2020 - Pedro Monreal Gonzalez + +- Update spec file + ------------------------------------------------------------------- Sat May 2 09:53:14 UTC 2015 - coolo@suse.com diff --git a/perl-TimeDate.spec b/perl-TimeDate.spec index deefb82..8b1b785 100644 --- a/perl-TimeDate.spec +++ b/perl-TimeDate.spec @@ -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