Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 5e8e7205de0f0737366adafcd2aba222 > files > 2

perl-HTML-Template-2.8-1mdk.src.rpm

%define module  HTML-Template
%define	name	perl-%{module}
%define version 2.8
%define release %mkrel 1

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
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
* 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 %{buildroot} 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.