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.965001.tar.gz b/Parse-RecDescent-1.965001.tar.gz deleted file mode 100644 index 721855b..0000000 --- a/Parse-RecDescent-1.965001.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00fa63039b062452d675712e58f0311d7323377af3cdd0fdccb1ecfe64b68d64 -size 154813 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 85d8d7b..4d6dbbb 100644 --- a/perl-Parse-RecDescent.changes +++ b/perl-Parse-RecDescent.changes @@ -1,3 +1,103 @@ +------------------------------------------------------------------- +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 + +- update to 1.967003 + - Addressed RT.cpan.org #29966: regex with single backslash not + recognized. Changed the definition of $TOKEN to handle + backslashes inside of regex patterns. + - Skip tests in t/reentry.t if Test::Warn isn't available. + - Remove the 'use 5.10' from t/skip_dynamic.t, it runs fine + against Perl 5.8.9. + +------------------------------------------------------------------- +Mon Jan 30 02:34:17 UTC 2012 - vcizek@suse.com + +- added Test::Warn to BuildRequires +- update to 1.967001 + * 1.966_000 Mon Jun 27 08:32:50 2011 + - Patched unnamed subrules, so that they actual fail when + not correctly specified (thanks Evgeniy!) + - Added skip tests (thanks Flavio) + - Added doc patch to make $skip semantics clearer (thanks Flavio!) + - Fixed POD description of semantics (thanks Dirk!) + * 1.966_001 Mon Nov 14 10:34:52 2011 + - Applied fix to restore skipped prefixes on match failure + (thanks Jeremy!) + - Removed formats to eliminate problems with filehandle duplication + in forked environments + * 1.966_002 Sun Jan 22 19:08:37 2012 + - *** NON-BACKWARDS COMPATIBLE CHANGE! *** Change the caches for + $prevline and $thisline to be local to the parser, rather than + lexical vars in Parse::RecDescent. This prevents previously + generated parsers from interfering with the line counts of + later parsers. + - removed trailing whitespace from all member files (cosmetic) + - new tests, updated MANIFEST + - Added Jeremy Braun as an author and current maintainer + - update file permissions + - fixed a few broken links in the pod + * 1.967001 Sat Jan 28 20:54:48 2012 + - Addressed RT.cpan.org #28314: regex modifiers for tokens not + honored during regex syntax check. (Thanks SADAHIRO!) + - Fixed some POD typos + - Added message on how to turn off "default" hint value in the + default hint value ($::RD_HINT = 0). RT.cpan.org # #4898. + - Modified _write_ERROR to call formline twice to avoid repeated + $errorprefix. + - Collected match tracing messages into a common function which + takes into account positive/negative lookahead. + - Addressed RT.cpan.org #74258: RD_AUTOSTUB does not work with + precompiled parsers. (Thanks Yuri!) + - Special-case $::RD_AUTOSTUB eq 1. $::RD_AUTOSTUB's value is + ignored, and the unknown subrule 'rule' has a production + "rule: 'rule'", rather than "rule: '1'". + - Change Parse::RecDescent::new to call $self->Replace with only + the grammar as an argument. That prevents the $compiling + argument to new() from being incorrectly interpreted as + $isimplicit. + ------------------------------------------------------------------- Fri Nov 18 11:08:16 UTC 2011 - coolo@suse.com diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec index 298a2d4..f05a9a5 100644 --- a/perl-Parse-RecDescent.spec +++ b/perl-Parse-RecDescent.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Parse-RecDescent # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,58 +15,54 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-Parse-RecDescent +Version: 1.967006 +Release: 0 +License: GPL-1.0+ or Artistic-1.0 %define cpan_name Parse-RecDescent Summary: Generate Recursive-Descent Parsers -Version: 1.965001 -Release: 4 -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: %{cpan_name}-%{version}.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildArch: noarch +Patch0: Parse-RecDescent-1.965001.patch BuildRequires: perl BuildRequires: perl(Module::Build) -BuildRequires: perl-macros 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 +BuildArch: noarch +%{perl_requires} %description RecDescent incrementally generates top-down recursive-descent text parsers from simple yacc-like grammar specifications. -Authors: --------- - Damian Conway - %prep %setup -q -n %{cpan_name}-%{version} %patch0 -p1 %build -%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +perl Build.PL installdirs=vendor optimize="%{optflags}" ./Build build flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %clean -%{__rm} -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,-)