This commit is contained in:
parent
c4c9a1329a
commit
81e45bb3bf
39
cpanspec.yml
39
cpanspec.yml
@ -1,23 +1,18 @@
|
|||||||
---
|
---
|
||||||
#description_paragraphs: 3
|
description: |-
|
||||||
#no_testing: broken upstream
|
Date::Parse provides two routines for parsing date strings into time values.
|
||||||
#sources:
|
|
||||||
# - source1
|
str2time(DATE [, ZONE])
|
||||||
# - source2
|
|
||||||
#patches:
|
str2time parses DATE and returns a unix time value, or undef upon failure.
|
||||||
# foo.patch: -p1
|
ZONE, if given, specifies the timezone to assume when parsing if the date
|
||||||
# bar.patch:
|
string does not specify a timezome.
|
||||||
#preamble: |-
|
|
||||||
# BuildRequires: gcc-c++
|
strptime(DATE [, ZONE])
|
||||||
#post_prep: |-
|
|
||||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
strptime takes the same arguments as str2time but returns an array of values
|
||||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they
|
||||||
#post_install: |-
|
could be extracted from the date string. The $zone element is the timezone
|
||||||
# sed on %{name}.files
|
offset in seconds from GMT. An empty array is returned upon failure.
|
||||||
#license: SUSE-NonFree
|
|
||||||
#skip_noarch: 1
|
|
||||||
#custom_build: |-
|
|
||||||
#./Build build flags=%{?_smp_mflags} --myflag
|
|
||||||
#custom_test: |-
|
|
||||||
#startserver && make test
|
|
||||||
#ignore_requires: Bizarre::Module
|
|
||||||
|
@ -24,7 +24,7 @@ Summary: TimeDate Perl module
|
|||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/TimeDate/
|
Url: http://search.cpan.org/dist/TimeDate/
|
||||||
Source0: http://www.cpan.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
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -33,11 +33,24 @@ BuildRequires: perl-macros
|
|||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
TimeDate Perl module
|
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
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
find . -type f -print0 | xargs -0 chmod 644
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user