%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-PPIx-Regexp Version: 0.035 Release: 1mamba Summary: PPIx::Regexp - Represent a regular expression of some sort Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Module::Build) BuildRequires: perl(PPI::Document) BuildRequires: perl(Task::Weaken) BuildRequires: perl(Test::More) BuildRequires: perl-devel Requires: perl >= %perl_major_ver Requires: perl(PPI::Document) Requires: perl(Task::Weaken) BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The purpose of the PPIx-Regexp package is to parse regular expressions in a manner similar to the way the PPI package parses Perl. This class forms the root of the parse tree, playing a role similar to PPI::Document. %prep %setup -q -n PPIx-Regexp-%{version} chmod -x eg/* sed -i '1 s|/usr/local/bin/perl|/usr/bin/perl|' eg/* %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %{?_smp_mflags} %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %doc LICENSES %changelog * Sat Nov 16 2013 Automatic Build System 0.035-1mamba - automatic update by autodist * Thu May 16 2013 Automatic Build System 0.034-1mamba - automatic version update by autodist * Fri Mar 01 2013 Automatic Build System 0.033-1mamba - automatic version update by autodist * Wed Jan 23 2013 Automatic Build System 0.030-1mamba - automatic version update by autodist * Sat Jan 19 2013 Automatic Build System 0.029-1mamba - automatic version update by autodist * Fri Jan 11 2013 Automatic Build System 0.028_02-1mamba - automatic version update by autodist * Mon Nov 19 2012 Automatic Build System 0.028-1mamba - automatic version update by autodist * Tue Nov 13 2012 Silvan Calarco 0.021-2mamba - perl 5.16 mass rebuild * Sat Nov 19 2011 Silvan Calarco 0.021-1mamba - update to 0.021 * Fri Feb 18 2011 gil 0.018-1mamba - package created by autospec