0f35641
Name:           perl-HTML-Table
9719b5c
Version:        2.05
0f35641
Release:        1%{?dist}
0f35641
Summary:        Create HTML tables using simple interface
fa55b07
License:        GPL+ or Artistic
0f35641
Group:          Development/Libraries
0f35641
URL:            http://search.cpan.org/dist/HTML-Table/
0f35641
Source0:        http://www.cpan.org/modules/by-module/HTML/HTML-Table-%{version}.tar.gz
0f35641
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0f35641
BuildArch:      noarch
0f35641
BuildRequires:  perl
0f35641
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
0f35641
0f35641
0f35641
%description
0f35641
HTML::Table is used to generate HTML tables for CGI scripts.  By using the
0f35641
methods provided fairly complex tables can be created, manipulated, then
0f35641
 printed from Perl scripts.  The module also greatly simplifies creating
0f35641
tables within tables from Perl.  It is possible to create an entire table
0f35641
using the methods provided and never use an HTML tag.
0f35641
0f35641
HTML::Table also allows for creating dynamically sized tables via its addRow
0f35641
and addCol methods.  These methods automatically resize the table if passed
0f35641
more cell values than will fit in the current table grid.
0f35641
0f35641
Methods are provided for nearly all valid table, row, and cell tags specified
0f35641
for HTML 3.0.
0f35641
0f35641
0f35641
%prep
0f35641
%setup -q -n HTML-Table-%{version}
0f35641
for f in Changes Table.pm
0f35641
do
0f35641
   iconv -f ISO-8859-1 -t UTF-8 -o ${f}.UTF-8 $f
0f35641
   mv ${f}.UTF-8 $f
0f35641
done
0f35641
0f35641
0f35641
%build
0f35641
%{__perl} Makefile.PL INSTALLDIRS=vendor
0f35641
make %{?_smp_mflags}
0f35641
0f35641
0f35641
%install
0f35641
rm -rf $RPM_BUILD_ROOT
0f35641
0f35641
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
0f35641
0f35641
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
0f35641
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
0f35641
chmod -R u+w $RPM_BUILD_ROOT/*
0f35641
0f35641
0f35641
%check
0f35641
make test
0f35641
0f35641
0f35641
%clean
0f35641
rm -rf $RPM_BUILD_ROOT
0f35641
0f35641
0f35641
%files
0f35641
%defattr(-,root,root,-)
0f35641
%doc Changes README
0f35641
%{perl_vendorlib}/*
0f35641
%{_mandir}/man3/*
0f35641
0f35641
0f35641
%changelog
9719b5c
* Thu May 17 2007 Orion Poplawski <orion@cora.nwra.com> 2.05-1
9719b5c
- Update to 2.05
9719b5c
9719b5c
* Tue Nov  7 2006 Orion Poplawski <orion@cora.nwra.com> 2.04a-1
0f35641
- Update to 2.04a
0f35641
0f35641
* Wed Oct 12 2005 Orion Poplawski <orion@cora.nwra.com> 2.02-1
0f35641
- Specfile autogenerated.