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:
commit
1422968048
@ -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
3
TimeDate-2.30.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86
|
||||||
|
size 31109
|
@ -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());
|
|
||||||
}
|
|
@ -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
18
cpanspec.yml
Normal 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.
|
||||||
|
|
||||||
|
|
@ -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
|
Tue Aug 30 18:19:41 UTC 2011 - andrea.turrini@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-TimeDate
|
# 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
|
# 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
|
||||||
@ -15,77 +15,57 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: perl-TimeDate
|
Name: perl-TimeDate
|
||||||
|
Version: 2.30
|
||||||
|
Release: 0
|
||||||
%define cpan_name TimeDate
|
%define cpan_name TimeDate
|
||||||
Summary: Parse date strings into time values
|
Summary: TimeDate Perl module
|
||||||
Version: 1.20
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Release: 13
|
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/TimeDate
|
Url: http://search.cpan.org/dist/TimeDate/
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/%{cpan_name}-%{version}.tar.gz
|
||||||
Patch1: %{cpan_name}-deprecated_array_use.patch
|
Source1: cpanspec.yml
|
||||||
Patch2: %{cpan_name}-podfile-patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
Provides: %{cpan_name}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%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.
|
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
|
ZONE, if given, specifies the timezone to assume when parsing if the date
|
||||||
string does not specify a timezome.
|
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
|
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
|
($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
|
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.
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Graham Barr <gbarr@pobox.com>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch1 -p1
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
%patch2
|
|
||||||
|
|
||||||
# script-without-shebang
|
|
||||||
find -type f -exec chmod 0644 {} \;
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
# do not perl_process_packlist (noarch)
|
%perl_process_packlist
|
||||||
# remove .packlist file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
||||||
# remove perllocal.pod file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
# normally you only need to check for doc files
|
%defattr(-,root,root,755)
|
||||||
%defattr(-,root,root)
|
%doc ChangeLog README
|
||||||
%doc ChangeLog README SIGNATURE
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user