%define realname Catalyst-View-TT %define name perl-%{realname} %define modprefix Catalyst %define version 0.23 %define rel 2 %define release %mkrel %{rel} Summary: Catalyst TT View Class Name: %{name} Version: %{version} Release: %{release} License: Artistic/GPL Group: Development/Perl URL: http://search.cpan.org/dist/%{realname}/ Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{modprefix}/%{realname}-%{version}.tar.bz2 Patch0: Catalyst-View-TT-subclass.patch %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl-Catalyst >= 5.50 BuildRequires: perl(Path::Class) BuildRequires: perl(Template) BuildRequires: perl(Template::Timer) BuildArch: noarch Buildroot: %{_tmppath}/%{name}-root %description This is the Catalyst view class for the Template Toolkit. Your application should defined a view class which is a subclass of this module. The easiest way to achieve this is using the myapp_create.pl script (where myapp should be replaced with whatever your application is called). This script is created as part of the Catalyst setup. %prep %setup -q -n %{realname}-%{version} %patch0 -p0 -b .rgs %build %__perl Makefile.PL INSTALLDIRS=vendor %__make %check %__make test %install rm -rf %{buildroot} %makeinstall_std %files %defattr(-,root,root) %doc README Changes %{perl_vendorlib}/%{modprefix} %{_mandir}/*/* %clean rm -rf %{buildroot} %changelog * Mon May 29 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.23-2mdv2007.0 - Patch 0: allow to override the internal template class * Sat May 27 2006 Scott Karns <scottk@mandriva.org> 0.23-1mdv2007.0 - 0.23 * Fri May 05 2006 Scott Karns <scottk@mandriva.org> 0.22-3mdk - Update BuildRequires - Updated to comply with Mandriva perl packaging policy * Mon Mar 06 2006 Buchan Milne <bgmilne@mandriva.org> 0.22-2mdk - BuildRequire newer Catalyst (ease backport) * Fri Jan 27 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.22-1mdk - 0.22 * Tue Jan 03 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.21-1mdk - 0.21 * Fri Dec 16 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.20-1mdk - Initial MDV RPM