Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
perl-HTML-Table
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
perl-HTML-Table.spec
@@ -0,0 +1,75 @@ +Name: perl-HTML-Table +Version: 2.04a +Release: 1 +License: GPL +Group: Development/Libraries/Perl +Summary: Perl module HTML::Table +Summary(de): Perlmodul HTML::Table +URL: http://search.cpan.org/~ajpeacock/ +Source0: HTML-Table-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Packager: Carsten Schoene <cs@linux-administrator.com> +Vendor: linux-administrator.com +BuildRequires: glibc-devel libgcc gcc gcc-c++ perl +%if 0%{?fedora_version} >= 7 +BuildRequires: perl-ExtUtils-MakeMaker +%endif + +%description +HTML::Table is used to generate HTML tables for +CGI scripts. By using the methods provided fairly +complex tables can be created, manipulated, then printed +from Perl scripts. The module also greatly simplifies +creating tables within tables from Perl. It is possible +to create an entire table using the methods provided and +never use an HTML tag. + +HTML::Table also allows for creating dynamically sized +tables via its addRow and addCol methods. These methods +automatically resize the table if passed more cell values +than will fit in the current table grid. + +Methods are provided for nearly all valid table, row, and +cell tags specified for HTML 3.0. + +%prep +%setup -q -n HTML-Table-%{version} +perl Makefile.PL +%__make +%makeinstall DESTDIR=$RPM_BUILD_ROOT +%if 0%{?suse_version} +%perl_process_packlist +%else +find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null +%endif +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} + +%clean +rm -rf $RPM_BUILD_ROOT/* +rm -rf $RPM_BUILD_DIR/%{name}* + +%if 0%{?suse_version} +%files +%doc Changes README +/usr/share/man/man3/* +/var/adm/perl-modules/perl-HTML-Table +%ifarch %ix86 +%{perl_sitelib}/i586-linux-thread-multi +%endif +%ifarch x86_64 +%{perl_sitelib}/x86_64-linux-thread-multi +%endif +%{perl_sitelib}/HTML/* + +%else + +%files -f ../file.list.%{name} + +%endif + +%changelog +* Fri Feb 23 2007 Carsten Schoene <cs@linux-administrator.com> +- initial build of HTML::Table perl package which is required for flowscan