%define module HTML-Template-Expr %define name perl-%{module} %define version 0.07 %define release %mkrel 3 Name: %{name} Version: %{version} Release: %{release} Summary: HTML::Template extension adding expression support License: GPL or Artistic Group: Development/Perl Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/HTML/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(HTML::Template) BuildRequires: perl(Parse::RecDescent) BuildRequires: perl(Test::Simple) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This module provides an extension to HTML::Template which allows expressions in the template syntax. This is purely an addition - all the normal HTML::Template options, syntax and behaviors will still work. %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 Changes README %{perl_vendorlib}/HTML %{_mandir}/*/* %changelog * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.07-3mdv2009.0 + Revision: 257208 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.07-1mdv2008.1 + Revision: 122695 - kill re-definition of %%buildroot on Pixel's request * Wed Apr 19 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.07-1mdk - New release 0.07 - better source URL - better buildrequires syntax * Mon Mar 06 2006 Guillaume Rousse <guillomovitch@mandriva.org> 0.06-1mdk - New release 0.06 * Tue Dec 27 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.05-1mdk - New release 0.05 - spec cleanup - drop explicit requires - drop useless buildrequires versionning - fix sources URL - better summary and description - %%mkrel * Wed Sep 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.04-4mdk - rebuild * Tue Aug 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.04-3mdk - rebuild - rm -rf /home/guillomovitch/rpm/tmp/perl-HTML-Template-Expr-0.07 in %%install, not %%build - use %%makeinstall_std macro - drop $RPM_OPT_FLAGS, noarch..