%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-PPIx-Utilities Version: 1.001000 Release: 1mamba Summary: PPIx::Utilities - Extensions to PPI Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: gil URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/PPIx-Utilities-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exception::Class) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Slurp) BuildRequires: perl(PPI::Document) BuildRequires: perl(PPI::Dumper) BuildRequires: perl(Readonly) BuildRequires: perl(Task::Weaken) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::More) BuildRequires: perl-devel Requires: perl >= %perl_major_ver Requires: perl(Exporter) BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is a collection of functions for dealing with PPI objects, many of which originated in Perl::Critic. They are organized into modules by the kind of PPI class they relate to, by replacing the "PPI" at the front of the module name with "PPIx::Utilities", e.g. functionality related to PPI::Nodes is in PPIx::Utilities::Node. %prep %setup -q -n PPIx-Utilities-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{perl_vendorlib}/PPIx/ %{_mandir}/man3/*.3pm.gz %doc Changes LICENSE README %changelog * Fri Feb 18 2011 gil 1.001000-1mamba - package created by autospec