3 %bcond_with tests # perform "make test"
4 # Text::TabularDisplay 1.21 not available yet
6 %include /usr/lib/rpm/macros.perl
8 %define pnam RecordParser
9 Summary: Text::RecordParser - read record-oriented files
10 Summary(pl): Text::RecordParser - odczyt plików rekordowych
11 Name: perl-Text-RecordParser
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: db2490a5548247da8d393f945d9a245e
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Text-TabularDisplay >= 1.21
23 BuildConflicts: perl-Text-TabularDisplay = 1.20
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module is for reading record-oriented data. The most common
30 example have records separated by newlines and fields separated by
31 commas or tabs, but this module aims to provide a consistent interface
32 for handling sequential records in a file however they may be
33 delimited. Typically this data lists the fields in the first line of
34 the file, in which case you should call bind_header to bind the field
35 name. If the first line contains data, you can still bind your own
36 field names via bind_fields. Either way, you can then use many methods
37 to get at the data as arrays or hashes.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc Changes INSTALL TODO
64 %attr(755,root,root) %{_bindir}/*
65 %{perl_vendorlib}/Text/*.pm