%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-XML-XPath Version: 1.47 Release: 1mamba Summary: XML::XPath - a set of modules for parsing and evaluating XPath Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org Source: https://cpan.metacpan.org/modules/by-module/XML/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 %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 * Sat May 14 2022 Automatic Build System 1.47-1mamba - automatic version update by autodist * Fri May 13 2022 Automatic Build System 1.46-1mamba - automatic version update by autodist * Wed Feb 24 2021 Automatic Build System 1.44-1mamba - automatic version update by autodist * 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