You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Parse-RecDescent/perl-Parse-RecDescent.spec

103 lines
3.1 KiB

Name: perl-Parse-RecDescent
Version: 1.94
Release: 5.2
Summary: Parse-RecDescent Perl module
Group: Development/Libraries
License: Artistic
URL: http://search.cpan.org/dist/Parse-RecDescent/
Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Parse::RecDescent incrementally generates top-down recursive-descent
text parsers from simple yacc-like grammar specifications. It
provides:
* Regular expressions or literal strings as terminals (tokens),
* Multiple (non-contiguous) productions for any rule,
* Repeated and optional subrules within productions,
* Full access to Perl within actions specified as part of the
grammar,
* Simple automated error reporting during parser generation and
parsing,
* The ability to commit to, uncommit to, or reject particular
productions during a parse,
* The ability to pass data up and down the parse tree ("down" via
subrule argument lists, "up" via subrule return values)
* Incremental extension of the parsing grammar (even during a
parse),
* Precompilation of parser objects,
User-definable reduce-reduce conflict resolution via "scoring" of
matching productions.
%prep
%setup -q -n Parse-RecDescent-%{version}
chmod 644 Changes README lib/Parse/* demo/* tutorial/*
%{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/*
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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/*
%check || :
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{perl_vendorlib}/Parse/
%{_mandir}/man3/*.3*
%changelog
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 1.94-5.2
- rebuild for new perl-5.8.8
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcc
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcj
* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.94-5
- #155620
- Bring up to date with current Fedora.Extras perl spec template.
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.94-4
- rebuild
* Tue Feb 17 2004 Chip Turner <cturner@redhat.com> 1.94-2
- fix rm to not be interactive (bz115997)
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.94-1
- update to 1.94
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Sat Jul 20 2002 Chip Turner <cturner@localhost.localdomain>
- remove Text::Balanced modules since they are now in core perl
* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
- description update
* Fri Jun 07 2002 cturner@redhat.com
- Specfile autogenerated