|
|
b00467 |
Name: perl-Parse-RecDescent
|
|
|
b00467 |
Version: 1.967009
|
|
|
71beda |
Release: 5%{?dist}
|
|
|
b00467 |
Summary: Generate Recursive-Descent Parsers
|
|
|
b00467 |
Group: Development/Libraries
|
|
|
b00467 |
License: (GPL+ or Artistic) and (GPLv2+ or Artistic)
|
|
|
b00467 |
# demo/demo_another_Cgrammar.pl: GPLv2+ or Artistic
|
|
|
b00467 |
URL: http://search.cpan.org/dist/Parse-RecDescent/
|
|
|
b00467 |
Source0: http://search.cpan.org/CPAN/authors/id/J/JT/JTBRAUN/Parse-RecDescent-%{version}.tar.gz
|
|
|
b00467 |
Patch0: Parse-RecDescent-1.967002-utf8.patch
|
|
|
b00467 |
BuildArch: noarch
|
|
|
b00467 |
BuildRequires: perl(Module::Build)
|
|
|
b00467 |
# Run-time
|
|
|
b00467 |
BuildRequires: perl(Carp)
|
|
|
b00467 |
BuildRequires: perl(Data::Dumper)
|
|
|
b00467 |
BuildRequires: perl(Text::Balanced) >= 1.95
|
|
|
b00467 |
# Tests:
|
|
|
b00467 |
BuildRequires: perl(Test::More)
|
|
|
b00467 |
# Optional tests:
|
|
|
b00467 |
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
b00467 |
BuildRequires: perl(Test::Warn)
|
|
|
b00467 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
b00467 |
Requires: perl(Text::Balanced) >= 1.95
|
|
|
b00467 |
|
|
|
b00467 |
%{?perl_default_filter}
|
|
|
b00467 |
# Remove under-specified dependencies
|
|
|
b00467 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Text::Balanced\\)$
|
|
|
b00467 |
|
|
|
b00467 |
%description
|
|
|
b00467 |
Parse::RecDescent incrementally generates top-down recursive-descent
|
|
|
b00467 |
text parsers from simple yacc-like grammar specifications. It
|
|
|
b00467 |
provides:
|
|
|
b00467 |
|
|
|
b00467 |
* Regular expressions or literal strings as terminals (tokens)
|
|
|
b00467 |
* Multiple (non-contiguous) productions for any rule
|
|
|
b00467 |
* Repeated and optional subrules within productions
|
|
|
b00467 |
* Full access to Perl within actions specified as part of the grammar
|
|
|
b00467 |
* Simple automated error reporting during parser generation and parsing
|
|
|
b00467 |
* The ability to commit to, uncommit to, or reject particular
|
|
|
b00467 |
productions during a parse
|
|
|
b00467 |
* The ability to pass data up and down the parse tree ("down" via
|
|
|
b00467 |
subrule argument lists, "up" via subrule return values)
|
|
|
b00467 |
* Incremental extension of the parsing grammar (even during a parse)
|
|
|
b00467 |
* Precompilation of parser objects
|
|
|
b00467 |
* User-definable reduce-reduce conflict resolution via "scoring" of
|
|
|
b00467 |
matching productions
|
|
|
b00467 |
|
|
|
b00467 |
%prep
|
|
|
b00467 |
%setup -q -n Parse-RecDescent-%{version}
|
|
|
b00467 |
|
|
|
b00467 |
# Recode as UTF8
|
|
|
b00467 |
%patch0 -p1
|
|
|
b00467 |
|
|
|
b00467 |
# Fix permissions and script interpreters
|
|
|
b00467 |
chmod -c a-x demo/* tutorial/*
|
|
|
b00467 |
perl -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!/usr/bin/perl|' demo/*
|
|
|
b00467 |
|
|
|
b00467 |
%build
|
|
|
b00467 |
perl Build.PL installdirs=vendor
|
|
|
b00467 |
./Build
|
|
|
b00467 |
|
|
|
b00467 |
%install
|
|
|
b00467 |
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
b00467 |
%{_fixperms} %{buildroot}
|
|
|
b00467 |
|
|
|
b00467 |
%check
|
|
|
b00467 |
./Build test
|
|
|
b00467 |
|
|
|
b00467 |
%files
|
|
|
b00467 |
%doc Changes README ToDo demo/ tutorial/
|
|
|
b00467 |
%{perl_vendorlib}/Parse/
|
|
|
b00467 |
%{_mandir}/man3/Parse::RecDescent.3pm*
|
|
|
b00467 |
|
|
|
b00467 |
%changelog
|
|
|
71beda |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.967009-5
|
|
|
71beda |
- Mass rebuild 2013-12-27
|
|
|
71beda |
|
|
|
b00467 |
* Thu Nov 01 2012 Petr Pisar <ppisar@redhat.com> - 1.967009-4
|
|
|
b00467 |
- One demo file is licensed as (GPLv2+ or Artistic)
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.967009-3
|
|
|
b00467 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 1.967009-2
|
|
|
b00467 |
- Perl 5.16 rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Mon Mar 19 2012 Petr Pisar <ppisar@redhat.com> - 1.967009-1
|
|
|
b00467 |
- 1.967009 bump
|
|
|
b00467 |
|
|
|
b00467 |
* Sat Feb 11 2012 Paul Howarth <paul@city-fan.org> - 1.967006-1
|
|
|
b00467 |
- Update to 1.967006 (#789560)
|
|
|
b00467 |
- Localize the OUT filehandle during Precompile
|
|
|
b00467 |
- Document the <autotree:Base::Class> form of the <autotree> directive
|
|
|
b00467 |
- Provide a simple test for the <autotree> directive, t/autotree.t; renamed
|
|
|
b00467 |
basics.t to ensure it runs before autotree.t
|
|
|
b00467 |
- Allow a global <skip:> directive that functions the same as modifying
|
|
|
b00467 |
$Parse::RecDescent::skip prior to compiling a grammar
|
|
|
b00467 |
- Require that the $file returned by caller() be eq '-', rather than merely
|
|
|
b00467 |
starting with '-'
|
|
|
b00467 |
- Warn on empty productions followed by other productions: the empty
|
|
|
b00467 |
production always matches, so following productions will never be reached
|
|
|
b00467 |
- NON-BACKWARDS COMPATIBLE CHANGE: a repetition directive such as 'id(s /,/)'
|
|
|
b00467 |
correctly creates a temporary @item variable to hold the 'id's that are
|
|
|
b00467 |
matched. That @item variable is then used to set the real $item[] entry for
|
|
|
b00467 |
that repetition. The same treatment is now given to %%item. Formerly, in a
|
|
|
b00467 |
production like:
|
|
|
b00467 |
id ',' id(s /,/)
|
|
|
b00467 |
matched against:
|
|
|
b00467 |
xxx, yyy, zzz
|
|
|
b00467 |
The $item{id} entry that should be 'xxx' is overwritten by 'yyy' and then
|
|
|
b00467 |
'zzz' prior to the action being executed. Now 'yyy' and 'zzz' set
|
|
|
b00467 |
$item{id}, but in the private %%item, which goes out of scope once the
|
|
|
b00467 |
repetition match completes.
|
|
|
b00467 |
- EXPERIMENTAL: when precompiling, optionally create a standalone parser by
|
|
|
b00467 |
including most of the contents of Parse::RecDescent in the resulting
|
|
|
b00467 |
Precompiled output
|
|
|
b00467 |
- Accept an optional $options hashref to Precompile, which can be used to
|
|
|
b00467 |
specify $options->{-standalone}, which currently defaults to false
|
|
|
b00467 |
- The subroutines import, Precompile and Save are not included in the
|
|
|
b00467 |
Precompile'd parser
|
|
|
b00467 |
- The included Parse::RecDescent module is renamed to
|
|
|
b00467 |
Parse::RecDescent::_Runtime to avoid namespace conflicts with an installed
|
|
|
b00467 |
and use'd Parse::RecDescent
|
|
|
b00467 |
- Add a new t/precompile.t to test precompilation
|
|
|
b00467 |
- Add a new $_FILENAME global to Parse::RecDescent to make it easy for the
|
|
|
b00467 |
Precompile method to find the module
|
|
|
b00467 |
- Remove the prototype from _generate; it is not required, and it caused
|
|
|
b00467 |
t/precompile.t (which ends up re-defining a lot of Parse::RecDescent
|
|
|
b00467 |
subroutines) to fail needlessly, as the calls to _generate in Replace and
|
|
|
b00467 |
Extend normally do not see the prototype, but do when re-defined
|
|
|
b00467 |
- POD documentation for standalone parsers added
|
|
|
b00467 |
- Added ExtUtils::MakeMaker build/configure version requirements
|
|
|
b00467 |
(CPAN RT#74787)
|
|
|
b00467 |
- BR: perl(Test::Pod) and perl(Test::Warn) for additional test coverage
|
|
|
b00467 |
- Use a patch rather than scripted iconv to fix character encoding
|
|
|
b00467 |
- Improve %%summary
|
|
|
b00467 |
- Tidy %%description
|
|
|
b00467 |
- Make %%files list more explicit
|
|
|
b00467 |
- Don't use macros for commands
|
|
|
b00467 |
- Don't need to specify compiler flags for pure-perl package
|
|
|
b00467 |
- Drop redundant 'find' commands from %%install
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Jan 31 2012 Petr Šabata <contyk@redhat.com> - 1.967003-1
|
|
|
b00467 |
- 1.967003 bump (backwards-incompatible changes)
|
|
|
b00467 |
- Spec cleanup and modernization
|
|
|
b00467 |
- New Source URL
|
|
|
b00467 |
- Install to vendor
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.965001-5
|
|
|
b00467 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.965001-4
|
|
|
b00467 |
- Perl mass rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.965001-3
|
|
|
b00467 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.965001-2
|
|
|
b00467 |
- rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Sep 24 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.965001-1
|
|
|
b00467 |
- update
|
|
|
b00467 |
- use Module::Build
|
|
|
b00467 |
|
|
|
b00467 |
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.964-2
|
|
|
b00467 |
- Mass rebuild with perl-5.12.0
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Feb 19 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.964-1
|
|
|
b00467 |
- update, fix previous issue and https://rt.cpan.org/Public/Bug/Display.html?id=53948
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Feb 16 2010 Marcela Mašláňová <mmaslano@redhat.com> 1.963-2
|
|
|
b00467 |
- apply upstream patch https://rt.cpan.org/Public/Bug/Display.html?id=54457
|
|
|
b00467 |
which should fix problems with rebuilds of other modules
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Feb 9 2010 Paul Howarth <paul@city-fan.org> 1.963-1
|
|
|
b00467 |
- update to 1.963 (fix subtle bug in leftop and rightop due to removal of $&)
|
|
|
b00467 |
- recode Changes as utf-8
|
|
|
b00467 |
- more script interpreter fixes
|
|
|
b00467 |
|
|
|
b00467 |
* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.962.2-1
|
|
|
b00467 |
- updated for latest GA SQL::Translator
|
|
|
b00467 |
- add default filtering
|
|
|
b00467 |
- auto-update to 1.962.2 (by cpan-spec-update 0.01)
|
|
|
b00467 |
- added a new br on perl(Text::Balanced) (version 0)
|
|
|
b00467 |
|
|
|
b00467 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-3
|
|
|
b00467 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-2
|
|
|
b00467 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Mon Feb 2 2009 Stepan Kasal <skasal@redhat.com> - 1.96-1
|
|
|
b00467 |
- new upstream version
|
|
|
b00467 |
|
|
|
b00467 |
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-5
|
|
|
b00467 |
- Rebuild for perl 5.10 (again)
|
|
|
b00467 |
|
|
|
b00467 |
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-4
|
|
|
b00467 |
- rebuild for new perl
|
|
|
b00467 |
|
|
|
b00467 |
* Wed Nov 14 2007 Robin Norwood <rnorwood@redhat.com> - 1.95.1-3
|
|
|
b00467 |
- Apply fixes from package review:
|
|
|
b00467 |
- Remove BR: perl
|
|
|
b00467 |
- Use iconv to convert file to utf-8
|
|
|
b00467 |
- Include BR: perl(Test::Pod)
|
|
|
b00467 |
- Fix old changelog entry
|
|
|
b00467 |
- Resolves: bz#226274
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-2
|
|
|
b00467 |
- add BR: perl(version), perl(Test::More)
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-1
|
|
|
b00467 |
- bump to 1.95.1
|
|
|
b00467 |
- correct license tag (now under perl license)
|
|
|
b00467 |
- add BR: perl(ExtUtils::MakeMaker)
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Jul 20 2007 Robin Norwood <rnorwood@redhat.com> - 1.94-6.fc8
|
|
|
b00467 |
- Bring fixes from EPEL build into F8
|
|
|
b00467 |
- Fix minor specfile issues
|
|
|
b00467 |
- Package the docs as well
|
|
|
b00467 |
|
|
|
b00467 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.94-5.2.1
|
|
|
b00467 |
- rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.94-5.2
|
|
|
b00467 |
- rebuild for new perl-5.8.8
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
b00467 |
- rebuilt for new gcc
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
b00467 |
- rebuilt for new gcj
|
|
|
b00467 |
|
|
|
b00467 |
* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.94-5
|
|
|
b00467 |
- #155620
|
|
|
b00467 |
- Bring up to date with current Fedora.Extras perl spec template.
|
|
|
b00467 |
|
|
|
b00467 |
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.94-4
|
|
|
b00467 |
- rebuild
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Feb 17 2004 Chip Turner <cturner@redhat.com> 1.94-2
|
|
|
b00467 |
- fix rm to not be interactive (bz115997)
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.94-1
|
|
|
b00467 |
- update to 1.94
|
|
|
b00467 |
|
|
|
b00467 |
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
|
|
|
b00467 |
- automated release bump and build
|
|
|
b00467 |
|
|
|
b00467 |
* Sat Jul 20 2002 Chip Turner <cturner@localhost.localdomain>
|
|
|
b00467 |
- remove Text::Balanced modules since they are now in core perl
|
|
|
b00467 |
|
|
|
b00467 |
* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
|
|
|
b00467 |
- description update
|
|
|
b00467 |
|
|
|
b00467 |
* Fri Jun 07 2002 cturner@redhat.com
|
|
|
b00467 |
- Specfile autogenerated
|