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