Chris Weyl 54fd0c0
Name:           perl-Text-RecordParser
6ab3ff8
Version:        1.5.0
bf1e7ca
Release:        2%{?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/
6ab3ff8
Source0:        http://search.cpan.org/CPAN/authors/id/K/KC/KCLARK/Text-RecordParser-v%{version}.tar.gz
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 4b0c490
BuildRequires:  perl(List::Util)
Chris Weyl 54fd0c0
BuildRequires:  perl(Test::More)
Chris Weyl 54fd0c0
# cpan
Chris Weyl 4b0c490
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 4b0c490
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 4b0c490
# not automagically picked up...
Chris Weyl 4b0c490
Requires:       perl(Class::Accessor)
Chris Weyl 4b0c490
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
6ab3ff8
%setup -q -n Text-RecordParser-v%{version}
Chris Weyl 54fd0c0
Chris Weyl 4b0c490
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
./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
%files
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
bf1e7ca
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.5.0-2
bf1e7ca
- Perl mass rebuild
bf1e7ca
6ab3ff8
* Sat May 07 2011 Iain Arnell <iarnell@gmail.com> 1.5.0-1
6ab3ff8
- update to latest upstream version
6ab3ff8
- clean up spec for modern rpmbuild
6ab3ff8
e9a93b6
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
e9a93b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e9a93b6
0c53f49
* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.3.0-5
0c53f49
- 661697 rebuild for fixing problems with vendorach/lib
0c53f49
6ba67d3
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.3.0-4
6ba67d3
- Mass rebuild with perl-5.12.0
6ba67d3
05b9d85
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.3.0-3
05b9d85
- rebuild against perl 5.10.1
05b9d85
56a9640
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
56a9640
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
56a9640
Chris Weyl 4b0c490
* Sun May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.3.0-1
Chris Weyl 4b0c490
- auto-update to 1.3.0 (by cpan-spec-update 0.01)
Chris Weyl 4b0c490
- added a new br on perl(List::Util) (version 0)
Chris Weyl 4b0c490
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.