]> git.pld-linux.org Git - packages/perl-Text-RecordParser.git/blame - perl-Text-RecordParser.spec
- tabs in preamble
[packages/perl-Text-RecordParser.git] / perl-Text-RecordParser.spec
CommitLineData
b10270af 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
9Summary: Text::RecordParser - read record-oriented files
8022b601 10Summary(pl.UTF-8): Text::RecordParser - odczyt plików rekordowych
b10270af 11Name: perl-Text-RecordParser
12Version: 0.08
13Release: 1
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
17Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18# Source0-md5: db2490a5548247da8d393f945d9a245e
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-Text-TabularDisplay >= 1.21
23BuildConflicts: perl-Text-TabularDisplay = 1.20
24%endif
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
bf715bba 29This module is for reading record-oriented data. The most common
30example have records separated by newlines and fields separated by
31commas or tabs, but this module aims to provide a consistent interface
32for handling sequential records in a file however they may be
33delimited. Typically this data lists the fields in the first line of
34the file, in which case you should call bind_header to bind the field
35name. If the first line contains data, you can still bind your own
36field names via bind_fields. Either way, you can then use many methods
37to get at the data as arrays or hashes.
b10270af 38
ca1008b4
JR
39%description -l pl.UTF-8
40Ten moduł służy do czytania danych zorientowanych rekordowo.
41Najpopularniejszy przykład to rekordy oddzielone nowymi liniami i pola
42oddzielone przecinkami lub tabulatorami, ale celem tego modułu jest
43dostarczenie spójnego interfejsu do obsługi sekwencyjnych rekordów w
44pliku niezależnie od sposobu ich rozdzielenia. Typowo dane te
45określają pola w pierwszej linii pliku - w tym przypadku należy
46wywołać bind_header aby podpiąć nazwy pól. Jeśli pierwsza linia
47zawiera dane, nadal można podpiąć własne nazwy pól poprzez
48bind_fields. W każdym przypadku można potem używać wielu metod
403cdcff 49pobierania danych jako tablice lub hasze.
b10270af 50
51%prep
52%setup -q -n %{pdir}-%{pnam}-%{version}
53
54%build
55%{__perl} Makefile.PL \
56 INSTALLDIRS=vendor
57%{__make}
58
59%{?with_tests:%{__make} test}
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64%{__make} install \
65 DESTDIR=$RPM_BUILD_ROOT
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc Changes INSTALL TODO
73%attr(755,root,root) %{_bindir}/*
74%{perl_vendorlib}/Text/*.pm
75%{_mandir}/man?/*
This page took 0.284849 seconds and 4 git commands to generate.