commit a1b039278d2479db9ef16ee33e3a804bddf30b0c Author: Emmanuel Seyman <emmanuel@xxxxxxxxx> Date: Mon Apr 1 15:15:03 2013 +0200 Include patch to handle bugzilla dates (#927999) perl-BZ-Client-bugzilla-dates.patch | 15 +++++++++++++++ perl-BZ-Client.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletions(-) --- diff --git a/perl-BZ-Client-bugzilla-dates.patch b/perl-BZ-Client-bugzilla-dates.patch new file mode 100644 index 0000000..f8c6fe1 --- /dev/null +++ b/perl-BZ-Client-bugzilla-dates.patch @@ -0,0 +1,15 @@ +--- lib/BZ/Client/XMLRPC/Value.pm ++++ lib/BZ/Client/XMLRPC/Value.pm +@@ -71,7 +71,11 @@ sub end($$) { + $self->{'level1_content'} = undef; + $self->{'level1_elem'} = undef; + if ("dateTime.iso8601" eq $name) { +- $self->{'result'} = DateTime::Format::ISO8601->parse_datetime( $self->{'result'} ); ++ my $val = $self->{'result'}; ++ if ($val =~ /(\d\d\d\d)(\d\d)(\d\d)(T\d\d:\d\d:\d\d)/) { ++ $val = "$1-$2-$3$4"; ++ } ++ $self->{'result'} = DateTime::Format::ISO8601->parse_datetime( $val ); + } + } + } diff --git a/perl-BZ-Client.spec b/perl-BZ-Client.spec index 4f596a3..ef1b230 100644 --- a/perl-BZ-Client.spec +++ b/perl-BZ-Client.spec @@ -1,11 +1,12 @@ Name: perl-BZ-Client Version: 1.04 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A client for the Bugzilla web services API License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/BZ-Client/ Source0: http://www.cpan.org/authors/id/J/JW/JWIED/BZ-Client-%{version}.tar.gz +Patch0: perl-BZ-Client-bugzilla-dates.patch BuildArch: noarch BuildRequires: perl(Data::Dumper) BuildRequires: perl(DateTime) @@ -31,6 +32,8 @@ This module provides an interface to the Bugzilla web services API. %setup -q -n BZ-Client-%{version} chmod 644 Changes README LICENSE +%patch0 + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} @@ -53,6 +56,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Apr 01 2013 Emmanuel Seyman <emmanuel@xxxxxxxxx> - 1.04-5 +- Include patch to handle bugzilla dates (#927999) + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.04-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel