]>
Commit | Line | Data |
---|---|---|
d96fac8a AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4cd51906 | 4 | |
01ebf0c9 | 5 | %define pdir Text |
6 | %define pnam Table | |
4cd51906 | 7 | %include /usr/lib/rpm/macros.perl |
d96fac8a | 8 | Summary: Text::Table - Organize Data in Tables |
1316d00d | 9 | Summary(pl.UTF-8): Text::Table - organizowanie danych w tabelach |
d96fac8a | 10 | Name: perl-Text-Table |
c41e8c33 | 11 | Version: 1.124 |
cceb211e | 12 | Release: 1 |
d96fac8a AM |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
c41e8c33 | 17 | # Source0-md5: ea52bf0a1ca109c6612b42113c1d9142 |
4cd51906 | 18 | URL: http://search.cpan.org/dist/Text-Table/ |
d96fac8a | 19 | BuildRequires: perl-Text-Aligner |
2de25cae | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d96fac8a AM |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
2de25cae JB |
25 | Organization of data in table form is a time-honored and useful method |
26 | of data representation. While columns of data are trivially generated | |
27 | by computer through formatted output, even simple tasks like keeping | |
28 | titles aligned with the data columns are not trivial, and the one-shot | |
29 | solutions one comes up with tend to be particularly hard to maintain. | |
30 | Text::Table allows you to create and maintain tables that adapt to | |
31 | alignment requirements as you use them. | |
32 | ||
abb45ee5 JR |
33 | %description -l pl.UTF-8 |
34 | Organizowanie danych w postaci tabel jest szanującą czas i przydatną | |
35 | metodą reprezentacji danych. Kiedy kolumny danych są trywialnie | |
36 | wygenerowane przez komputer poprzez sformatowane wyjście, nawet proste | |
37 | zadania, takie jak utrzymywanie tytułów wyrównanych z kolumnami | |
38 | danych, nie są trywialne, a doraźne rozwiązania stają się trudne do | |
2de25cae | 39 | utrzymania. Text::Table pozwala na tworzenie i utrzymywanie tabel |
abb45ee5 | 40 | adaptujących się podczas używania do wymagań dotyczących wyrównania. |
d96fac8a AM |
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 README | |
64 | %{perl_vendorlib}/Text/Table.pm | |
65 | %{_mandir}/man3/* |