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:
commit
9ee82d3b72
@ -15,4 +15,5 @@ description: |-
|
|||||||
could be extracted from the date string. The $zone element is the timezone
|
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.
|
offset in seconds from GMT. An empty array is returned upon failure.
|
||||||
|
|
||||||
|
patches:
|
||||||
|
perl-TimeDate-getdate.patch: -p1
|
||||||
|
13
perl-TimeDate-getdate.patch
Normal file
13
perl-TimeDate-getdate.patch
Normal 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);
|
||||||
|
|
@ -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
|
Sat May 2 09:53:14 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-TimeDate
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Release: 0
|
||||||
%define cpan_name TimeDate
|
%define cpan_name TimeDate
|
||||||
Summary: TimeDate Perl module
|
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
|
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
|
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/%{cpan_name}-%{version}.tar.gz
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
|
Patch0: perl-TimeDate-getdate.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@ -51,13 +52,14 @@ strptime(DATE [, ZONE])
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user