File Parse-Eyapp.spec of Package perl-Parse-Eyapp
%define cpan_name Parse-Eyapp
Name: perl-%cpan_name
Version: 1.46
Release: 0
Provides: %cpan_name
Requires: perl = %{perl_version}
Group: Development/Libraries/Perl
License: Artistic
URL: http://search.cpan.org/dist/Parse-Eyapp/
Summary: Extensions for Parse::Yapp
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Parse::Eyapp Eyapp yacc/yapp syntax with
functionalities like named attributes,
EBNF-like expressions, modifiable default action,
automatic syntax tree building,
semi-automatic abstract syntax tree building,
translation schemes, tree regular expressions,
tree transformations, scope analysis, support,
directed acyclic graphs and a few more.
BuildArch: noarch
BuildRequires: perl
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" INSTALLDIRS="vendor" DESTDIR=$RPM_BUILD_ROOT
make
make test
%install
make pure_install
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/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{perl_vendorlib}/Parse/Eyapp/
%{_mandir}/man3/*.3*
%{_mandir}/man1/*.1*
/usr/bin/*
/usr/lib/perl5/vendor_perl/*/Parse/Eyapp.pm
/usr/lib/perl5/vendor_perl/*/Parse/Eyapp.pod
#/usr/lib64/*
%changelog -n %{name}
* Fri May 08 2009 - dwestervelt@novell
- Initial release