3 %bcond_without tests # do not perform "make test"
6 %define pnam TabularDisplay
7 %include /usr/lib/rpm/macros.perl
8 Summary: Text::TabularDisplay - display text in formatted table output
9 Summary(pl.UTF-8): Text::TabularDisplay - wypisywanie tekstu w postaci tabelki
10 Name: perl-Text-TabularDisplay
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: abb13449751ae40c01747a443f0420b4
17 URL: http://search.cpan.org/dist/Text-TabularDisplay/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Text::TabularDisplay simplifies displaying textual data in a table.
25 The output is identical to the columnar display of query results in
26 the mysql text monitor.
28 %description -l pl.UTF-8
29 Text::TabularDisplay upraszcza wyświetlanie danych tekstowych w
30 tabeli. Wyjście jest identyczne do kolumnowego wyświetlania wyników
31 zapytania w tekstowym monitorze mysql.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Text/*.pm
60 %{_examplesdir}/%{name}-%{version}