]>
Commit | Line | Data |
---|---|---|
e6220363 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Text | |
7 | %define pnam TabularDisplay | |
ba740993 | 8 | Summary: Text::TabularDisplay - display text in formatted table output |
a750a6ee | 9 | Summary(pl.UTF-8): Text::TabularDisplay - wypisywanie tekstu w postaci tabelki |
e6220363 | 10 | Name: perl-Text-TabularDisplay |
b0888593 | 11 | Version: 1.22 |
e6220363 | 12 | Release: 1 |
13 | License: GPL v2 | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
b0888593 | 16 | # Source0-md5: b97f4041a8b718661be1451b84e75f91 |
e6220363 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Text::TabularDisplay simplifies displaying textual data in a table. | |
24 | The output is identical to the columnar display of query results in | |
25 | the mysql text monitor. | |
26 | ||
a750a6ee JR |
27 | %description -l pl.UTF-8 |
28 | Text::TabularDisplay upraszcza wyświetlanie danych tekstowych w | |
29 | tabeli. Wyjście jest identyczne do kolumnowego wyświetlania wyników | |
48781a9e | 30 | zapytania w tekstowym monitorze mysql. |
e6220363 | 31 | |
32 | %prep | |
33 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
34 | ||
35 | %build | |
36 | %{__perl} Makefile.PL \ | |
37 | INSTALLDIRS=vendor | |
38 | %{__make} | |
39 | ||
40 | %{?with_tests:%{__make} test} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
49 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Changes | |
57 | %{perl_vendorlib}/Text/*.pm | |
58 | %{_mandir}/man3/* | |
59 | %{_examplesdir}/%{name}-%{version} |