]>
Commit | Line | Data |
---|---|---|
dad6a9a0 | 1 | # |
2 | # Conditional build: | |
263f44d9 | 3 | %bcond_without tests # do not perform "make test" |
4963cc27 | 4 | # |
dad6a9a0 | 5 | %include /usr/lib/rpm/macros.perl |
43af6d30 | 6 | %define pdir Data |
7 | %define pnam Table | |
c08e801b | 8 | Summary: Data::Table - data type related to database tables, spreadsheets, etc |
cdeee4c4 | 9 | Summary(pl.UTF-8): Data::Table - typ danych dotyczący tabel bazodanowych, arkuszy kalkulacyjnych itp. |
dad6a9a0 | 10 | Name: perl-Data-Table |
2c957902 | 11 | Version: 1.47 |
263f44d9 JB |
12 | Release: 1 |
13 | # same as perl | |
fd1753d0 | 14 | License: GPL v1+ or Artistic |
dad6a9a0 | 15 | Group: Development/Languages/Perl |
c6e33421 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
2c957902 | 17 | # Source0-md5: 40087b9c0945df52d78da475efe8ace3 |
dad6a9a0 | 18 | URL: http://www.geocities.com/easydatabase/ |
ac7dc588 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
74bb26f8 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
dad6a9a0 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This perl package uses perl5 objects to make it easy for manipulating | |
26 | spreadsheet data among disk files, database, and Web publishing. | |
27 | ||
28 | A table object contains a header and a two-dimensional array of | |
29 | scalars. Three class methods allow users to create a table object from | |
30 | a CSV/TSV file or a database SQL selection in a snap. | |
31 | ||
32 | Table methods provide basic access, add, delete row(s) or column(s) | |
33 | operations, as well as more advanced sub-table extraction, table | |
34 | sorting, record matching via keywords or patterns, table merging, and | |
35 | web publishing. | |
36 | ||
b6cd231f JR |
37 | %description -l pl.UTF-8 |
38 | Ten pakiet perlowy używa obiektów Perla 5, aby ułatwić manipulowanie | |
26740ccb JB |
39 | danymi arkuszy kalkulacyjnych w plikach na dysku, bazach danych i |
40 | publikacjach WWW. | |
41 | ||
b6cd231f JR |
42 | Obiekt tabeli zawiera nagłówek i dwuwymiarową tablicę skalarów. Trzy |
43 | metody klasy pozwalają użytkownikom tworzyć obiekt tabeli z pliku | |
26740ccb JB |
44 | CSV/TSV lub wyniku zapytania z bazy danych SQL. |
45 | ||
b6cd231f JR |
46 | Metody tabeli umożliwiają podstawowe operacje dostępu, dodawania i |
47 | usuwania wierszy i kolumn, nieco bardziej zaawansowane wyciąganie | |
48 | podtabel, sortowanie tabel, dopasowywanie rekordów po słowach | |
49 | kluczowych lub wzorcach, łączenie tabel oraz publikowanie na WWW. | |
dad6a9a0 | 50 | |
51 | %prep | |
52 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
53 | ||
54 | %build | |
74bb26f8 | 55 | %{__perl} Makefile.PL \ |
06143051 | 56 | INSTALLDIRS=vendor |
dad6a9a0 | 57 | %{__make} |
58 | ||
263f44d9 | 59 | %{?with_tests:%{__make} test} |
dad6a9a0 | 60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
263f44d9 JB |
64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
dad6a9a0 | 66 | |
2c957902 ER |
67 | # empty autosplit.ix |
68 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/auto/Data/Table/autosplit.ix | |
69 | ||
dad6a9a0 | 70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
74bb26f8 | 75 | %{perl_vendorlib}/Data/*.pm |
dad6a9a0 | 76 | %{_mandir}/man3/* |