Sync from SUSE:SLFO:Main perl-TimeDate revision 3e5f46c5f8fdc7efc59351535ea28683

This commit is contained in:
Adrian Schröter 2024-05-03 19:03:19 +02:00
commit 8a02eac06d
5 changed files with 324 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
TimeDate-2.33.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

16
cpanspec.yml Normal file
View File

@ -0,0 +1,16 @@
---
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.

211
perl-TimeDate.changes Normal file
View File

@ -0,0 +1,211 @@
-------------------------------------------------------------------
Wed May 20 03:15:45 UTC 2020 - Tina Müller <timueller+perl@suse.de>
updated to 2.33
see /usr/share/doc/packages/perl-TimeDate/ChangeLog
2.33 -- Wed May 19 11:34:00 MT 2020
* Remove PAX Headers in tarball using GNU tar
-------------------------------------------------------------------
Thu Mar 5 03:11:20 UTC 2020 - <timueller+perl@suse.de>
- updated to 2.32
see /usr/share/doc/packages/perl-TimeDate/ChangeLog
2.32 -- Wed Mar 04 14:41:00 MT 2020
* Fix t/date.t to run on leap years [arc]
-------------------------------------------------------------------
Fri Jan 17 10:33:12 UTC 2020 - Tina Müller <tina.mueller@suse.com>
- Remove patch perl-TimeDate-getdate.patch (source was fixed)
-------------------------------------------------------------------
Fri Jan 17 03:11:39 UTC 2020 - <timueller+perl@suse.de>
- updated to 2.31
see /usr/share/doc/packages/perl-TimeDate/ChangeLog
2.31 -- Thu Jan 16 14:00:00 MT 2020
* Fix year 2020 bug from t/getdate.t [Prajith]
* Fix warnings from t/date.t
* Fix pod issue in lib/Date/Parse.pm
* Fix for French language using English day suffixes in %o [mitchjacksontech]
* RT#84075: Fix Date::Parse::str2time century issue. [perlpilot]
* Adds Occitan language. [Quenty31]
* Migrate GitHub repo and bugtracker to atoomic/perl-TimeDate
-------------------------------------------------------------------
Sat Jan 11 04:10:44 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
- Extend perl-TimeDate-getdate.patch to fix another year-2020 bug
(bsc#1159990)
-------------------------------------------------------------------
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
- 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
- standardized "Authors:" format in description of perl-TimeDate.spec
-------------------------------------------------------------------
Tue Mar 15 10:08:12 UTC 2011 - cfarrell@novell.com
- license update: GPL+ or Artistic
License is the same as Perl which expands to GPL+ or Artistic. See README, Format.pm, Parse.pm
-------------------------------------------------------------------
Wed Feb 2 13:41:52 UTC 2011 - vcizek@novell.com
- bzipped source tarball
-------------------------------------------------------------------
Tue Nov 30 19:20:55 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Tue Apr 20 22:07:57 UTC 2010 - chris@computersalat.de
- fix build
o reworked TimeDate-deprecated_array_use.patch (was for timegm)
removed obsolete part (timegm was replaced by timelocal)
- cleanup spec
o add missing Url
- fix deps for perl-macros
- removed .packlist, perllocal.pod files
> noarch package
- rpmlint
o script-without-shebang > 644
-------------------------------------------------------------------
Mon Apr 19 13:51:59 CEST 2010 - dmueller@suse.de
- update to 1.20:
* Typo => s/timezome/timezone/ [yanick]
* RT#52387 Fix %s formating to use timelocal when no timezone is given
* RT#51664 fix str2time('16 Oct 09') to not give a negative result
-------------------------------------------------------------------
Fri Sep 25 22:00:57 UTC 2009 - larry+opensuse@l2g.to
- New upstream version 1.19
* Add support for dates like Jul-13-1999 (Brett Warden)
* Added Icelandic language (Tomas Edwardsson)
* Added Romanian language (Doru Petrescu)
* Added Russian language (Denis Poznyakov & Danil Pismenny)
* Added Turkish language (Burak Gursoy)
* Added Spanish language (Adrian Mugnolo)
* Added Chinese language (Kang-min Liu)
* Support parsing dates like 2002-02-26-10:37:21.141 as used by lpd
* Support Z timezone when only the time is specified
* Added METDST to Time::Zone
* Added AKST/AKDT to Time::Zone
-------------------------------------------------------------------
Fri Jul 31 16:21:55 CEST 2009 - lrupp@suse.de
- fix podfile
-------------------------------------------------------------------
Sat Jul 25 19:45:30 CEST 2009 - chris@computersalat.de
- spec mods
* removed ^----------
* removed ^#---------
-------------------------------------------------------------------
Tue Jun 23 18:37:55 CEST 2009 - chris@computersalat.de
- added perl-macros
- fixed summary, description
-------------------------------------------------------------------
Wed Jan 25 21:40:00 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sun Jan 11 10:27:15 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Fri Aug 22 15:55:40 CEST 2003 - mjancar@suse.cz
- require the perl version we build with
-------------------------------------------------------------------
Mon Jul 21 11:36:19 CEST 2003 - rommel@suse.de
- update to version 1.16
- using perl_vendorlib and perl_vendorarch instead of
perl_sitearch and perl_archlib
-------------------------------------------------------------------
Wed Jun 18 09:03:37 CEST 2003 - coolo@suse.de
- package directories
-------------------------------------------------------------------
Mon May 26 00:25:54 CEST 2003 - ro@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Thu Jan 16 18:03:10 CET 2003 - rommel@suse.de
- update to version 1.14
- fixed depricated array use in timegm()
-------------------------------------------------------------------
Thu Aug 8 18:52:19 CEST 2002 - mls@suse.de
- use sitearch macro
-------------------------------------------------------------------
Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de
- remove race in .packlist generation
-------------------------------------------------------------------
Tue Nov 7 14:12:56 CET 2000 - grimmer@suse.de
- added .packlist to file list and removed BuildRoot path
-------------------------------------------------------------------
Tue Nov 7 10:34:18 CET 2000 - grimmer@suse.de
- removed BuildRoot path from perllocal.pod
-------------------------------------------------------------------
Mon Nov 6 19:53:03 CET 2000 - grimmer@suse.de
- initial version (1.10)

71
perl-TimeDate.spec Normal file
View File

@ -0,0 +1,71 @@
#
# spec file for package perl-TimeDate
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-TimeDate
Version: 2.33
Release: 0
%define cpan_name TimeDate
Summary: TimeDate Perl module
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%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.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog