Name: perl-Template-Tiny
Version: 0.11
Release: 1%{?dist}
Summary: Template Toolkit re-implemented in as little code as possible
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Template-Tiny/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Template-Tiny-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Capture::Tiny) >= 0.07
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.47
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
WARNING: THIS MODULE IS EXPERIMENTAL AND SUBJECT TO CHANGE WITHOUT NOTICE
Template::Tiny is a re-implementation of a partial subset of the Template
Toolkit, in as few lines of code as possible. It is intended for use in
light-usage, low-memory, or low-CPU templating situations, where you may
need to upgrade to the full feature set in the future, or if you want the
familiarity of TT-style templates. It is intended to have fully-compatible
template and stash usage, with a limited by similar Perl API. Unlike
Template Toolkit, Template::Tiny will process templates without a compile
phase (but despite this is still quicker, owing to heavy use of the Perl
regular expression engine.
%prep
%setup -q -n Template-Tiny-%{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 LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Jun 1 2010 Petr Pisar <ppisar@redhat.com> - 0.11-1
- 0.11 bump
- Fix spelling in summary and description
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.10-2
- Mass rebuild with perl-5.12.0
* Mon Feb 01 2010 Marcela Mašláňová <mmaslano@redhat.com> 0.10-1
- fix problems, update
* Wed Dec 23 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.09-1
- Specfile autogenerated by cpanspec 1.78.