Patch t/004_locale_defaults.t to work around change in DateTime::Locale.

This commit is contained in:
Steven Pritchard 2008-07-08 16:54:21 +00:00
parent 96e4d6c1f0
commit 7bfc98182e
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,14 @@
--- DateTime-Format-Strptime-1.0702/t/004_locale_defaults.t.orig 2007-09-17 19:16:15.000000000 -0500
+++ DateTime-Format-Strptime-1.0702/t/004_locale_defaults.t 2008-07-08 11:46:16.000000000 -0500
@@ -29,9 +29,9 @@
['en_GB', '%c', '31 Dec 1998 12:34:56'],
# French
#);my @tests = (
- ['fr', '%x', '31 déc 1998'],
+ ['fr', '%x', '31 déc. 1998'],
['fr', '%X', '12:34:56'],
- ['fr', '%c', '31 déc 1998 12:34:56'],
+ ['fr', '%c', '31 déc. 1998 12:34:56'],
);
foreach (@tests) {

View File

@ -1,11 +1,12 @@
Name: perl-DateTime-Format-Strptime
Version: 1.0702
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Parse and format strp and strf time patterns
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
Source0: http://www.cpan.org/authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{version}.tgz
Patch0: perl-DateTime-Format-Strptime-004_locale_defaults.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(DateTime)
@ -24,6 +25,7 @@ returns the DateTime object associated.
%prep
%setup -q -n DateTime-Format-Strptime-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*
%changelog
* Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1.0702-3
- Patch t/004_locale_defaults.t to work around change in DateTime::Locale.
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0702-2
- rebuild for new perl