%define module HTML-Template %define name perl-%{module} %define version 2.9 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: Perl module to use HTML Templates from CGI scripts License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(CGI) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This module attempts make using HTML templates simple and natural. It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>, <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file written with HTML and these new tags is called a template. It is usually saved separate from your script - possibly even created by someone else! Using this module you fill in the values for the variables, loops and branches declared in the template. This allows you to separate design - the HTML - from the data, which you generate in the Perl script. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %{makeinstall_std} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ANNOUNCE ARTISTIC Changes FAQ README %{perl_vendorlib}/HTML %{_mandir}/*/* %changelog * Wed Jun 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.9-3mdv2009.0 + Revision: 223791 - rebuild * Thu Mar 06 2008 Oden Eriksson <oeriksson@mandriva.com> 2.9-2mdv2008.1 + Revision: 180408 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue May 01 2007 Olivier Thauvin <nanardon@mandriva.org> 2.9-1mdv2008.0 + Revision: 20175 - buildrequires - 2.9 * Tue Dec 27 2005 Guillaume Rousse <guillomovitch@mandriva.org> 2.8-1mdk - New release 2.8 - spec cleanup - fix sources URL - better summary and description - %%mkrel * Thu Jul 08 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.7-1mdk - 2.7 - drop redundant requires * Thu Aug 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.6-5mdk - rebuild for new perl - drop $RPM_OPT_FLAGS - rm -rf /home/guillomovitch/rpm/tmp/perl-HTML-Template-2.8 in %%install, not %%build - use %%makeinstall_std macro * Wed May 28 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.6-4mdk - rebuild for new auto{prov,req} * Thu Jan 30 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.6-3mdk - rebuild * Thu Oct 24 2002 Lenny Cartier <lenny@mandrakesoft.com> 2.6-2mdk - from Peter Chen <petechen@netilla.com> : - Minor fix in spec file and source permission to appease rpmlint. * Wed Oct 23 2002 Peter Chen <petechen@netilla.com> 2.6-1mdk - 2.6 - First packaging.