%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-XML-XPath Version: 1.13 Release: 4mamba Summary: XML::XPath - a set of modules for parsing and evaluating XPath Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-XPath-%{version}.tar.gz License: GPL Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-XML-Parser BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/perl-root %description This module aims to comply exactly to the XPath. %prep %setup -q -n XML-XPath-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %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) %changelog * Tue Nov 13 2012 Silvan Calarco 1.13-4mamba - perl 5.16 mass rebuild * Thu Nov 06 2008 Silvan Calarco 1.13-3mamba - automatic rebuild by autodist * Thu Nov 15 2007 Silvan Calarco 1.13-2mamba - rebuilt * Tue Oct 26 2004 Alessandro Ramazzina 1.13-1qilnx - package created by autospec