diff --git a/Parse-RecDescent-1.965001.patch b/Parse-RecDescent-1.965001.patch index 68850fa..8b5bba6 100644 --- a/Parse-RecDescent-1.965001.patch +++ b/Parse-RecDescent-1.965001.patch @@ -1,11 +1,12 @@ -diff -ruN Parse-RecDescent-1.965001-orig/lib/Parse/RecDescent.pm Parse-RecDescent-1.965001/lib/Parse/RecDescent.pm ---- Parse-RecDescent-1.965001-orig/lib/Parse/RecDescent.pm 2010-04-05 00:00:10.000000000 +0200 -+++ Parse-RecDescent-1.965001/lib/Parse/RecDescent.pm 2010-10-19 21:29:55.000000000 +0200 -@@ -2808,6 +2808,7 @@ +Index: Parse-RecDescent-1.967006/lib/Parse/RecDescent.pm +=================================================================== +--- Parse-RecDescent-1.967006.orig/lib/Parse/RecDescent.pm 2012-02-11 05:49:54.000000000 +0100 ++++ Parse-RecDescent-1.967006/lib/Parse/RecDescent.pm 2012-02-13 15:59:09.350410266 +0100 +@@ -3013,6 +3013,7 @@ sub _code($) { my $self = shift; + $skip = "" if(! defined $skip); + my $initial_skip = defined($self->{skip}) ? $self->{skip} : $skip; + my $code = qq{ - package $self->{namespace}; - use strict; diff --git a/Parse-RecDescent-1.967003.tar.gz b/Parse-RecDescent-1.967003.tar.gz deleted file mode 100644 index 1d2e27b..0000000 --- a/Parse-RecDescent-1.967003.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d4dac8dad012a7eef271a0ac8ec399f9e3b0b53902644df9c208daef8b4b7f0a -size 166765 diff --git a/Parse-RecDescent-1.967006.tar.gz b/Parse-RecDescent-1.967006.tar.gz new file mode 100644 index 0000000..6777bf4 --- /dev/null +++ b/Parse-RecDescent-1.967006.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b51a24e78e5d6f93599b655bf3426fd70389327d5db98e182290dd4cdb72bbf +size 169628 diff --git a/perl-Parse-RecDescent.changes b/perl-Parse-RecDescent.changes index d3293ba..4d6dbbb 100644 --- a/perl-Parse-RecDescent.changes +++ b/perl-Parse-RecDescent.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Mon Feb 13 02:35:00 UTC 2012 - vcizek@suse.com + +- update to 1.967006 + - Allow a global directive that functions the same as + modifying $Parse::RecDescent::skip prior to compiling a + grammar. (Thanks Flavio!) + + - *** NON-BACKWARDS COMPATIBLE CHANGE! *** A repetition directive + such as 'id(s /,/)' correctly creates a temporary @item variable + to hold the 'id's that are matched. That @item variable is them + used to set the real $item[] entry for that repetition. The + same treatment is now given to %item. Formerly, in a production like: + id ',' id(s /,/) + matched against: + xxx, yyy, zzz + The $item{id} entry which should be 'xxx' is overwritten by + 'yyy' and then 'zzz' prior to the action being executed. Now + 'yyy' and 'zzz' set $item{id}, but in the private %item, which + goes out of scope once the repetition match completes. + + - ** EXPERIMENTAL ** When precompiling, optionally create a + standalone parser by including most of the contents of + Parse::RecDescent in the resulting Precompiled output. + + - Accept an optional $options hashref to Precompile, which can + be used to specify $options->{-standalone}, which currently + defaults to false. + + - The included Parse::RecDescent module is renamed to + Parse::RecDescent::_Runtime to avoid namespace conflicts with + an installed and use'd Parse::RecDescent. + - Add a new $_FILENAME global to Parse::RecDescent to make it + easy for the Precompile method to find the module. + - Remove the prototype from _generate. It is not required, and + it caused t/precompile.t (which ends up re-definiing a lot of + Parse::RecDescent subroutines) to fail needlessly, as the + calls to _generate in Replace and Extend normally do not see + the prototype, but do when re-defined. + - Added ExtUtils::MakeMaker build/configure version + requirements. (RT.cpan.org #74787, Thanks POPEL!) + ------------------------------------------------------------------- Tue Jan 31 09:31:58 UTC 2012 - vcizek@suse.com diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec index 72e457b..f05a9a5 100644 --- a/perl-Parse-RecDescent.spec +++ b/perl-Parse-RecDescent.spec @@ -15,25 +15,27 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: perl-Parse-RecDescent -Version: 1.967003 +Version: 1.967006 Release: 0 +License: GPL-1.0+ or Artistic-1.0 %define cpan_name Parse-RecDescent Summary: Generate Recursive-Descent Parsers -License: GPL-1.0+ or Artistic-1.0 -Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Parse-RecDescent/ +Group: Development/Libraries/Perl #Source: http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.gz # bnc#653512 Patch0: Parse-RecDescent-1.965001.patch BuildRequires: perl -BuildRequires: perl-macros BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Warn) BuildRequires: perl(Text::Balanced) BuildRequires: perl(version) +BuildRequires: perl-macros Requires: perl(Text::Balanced) Requires: perl(version) BuildRoot: %{_tmppath}/%{name}-%{version}-build