2007-01-16 00:32:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-TimeDate (Version 1.16)
|
|
|
|
#
|
2009-06-18 17:14:22 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:32:03 +01:00
|
|
|
#
|
2009-06-18 17:14:22 +02:00
|
|
|
# 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 http://bugs.opensuse.org/
|
2007-01-16 00:32:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 17:14:22 +02:00
|
|
|
|
|
|
|
Name: perl-TimeDate
|
2009-07-29 16:26:46 +02:00
|
|
|
%define cpan_name TimeDate
|
|
|
|
Summary: Parse date strings into time values
|
|
|
|
Version: 1.16
|
|
|
|
Release: 258
|
|
|
|
License: Artistic License ..
|
2009-06-18 17:14:22 +02:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
AutoReqProv: on
|
2009-07-29 16:26:46 +02:00
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
|
|
Patch: %{cpan_name}-deprecated_array_use.patch
|
2009-06-18 17:14:22 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-29 16:26:46 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Provides: %{cpan_name}
|
2007-01-16 00:32:03 +01:00
|
|
|
|
|
|
|
%description
|
2009-07-29 16:26:46 +02:00
|
|
|
Date::Parse provides two routines for parsing date strings into time values.
|
2007-01-16 00:32:03 +01:00
|
|
|
|
2009-07-29 16:26:46 +02:00
|
|
|
str2time(DATE [, ZONE])
|
2007-01-16 00:32:03 +01:00
|
|
|
|
2009-07-29 16:26:46 +02:00
|
|
|
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.
|
2007-01-16 00:32:03 +01:00
|
|
|
|
2009-07-29 16:26:46 +02:00
|
|
|
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>
|
2007-01-16 00:32:03 +01:00
|
|
|
|
|
|
|
%prep
|
2009-07-29 16:26:46 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-16 00:32:03 +01:00
|
|
|
%patch
|
|
|
|
|
|
|
|
%build
|
2009-07-29 16:26:46 +02:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2007-01-16 00:32:03 +01:00
|
|
|
|
|
|
|
%install
|
2009-07-29 16:26:46 +02:00
|
|
|
%perl_make_install
|
2007-01-16 00:32:03 +01:00
|
|
|
%perl_process_packlist
|
2009-07-29 16:26:46 +02:00
|
|
|
%perl_gen_filelist
|
2007-01-16 00:32:03 +01:00
|
|
|
|
|
|
|
%clean
|
2009-07-29 16:26:46 +02:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-16 00:32:03 +01:00
|
|
|
|
2009-07-29 16:26:46 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-,root,root)
|
2007-01-16 00:32:03 +01:00
|
|
|
%doc ChangeLog README
|
|
|
|
|
2009-06-18 17:14:22 +02:00
|
|
|
%changelog
|