- updated to 1.54

- Require DateTime.pm 1.00 because without it tests will break.
  - A fix in DateTime.pm 1.00 broke a test in this distro. Reported by Anthony J
     Lucas. RT #84371.
  - Shut up "unescaped braces in regex" warning from 5.17.0. RT #77514. Patch by
    Zefram.
  - Packaging cleanup, including listing Test::More as a test prereq, not a
    runtime prereq. RT #76128.
- removed obsolete DateTime-Format-Strptime-1.5000-deps.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-Strptime?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2013-06-10 15:49:31 +00:00 committed by Git OBS Bridge
parent 30468caded
commit be97825a7b
5 changed files with 33 additions and 85 deletions

View File

@ -1,51 +0,0 @@
diff -ruN DateTime-Format-Strptime-1.5000-orig/Makefile.PL DateTime-Format-Strptime-1.5000/Makefile.PL
--- DateTime-Format-Strptime-1.5000-orig/Makefile.PL 2010-10-16 22:26:44.000000000 +0200
+++ DateTime-Format-Strptime-1.5000/Makefile.PL 2010-10-17 17:29:38.000000000 +0200
@@ -20,11 +20,11 @@
'LICENSE' => 'artistic_2',
'NAME' => 'DateTime::Format::Strptime',
'PREREQ_PM' => {
- 'DateTime' => '0.4304',
+ 'DateTime' => '0.44',
'DateTime::Locale' => '0.45',
'DateTime::TimeZone' => '0.79',
'Params::Validate' => '0.64',
- 'Test::More' => '0.88'
+ 'Test::More' => '0.72'
},
'VERSION' => '1.5000',
'test' => {
diff -ruN DateTime-Format-Strptime-1.5000-orig/META.json DateTime-Format-Strptime-1.5000/META.json
--- DateTime-Format-Strptime-1.5000-orig/META.json 2010-10-16 22:26:44.000000000 +0200
+++ DateTime-Format-Strptime-1.5000/META.json 2010-10-17 17:29:54.000000000 +0200
@@ -21,11 +21,11 @@
},
"runtime" : {
"requires" : {
- "DateTime" : "0.4304",
+ "DateTime" : "0.44",
"DateTime::Locale" : "0.45",
"DateTime::TimeZone" : "0.79",
"Params::Validate" : "0.64",
- "Test::More" : "0.88"
+ "Test::More" : "0.72"
}
}
},
diff -ruN DateTime-Format-Strptime-1.5000-orig/META.yml DateTime-Format-Strptime-1.5000/META.yml
--- DateTime-Format-Strptime-1.5000-orig/META.yml 2010-10-16 22:26:44.000000000 +0200
+++ DateTime-Format-Strptime-1.5000/META.yml 2010-10-17 17:30:07.000000000 +0200
@@ -13,11 +13,11 @@
version: 1.4
name: DateTime-Format-Strptime
requires:
- DateTime: 0.4304
+ DateTime: 0.44
DateTime::Locale: 0.45
DateTime::TimeZone: 0.79
Params::Validate: 0.64
- Test::More: 0.88
+ Test::More: 0.72
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Format-Strptime
repository: http://hg.urth.org/hg/DateTime-Format-Strptime

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ef191ac4adff361e873c88e27a432b03398815248e36a9e514ee71e17cea554
size 27707

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00bb61b12472fb1a637ec55bbd8878db05b3aac89a67b7991b281e32896db9de
size 26578

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Jun 10 15:46:45 UTC 2013 - coolo@suse.com
- updated to 1.54
- Require DateTime.pm 1.00 because without it tests will break.
- A fix in DateTime.pm 1.00 broke a test in this distro. Reported by Anthony J
Lucas. RT #84371.
- Shut up "unescaped braces in regex" warning from 5.17.0. RT #77514. Patch by
Zefram.
- Packaging cleanup, including listing Test::More as a test prereq, not a
runtime prereq. RT #76128.
- removed obsolete DateTime-Format-Strptime-1.5000-deps.patch
-------------------------------------------------------------------
Fri Nov 18 11:07:09 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-Format-Strptime
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products 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,47 +15,40 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-DateTime-Format-Strptime
Version: 1.54
Release: 0
%define cpan_name DateTime-Format-Strptime
Summary: Parse and format strp and strf time patterns
Version: 1.5000
Release: 1
License: Artistic 2.0
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Format-Strptime/
#Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Patch: %{cpan_name}-1.5000-deps.patch
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime) >= 0.44
BuildRequires: perl(DateTime) >= 1.00
BuildRequires: perl(DateTime::Locale) >= 0.45
BuildRequires: perl(DateTime::TimeZone) >= 0.79
BuildRequires: perl(Params::Validate) >= 0.64
Requires: perl(DateTime) >= 0.44
BuildRequires: perl(Test::More) >= 0.88
#BuildRequires: perl(DateTime::Format::Strptime)
Requires: perl(DateTime) >= 1.00
Requires: perl(DateTime::Locale) >= 0.45
Requires: perl(DateTime::TimeZone) >= 0.79
Requires: perl(Params::Validate) >= 0.64
%{perl_requires}
%description
This module implements most of strptime(3), the POSIX function that is the
reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
pattern and returns a string, strptime takes a string and a pattern and
returns the DateTime object associated.
Authors:
--------
Rick Measham <rickm@cpan.org>
This module implements most of 'strptime(3)', the POSIX function that is
the reverse of 'strftime(3)', for 'DateTime'. While 'strftime' takes a
'DateTime' and a pattern and returns a string, 'strptime' takes a string
and a pattern and returns the 'DateTime' object associated.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -66,18 +59,11 @@ Authors:
%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
%defattr(-,root,root,-)
%doc Changes dist.ini LICENSE META.json README SIGNATURE
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog