%define pkg_name XML-LibXML-Iterator %define pkg_version 1.04 %define rpm_pkg_version 1.04 %define rpm_pkg_release 1.n0i.5 Summary: XML::LibXML's Tree Iteration Class Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/P/PH/PHISH/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(XML::LibXML) >= 1.52 BuildRequires: perl(XML::NodeFilter) %description XML::LibXML::Iterator is an iterator class for XML::LibXML parsed documents. This class allows to iterate the document tree as it were a linear data structure. It is possible to step back and forth between the nodes of the tree and do certain operations on that nodes. Different to XPath the nodes are not prefetched but will be calculated for each step. Therefore an iterator is sensible towards the current state of a document tree on each step, while XPath is only per query executed. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{__perl} -pi -e 's/"text"/"#text"/' t/01basic.t %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Sat Sep 29 2007 Marius Feraru - 1.04-1.n0i.5 - version 1.04 * Sun Aug 12 2007 Marius Feraru - 1.03-1.n0i.4 - version 1.03 * Tue Jul 31 2007 Marius Feraru - 1.02-1.n0i.3 - version 1.02 * Fri Jun 15 2007 Marius Feraru - 1.00-2.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - rebuild on perl 5.8.8 * Sat Apr 15 2006 Marius Feraru 1.00-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - rebuild on perl 5.8.8