summaryrefslogtreecommitdiff
path: root/perl-Data-Table.spec
blob: ee1251c7ca2f89effef8ca6c115fd855e607bae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Conditional build:
# _without_tests - do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define	pdir	Data
%define	pnam	Table
Summary:	Data::Table - Data type related to database tables, spreadsheets, etc
Summary(pl):	Data::Table - Typ danych dotyczący tabel bazodanowych, arkuszy kalkulacyjnych itp
Name:		perl-Data-Table
Version:	1.36
Release:	1
License:	GPL/Artistic
Group:		Development/Languages/Perl
Source0:	ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
URL:		http://www.geocities.com/easydatabase/
BuildRequires:	perl >= 5.6
BuildRequires:	rpm-perlprov >= 3.0.3-26
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This perl package uses perl5 objects to make it easy for manipulating
spreadsheet data among disk files, database, and Web publishing.

A table object contains a header and a two-dimensional array of
scalars. Three class methods allow users to create a table object from
a CSV/TSV file or a database SQL selection in a snap.

Table methods provide basic access, add, delete row(s) or column(s)
operations, as well as more advanced sub-table extraction, table
sorting, record matching via keywords or patterns, table merging, and
web publishing.

%description -l pl
Ten pakiet perlowy używa obiektów Perla 5, aby ułatwić manipulowanie
danymi arkuszy kalkulacyjnych w plikach na dysku, bazach danych i
publikacjach WWW.

Obiekt tabeli zawiera nagłówek i dwuwymiarową tablicę skalarów. Trzy
metody klasy pozwalają użytkownikom tworzyć obiekt tabeli z pliku
CSV/TSV lub wyniku zapytania z bazy danych SQL.

Metody tabeli umożliwiają podstawowe operacje dostępu, dodawania i
usuwania wierszy i kolumn, nieco bardziej zaawansowane wyciąganie
podtabel, sortowanie tabel, dopasowywanie rekordów po słowach
kluczowych lub wzorcach, łączenie tabel oraz publikowanie na WWW.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
perl Makefile.PL
%{__make}

%{!?_without_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%{perl_sitelib}/Data/*.pm
# empty autosplit.ix
#%dir %{perl_sitelib}/auto/Data/Table
#%{perl_sitelib}/auto/Data/Table/autosplit.ix
%{_mandir}/man3/*