# $Id$ # Authority: dries # Upstream: Matt Sergeant %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %define real_name XML-XPath Summary: Parse and evaluate XPath statements Name: perl-XML-XPath Version: 1.13 Release: 2.2%{?dist} License: Artistic/GPL Group: Applications/CPAN URL: http://search.cpan.org/dist/XML-XPath/ Source: http://www.cpan.org/modules/by-module/XML/XML-XPath-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) %description This module aims to comply exactly to the XPath specification at http://www.w3.org/TR/xpath and yet allow extensions to be added in the form of functions. Modules such as XSLT and XPointer may need to do this as they support functionality beyond XPath. %prep %setup -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install %{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod %{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc README TODO %{_bindir}/xpath %{_mandir}/man3/* %{perl_vendorlib}/XML/XPath.pm %{perl_vendorlib}/XML/XPath/* %changelog * Sat Apr 08 2006 Dries Verachtert - 1.13-2.2 - Rebuild for Fedora Core 5. * Sat Jan 01 2005 Dries Verachtert - 1.13-2 - Fixed the license tag (Thanks to David Necas !) * Wed Jun 16 2004 Dries Verachtert - 1.13-1 - Initial package.