which should fix problems with rebuilds of other modules
epel9
Marcela Mašláňová 15 years ago
parent 68834ddeb7
commit 9ce386d29b

@ -0,0 +1,19 @@
diff -up Parse-RecDescent-1.963/lib/Parse/RecDescent.pm.old Parse-RecDescent-1.963/lib/Parse/RecDescent.pm
--- Parse-RecDescent-1.963/lib/Parse/RecDescent.pm.old 2010-01-20 23:13:19.000000000 +0100
+++ Parse-RecDescent-1.963/lib/Parse/RecDescent.pm 2010-02-16 11:46:33.475648895 +0100
@@ -2363,11 +2363,12 @@ sub _generate($$$;$$)
}
elsif ($grammar =~ m/$LITERAL/gco)
{
- ($code = $1) =~ s/\\\\/\\/g;
- _parse("a literal terminal", $aftererror,$line,$1);
+ my $literal = $1;
+ ($code = $literal) =~ s/\\\\/\\/g;
+ _parse("a literal terminal", $aftererror,$line,$literal);
$item = new Parse::RecDescent::Literal($code,$lookahead,$line);
$prod and $prod->additem($item)
- or _no_rule("literal terminal",$line,"'$1'");
+ or _no_rule("literal terminal",$line,"'$literal'");
}
elsif ($grammar =~ m/$INTERPLIT/gco)
{

@ -1,6 +1,6 @@
Name: perl-Parse-RecDescent
Version: 1.963
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Parse-RecDescent Perl module
Group: Development/Libraries
@ -8,7 +8,7 @@ License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Parse-RecDescent/
Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Patch0: Parse-RecDescent-1.963-rt54457.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl(version), perl(Test::More)
BuildRequires: perl(Test::Pod)
@ -41,6 +41,8 @@ matching productions.
%prep
%setup -q -n Parse-RecDescent-%{version}
%patch0 -p1
chmod a-x demo/* tutorial/*
%{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/*
%{__perl} -pi -e 's|^#!\s?/opt/local/bin/perl5\.10\.0\b|#!%{__perl}|' demo/*
@ -56,7 +58,7 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
@ -78,6 +80,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Feb 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.963-2
- apply upstream patch https://rt.cpan.org/Public/Bug/Display.html?id=54457
which should fix problems with rebuilds of other modules
* Tue Feb 9 2010 Paul Howarth <paul@city-fan.org> 1.963-1
- update to 1.963 (fix subtle bug in leftop and rightop due to removal of $&)
- recode Changes as utf-8

Loading…
Cancel
Save