perl-Template-Tiny/perl-Template-Tiny.spec

60 lines
1.9 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
Name: perl-Template-Tiny
Version: 0.11
Release: 0
Summary: Template Toolkit reimplemented in as little code as possible
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Template-Tiny-%{version}.tar.gz
URL: http://search.cpan.org/dist/Template-Tiny
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Capture::Tiny) >= 0.07
Requires: perl(Capture::Tiny) >= 0.07
%description
Template::Tiny is a reimplementation 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}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes LICENSE README
%dir %{perl_vendorlib}/Template
%{perl_vendorlib}/Template/Tiny.pm
%dir %{perl_vendorarch}/auto/Template
%{perl_vendorarch}/auto/Template/Tiny
%doc %{perl_man3dir}/Template::Tiny.%{perl_man3ext}%{ext_man}