Name: perl-Template-Plugin-DateTime-Format Version: 0.01 Release: 1%{?dist} Summary: Format DateTime objects from inside TT with DateTime::Format-style formatters License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Template-Plugin-DateTime-Format/ Source0: http://www.cpan.org/authors/id/J/JR/JROCKWAY/Template-Plugin-DateTime-Format-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Class::MOP) BuildRequires: perl(DateTime) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ok) BuildRequires: perl(Template) BuildRequires: perl(Test::More) Requires: perl(Class::MOP) Requires: perl(DateTime) Requires: perl(Template) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Oftentimes, you have a DateTime object that you want to render in your template. However, the default rendering (2008-01-01T01:23:45) is pretty ugly. Formatting the DateTime with a DateTime::Format object is the usual solution, but there's usually not a nice place to put the formatting code. %prep %setup -q -n Template-Plugin-DateTime-Format-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Feb 04 2010 Dave Cross 0.01-1 - Specfile autogenerated by cpanspec 1.78.