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.
92 lines
2.7 KiB
92 lines
2.7 KiB
%define _use_internal_dependency_generator 0
|
|
|
|
Name: perl-Parse-RecDescent
|
|
Version: 1.94
|
|
Release: 5
|
|
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-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
%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
|
|
|
|
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -fv {} \;
|
|
find $RPM_BUILD_ROOT \( -name '*Balanced*' \) -exec rm -fv {} \;
|
|
|
|
find $RPM_BUILD_ROOT/usr -type f -print | \
|
|
sed "s@^$RPM_BUILD_ROOT@@g" > Parse-RecDescent-%{version}-filelist
|
|
if [ "$(cat Parse-RecDescent-%{version}-filelist)X" = "X" ] ; then
|
|
echo "ERROR: EMPTY FILE LIST"
|
|
exit -1
|
|
fi
|
|
|
|
%files -f Parse-RecDescent-%{version}-filelist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
|
|
- remove brp-compress
|
|
|
|
* 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
|
|
|