3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam TabularDisplay
8 Summary: Text::TabularDisplay - Display text in formatted table output
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: 045a7a8042bb3f8da5b81c909f036b0e
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
38 %{?with_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorlib}/Text/*.pm
57 %{_examplesdir}/%{name}-%{version}