%define pkg_name Text-RecordParser %define pkg_version v1.2.1 %define rpm_pkg_version 1.2.1 %define rpm_pkg_release 2.n0i.8 Summary: Read record-oriented files Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/K/KC/KCLARK/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) %if %{!?_without_test:1}0 BuildRequires: perl(Class::Accessor) BuildRequires: perl(IO::Scalar) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(List::Util) BuildRequires: perl(Readonly) BuildRequires: perl(Test::Exception) BuildRequires: perl(version) %endif %description This module is for reading record-oriented data. The most common example have records separated by newlines and fields separated by commas or tabs, but this module aims to provide a consistent interface for handling sequential records in a file however they may be delimited. Typically this data lists the fields in the first line of the file, in which case you should call "bind_header" to bind the field name. If the first line contains data, you can still bind your own field names via "bind_fields". Either way, you can then use many methods to get at the data as arrays or hashes. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} # Text::TabularDisplay based tests fail for now ( 0 ne '' ) %{!?_without_test:%{__make} test || :} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m} %doc Changes README TODO %changelog * Tue May 22 2007 Marius Feraru - 1.2.1-2.n0i.8.v1.2.1 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 * Sun May 21 2006 Marius Feraru - 1.2.1-1.n0i.7.v1.2.1 - version v1.2.1 * Sat Mar 04 2006 Marius Feraru - 1.1.1-1.n0i.6.v1.1.1 - version v1.1.1 * Fri Feb 03 2006 Marius Feraru - 1.0.0-1.n0i.5.v1.0.0 - version 1.0.0 * Tue Aug 09 2005 Marius FERARU 0.09-1.n0i.4 - version 0.09 * Mon Aug 01 2005 Marius Feraru 0.08-1.n0i.3 - version 0.08 - spec file (re)created using N0i::CPAN::RPMizer/1.01 * Thu Jan 29 2004 Marius FERARU 0:0.05-0.n0i.2 - version 0.05 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Thu Oct 23 2003 Marius FERARU 0:0.03-0.n0i.1 - version 0.03 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001