diff --git a/.cvsignore b/.cvsignore index e69de29..90ddc7a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Parse-RecDescent-1.80.tar.gz diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec new file mode 100644 index 0000000..d05cd18 --- /dev/null +++ b/perl-Parse-RecDescent.spec @@ -0,0 +1,73 @@ +Name: perl-Parse-RecDescent +Version: 1.80 +Release: 5 +Packager: cturner@redhat.com +Summary: Parse-RecDescent Perl module +License: distributable +Group: Development/Libraries +URL: http://search.cpan.org/search?mode=module&query=Parse%3a%3aRecDescent +BuildRoot: %{_tmppath}/%{name}-root +BuildRequires: perl >= 0:5.00503 +Source0: Parse-RecDescent-1.80.tar.gz + +%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} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor +make +make test + +%clean +rm -rf $RPM_BUILD_ROOT +%install + +rm -rf $RPM_BUILD_ROOT +eval `perl '-V:installarchlib'` +mkdir -p $RPM_BUILD_ROOT/$installarchlib +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" | \ + grep -v perllocal.pod | \ + grep -v "\.packlist" > Parse-RecDescent-1.80-filelist +if [ "$(cat Parse-RecDescent-1.80-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%files -f Parse-RecDescent-1.80-filelist +%defattr(-,root,root) + +%changelog +* Thu Jun 27 2002 Chip Turner +- description update + +* Fri Jun 07 2002 cturner@redhat.com +- Specfile autogenerated + diff --git a/sources b/sources index e69de29..76e2568 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e72a9c7b94ed20558d16028b657f6b09 Parse-RecDescent-1.80.tar.gz