Fix Parse::Yapp POD
This commit is contained in:
parent
c755467287
commit
a8114c448d
15
Parse-Yapp-1.05-pod-errors.patch
Normal file
15
Parse-Yapp-1.05-pod-errors.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
From: Ansgar Burchardt <ansgar@43-1.org>
|
||||||
|
Subject: Fix POD syntax errors
|
||||||
|
|
||||||
|
<https://rt.cpan.org/Public/Bug/Display.html?id=54410>
|
||||||
|
|
||||||
|
--- libparse-yapp-perl.orig/lib/Parse/Yapp.pm
|
||||||
|
+++ libparse-yapp-perl/lib/Parse/Yapp.pm
|
||||||
|
@@ -149,6 +149,7 @@
|
||||||
|
C<%expect> followed by a number, suppress warnings about number of Shift/Reduce
|
||||||
|
conflicts when both numbers match, a la bison.
|
||||||
|
|
||||||
|
+=back
|
||||||
|
|
||||||
|
=item B<The Rule Section> contains your grammar rules:
|
||||||
|
|
13
Parse-Yapp-1.05-pod_item.patch
Normal file
13
Parse-Yapp-1.05-pod_item.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<https://rt.cpan.org/Public/Bug/Display.html?id=11659>
|
||||||
|
|
||||||
|
--- a/lib/Parse/Yapp.pm 2005-02-25 13:24:39.000000000 +0300
|
||||||
|
+++ b/lib/Parse/Yapp.pm 2005-02-25 13:25:13.000000000 +0300
|
||||||
|
@@ -375,7 +375,7 @@
|
||||||
|
|
||||||
|
So you will need an Error reporting sub.
|
||||||
|
|
||||||
|
-item C<Error reporting routine>
|
||||||
|
+=item C<Error reporting routine>
|
||||||
|
|
||||||
|
If you want one, write it knowing that it is passed as parameter
|
||||||
|
the parser object. So you can share information whith the lexer
|
25
Parse-Yapp-1.05-spelling.patch
Normal file
25
Parse-Yapp-1.05-spelling.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From: Ansgar Burchardt <ansgar@43-1.org>
|
||||||
|
Subject: Correct spelling errors
|
||||||
|
|
||||||
|
<https://rt.cpan.org/Public/Bug/Display.html?id=54410>
|
||||||
|
|
||||||
|
--- libparse-yapp-perl.orig/lib/Parse/Yapp.pm
|
||||||
|
+++ libparse-yapp-perl/lib/Parse/Yapp.pm
|
||||||
|
@@ -173,7 +173,7 @@
|
||||||
|
|
||||||
|
A rhs may be followed by an optional C<%prec> directive, followed
|
||||||
|
by a token, giving the rule an explicit precedence (see yacc manuals
|
||||||
|
-for its precise meaning) and optionnal semantic action code block (see
|
||||||
|
+for its precise meaning) and optional semantic action code block (see
|
||||||
|
below).
|
||||||
|
|
||||||
|
exp: '-' exp %prec NEG { -$_[1] }
|
||||||
|
@@ -351,7 +351,7 @@
|
||||||
|
It is its duty to return the next token and value to the parser.
|
||||||
|
They C<must> be returned as a list of two variables, the first one
|
||||||
|
is the token known by the parser (symbolic or literal), the second
|
||||||
|
-one beeing anything you want (usualy the content of the token, or the
|
||||||
|
+one beeing anything you want (usually the content of the token, or the
|
||||||
|
literal value) from a simple scalar value to any complex reference,
|
||||||
|
as the parsing driver never use it but to call semantic actions:
|
||||||
|
|
@ -6,6 +6,12 @@ Group: Development/Libraries
|
|||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/Parse-Yapp/
|
URL: http://search.cpan.org/dist/Parse-Yapp/
|
||||||
Source0: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/F/FD/FDESAR/Parse-Yapp-%{version}.tar.gz
|
||||||
|
# Fix POD, CPAN RT #54410
|
||||||
|
Patch0: Parse-Yapp-1.05-pod-errors.patch
|
||||||
|
# Fix POD, CPAN RT #54410
|
||||||
|
Patch1: Parse-Yapp-1.05-spelling.patch
|
||||||
|
# Fix POD, CPAN RT #11659
|
||||||
|
Patch2: Parse-Yapp-1.05-pod_item.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
# Run-time:
|
# Run-time:
|
||||||
@ -20,6 +26,9 @@ module and let you easily create a Perl OO parser from an input grammar file.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Parse-Yapp-%{version}
|
%setup -q -n Parse-Yapp-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
|
chmod 644 README lib/Parse/{*.pm,Yapp/*.pm}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -46,6 +55,7 @@ make test
|
|||||||
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 1.05-49
|
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 1.05-49
|
||||||
- Specify all dependencies
|
- Specify all dependencies
|
||||||
- Modernize spec file
|
- Modernize spec file
|
||||||
|
- Fix Parse::Yapp POD
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-48
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-48
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user