1
0
forked from pool/perl-TimeDate

Accepting request 305045 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/305045
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TimeDate?expand=0&rev=24
This commit is contained in:
Stephan Kulow 2015-05-02 10:05:46 +00:00 committed by Git OBS Bridge
parent 3b8d821966
commit cdea2df380
5 changed files with 51 additions and 52 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

23
cpanspec.yml Normal file
View File

@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
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
-------------------------------------------------------------------
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) 2015 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,44 @@
# 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: 12
License: GPL+ or Artistic
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: http://www.cpan.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.
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.
Authors:
--------
Graham Barr <gbarr@pobox.com>
TimeDate Perl module
%prep
%setup -q -n %{cpan_name}-%{version}
%patch1 -p1
%patch2
# script-without-shebang
find -type f -exec chmod 0644 {} \;
find . -type f -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