Chris Weyl 54fd0c0
Name:           perl-Text-RecordParser
Chris Weyl 53f4caf
Version:        1.3.0
Chris Weyl 53f4caf
Release:        1%{?dist}
Chris Weyl 54fd0c0
Summary:        Read record-oriented files
8b4726e
License:        GPLv2
Chris Weyl 54fd0c0
Group:          Development/Libraries
Chris Weyl 54fd0c0
URL:            http://search.cpan.org/dist/Text-RecordParser/
Chris Weyl 53f4caf
Source0:        http://search.cpan.org/CPAN/authors/id/K/KC/KCLARK/Text-RecordParser-%{version}.tar.gz
Chris Weyl 54fd0c0
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl 54fd0c0
BuildArch:      noarch
Chris Weyl 54fd0c0
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
# core
Chris Weyl 53f4caf
BuildRequires:  perl(List::Util)
Chris Weyl 54fd0c0
BuildRequires:  perl(Test::More)
Chris Weyl 54fd0c0
# cpan
Chris Weyl 53f4caf
BuildRequires:  perl(Module::Build)
Chris Weyl 54fd0c0
BuildRequires:  perl(Readonly)
Chris Weyl 54fd0c0
BuildRequires:  perl(Class::Accessor)
Chris Weyl 54fd0c0
BuildRequires:  perl(List::MoreUtils)
Chris Weyl 54fd0c0
BuildRequires:  perl(Text::TabularDisplay)
Chris Weyl 54fd0c0
BuildRequires:  perl(version)
Chris Weyl 54fd0c0
# test
Chris Weyl 53f4caf
BuildRequires:  perl(IO::Scalar)
Chris Weyl 54fd0c0
BuildRequires:  perl(Test::Exception)
Chris Weyl 54fd0c0
BuildRequires:  perl(Test::Pod)
Chris Weyl 54fd0c0
BuildRequires:  perl(Test::Pod::Coverage)
Chris Weyl 54fd0c0
Chris Weyl 53f4caf
# not automagically picked up...
Chris Weyl 53f4caf
Requires:       perl(Class::Accessor)
Chris Weyl 53f4caf
Chris Weyl 54fd0c0
%description
Chris Weyl 54fd0c0
This module is for reading record-oriented data in a delimited text file.
Chris Weyl 54fd0c0
The most common example have records separated by newlines and fields
Chris Weyl 54fd0c0
separated by commas or tabs, but this module aims to provide a consistent
Chris Weyl 54fd0c0
interface for handling sequential records in a file however they may be
Chris Weyl 54fd0c0
delimited. Typically this data lists the fields in the first line of the
Chris Weyl 54fd0c0
file, in which case you should call bind_header to bind the field name (or
Chris Weyl 54fd0c0
not, and it will be called implicitly). If the first line contains data,
Chris Weyl 54fd0c0
you can still bind your own field names via bind_fields. Either way, you
Chris Weyl 54fd0c0
can then use many methods to get at the data as arrays or hashes.
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%prep
Chris Weyl 53f4caf
%setup -q -n Text-RecordParser-%{version}
Chris Weyl 54fd0c0
Chris Weyl 53f4caf
perl -pi -e 's|^#!perl|#!%{__perl}|' t/*.t
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%build
Chris Weyl 54fd0c0
%{__perl} Build.PL installdirs=vendor
Chris Weyl 54fd0c0
./Build
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%install
Chris Weyl 54fd0c0
rm -rf %{buildroot}
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
./Build install destdir=%{buildroot} create_packlist=0
Chris Weyl 54fd0c0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%{_fixperms} %{buildroot}/*
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%check
Chris Weyl 54fd0c0
./Build test
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%clean
Chris Weyl 54fd0c0
rm -rf %{buildroot}
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%files
Chris Weyl 54fd0c0
%defattr(-,root,root,-)
Chris Weyl 54fd0c0
%doc Changes README TODO t/
Chris Weyl 54fd0c0
%{_bindir}/*
Chris Weyl 54fd0c0
%{perl_vendorlib}/*
Chris Weyl 54fd0c0
%{_mandir}/man[13]/*
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
%changelog
Chris Weyl 53f4caf
* Sun May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.3.0-1
Chris Weyl 53f4caf
- auto-update to 1.3.0 (by cpan-spec-update 0.01)
Chris Weyl 53f4caf
- added a new br on perl(List::Util) (version 0)
Chris Weyl 53f4caf
0369a85
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
0369a85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0369a85
8b4726e
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-4
8b4726e
- rebuild for new perl
8b4726e
Chris Weyl 8de1e2f
* Wed May 16 2007 Chris Weyl <cweyl@alumni.drew.edu> v1.2.1-3
Chris Weyl 8de1e2f
- bump
Chris Weyl 8de1e2f
Chris Weyl 54fd0c0
* Wed May 16 2007 Chris Weyl <cweyl@alumni.drew.edu> v1.2.1-2
Chris Weyl 54fd0c0
- additional BR for test suite: perl(IO::Scalar)
Chris Weyl 54fd0c0
Chris Weyl 54fd0c0
* Mon May 14 2007 Chris Weyl <cweyl@alumni.drew.edu> v1.2.1-1
Chris Weyl 54fd0c0
- Specfile autogenerated by cpanspec 1.71.