1
0
forked from pool/perl-TimeDate

Accepting request 532555 from devel:languages:perl

- updated to 2.30
   see /usr/share/doc/packages/perl-TimeDate/ChangeLog
  2.30 -- Mon Feb 18 13:31:03 CST 2013
    * Syncing distribution version number with Date::Parse, not functional changes
- remove TimeDate-deprecated_array_use.patch and TimeDate-podfile-patch
  and regenerat with cpanspec

OBS-URL: https://build.opensuse.org/request/show/532555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-TimeDate?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2017-10-11 20:55:31 +00:00 committed by Git OBS Bridge
commit 1422968048
7 changed files with 58 additions and 71 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56841be1f413504a0ecab535de32c085d33eba8a752a60f6c543570cf7513827
size 27982

3
TimeDate-2.30.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86
size 31109

View File

@ -1,12 +0,0 @@
diff -ruN TimeDate-1.20-orig/lib/Date/Format.pm TimeDate-1.20/lib/Date/Format.pm
--- TimeDate-1.20-orig/lib/Date/Format.pm 2009-12-12 12:30:06.000000000 +0000
+++ TimeDate-1.20/lib/Date/Format.pm 2010-04-20 21:15:56.049364922 +0000
@@ -83,7 +83,7 @@
$tzname = sprintf("%+05d",$tzname)
unless($tzname =~ /\D/);
- $epoch = timegm(@{$time}[0..5]);
+ $epoch = timegm( @$time[0], @$time[1], @$time[2], @$time[3], @$time[4], @$time[5] );
@$me = gmtime($epoch + tz_offset($tzname) - tz_offset());
}

View File

@ -1,11 +0,0 @@
--- lib/Date/Parse.pm.orig 2009-09-19 09:04:02.000000000 -0700
+++ lib/Date/Parse.pm 2009-09-25 14:35:09.000000000 -0700
@@ -322,6 +322,8 @@
the timezone offset in seconds from GMT. An empty array is returned upon
failure.
+=back
+
=head1 MULTI-LANGUAGE SUPPORT
Date::Parse is capable of parsing dates in several languages, these include

18
cpanspec.yml Normal file
View File

@ -0,0 +1,18 @@
---
description: |-
Date::Parse provides two routines for parsing date strings into time values.
str2time(DATE [, ZONE])
str2time parses DATE and returns a unix time value, or undef upon failure.
ZONE, if given, specifies the timezone to assume when parsing if the date
string does not specify a timezome.
strptime(DATE [, ZONE])
strptime takes the same arguments as str2time but returns an array of values
($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they
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.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sat May 2 09:53:14 UTC 2015 - coolo@suse.com
- updated to 2.30
see /usr/share/doc/packages/perl-TimeDate/ChangeLog
2.30 -- Mon Feb 18 13:31:03 CST 2013
* Syncing distribution version number with Date::Parse, not functional changes
- remove TimeDate-deprecated_array_use.patch and TimeDate-podfile-patch
and regenerat with cpanspec
-------------------------------------------------------------------
Tue Aug 30 18:19:41 UTC 2011 - andrea.turrini@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-TimeDate
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,77 +15,57 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-TimeDate
Version: 2.30
Release: 0
%define cpan_name TimeDate
Summary: Parse date strings into time values
Version: 1.20
Release: 13
License: GPL-1.0+ or Artistic-1.0
Summary: TimeDate Perl module
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/TimeDate
Source: %{cpan_name}-%{version}.tar.bz2
Patch1: %{cpan_name}-deprecated_array_use.patch
Patch2: %{cpan_name}-podfile-patch
Url: http://search.cpan.org/dist/TimeDate/
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
Provides: %{cpan_name}
%{perl_requires}
%description
Date::Parse provides two routines for parsing date strings into time values.
Date::Parse provides two routines for parsing date strings into time values.
str2time(DATE [, ZONE])
str2time(DATE [, ZONE])
str2time parses DATE and returns a unix time value, or undef upon failure.
ZONE, if given, specifies the timezone to assume when parsing if the date
string does not specify a timezome.
str2time parses DATE and returns a unix time value, or undef upon failure.
ZONE, if given, specifies the timezone to assume when parsing if the date
string does not specify a timezome.
strptime(DATE [, ZONE])
strptime(DATE [, ZONE])
strptime takes the same arguments as str2time but returns an array of values
($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they
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.
Authors:
--------
Graham Barr <gbarr@pobox.com>
strptime takes the same arguments as str2time but returns an array of values
($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch1 -p1
%patch2
# script-without-shebang
find -type f -exec chmod 0644 {} \;
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?jobs:-j%jobs}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc ChangeLog README SIGNATURE
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog