diff --git a/perl-DateTime-Format-Strptime-004_locale_defaults.patch b/perl-DateTime-Format-Strptime-004_locale_defaults.patch new file mode 100644 index 0000000..9db61d7 --- /dev/null +++ b/perl-DateTime-Format-Strptime-004_locale_defaults.patch @@ -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) { diff --git a/perl-DateTime-Format-Strptime.spec b/perl-DateTime-Format-Strptime.spec index 18d1609..9235a31 100644 --- a/perl-DateTime-Format-Strptime.spec +++ b/perl-DateTime-Format-Strptime.spec @@ -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 1.0702-3 +- Patch t/004_locale_defaults.t to work around change in DateTime::Locale. + * Tue Mar 04 2008 Tom "spot" Callaway 1.0702-2 - rebuild for new perl