3 %bcond_without tests # do not perform "make test"
6 %define pnam SimpleTable
7 Summary: Text::SimpleTable - Simple Eyecandy ASCII Tables
8 Summary(pl.UTF-8): Text::SimpleTable - proste, ładne tabele ASCII
9 Name: perl-Text-SimpleTable
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a79a1f53846c111e8f6056702c39fa17
17 URL: http://search.cpan.org/dist/Text-SimpleTable/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Simple eyecandy ASCII tables, as seen in Catalyst.
27 %description -l pl.UTF-8
28 Proste, ładne tabele ASCII, takie jakie można zobaczyć w Catalyście.
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}