%global pkg_name Tree-Parser %global pkg_version 0.15 %global rpm_pkg_version 0.15 %global rpm_pkg_release 1.n0i.4 Summary: Module to parse formatted files into tree structures Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/S/ST/STEVAN/%{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) %if %{!?_without_test:1}0 BuildRequires: perl(Tree::Simple) >= 1.03 BuildRequires: perl(Array::Iterator) >= 0.04 BuildRequires: perl(Test::Exception) >= 0.15 %endif %description This module can parse various types of input (formatted and containing hierarchal information) into a tree structures. It can also deparse the same tree structures back into a string. It accepts various types of input, such as; strings, filenames, array references. The tree structure is a hierarchy of Tree::Simple objects. %prep %setup -q -n %{pkg_name}-%{pkg_version} %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 * Thu Oct 04 2007 Marius Feraru - 0.15-1.n0i.4 - version 0.15 * Tue Jul 31 2007 Marius Feraru - 0.14-1.n0i.3 - version 0.14 * Tue May 22 2007 Marius Feraru - 0.12-1.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer 804.027 - version 0.12 * Tue Aug 09 2005 Marius Feraru 0.11-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7