]> git.pld-linux.org Git - packages/perl-Text-RecordParser.git/blob - perl-Text-RecordParser.spec
4ad4e4c1b9367a99a1819ec81a7560fc9bedf5cd
[packages/perl-Text-RecordParser.git] / perl-Text-RecordParser.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # perform "make test"
4                                 # Text::TabularDisplay 1.21 not available yet
5 #
6 %include        /usr/lib/rpm/macros.perl
7 %define pdir    Text
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
12 Version:        0.08
13 Release:        1
14 # same as perl
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
21 %if %{with tests}
22 BuildRequires:  perl-Text-TabularDisplay >= 1.21
23 BuildConflicts: perl-Text-TabularDisplay = 1.20
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
38
39 # %description -l pl
40 # TODO
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes INSTALL TODO
64 %attr(755,root,root) %{_bindir}/*
65 %{perl_vendorlib}/Text/*.pm
66 %{_mandir}/man?/*
This page took 0.081878 seconds and 3 git commands to generate.