- updated to 1.12
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Template-Tiny?expand=0&rev=3
This commit is contained in:
parent
b5757b73e4
commit
61ce34dfbf
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7d2583bb186f8acbba05fcdbf51d52aaa3ef37fa8e0eb5d9dce99d3bed2f62c4
|
||||
size 16129
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 4 12:10:17 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 1.12
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 27 12:13:43 UTC 2010 - pascal.bleser@opensuse.org
|
||||
|
||||
|
@ -1,59 +1,70 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# spec file for package perl-Template-Tiny
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Template-Tiny
|
||||
Version: 0.11
|
||||
Version: 1.12
|
||||
Release: 0
|
||||
%define cpan_name Template-Tiny
|
||||
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
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
Requires: perl = %{perl_version}
|
||||
Url: http://search.cpan.org/dist/Template-Tiny/
|
||||
Source: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
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
|
||||
#BuildRequires: perl(Template::Tiny)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Template::Tiny is a reimplementation of a partial subset of the Template
|
||||
Toolkit in as few lines of code as possible.
|
||||
*Template::Tiny* is a reimplementation of a subset of the functionality
|
||||
from the Template manpage 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.
|
||||
future, or if you want the retain the familiarity of TT-style templates.
|
||||
|
||||
For the subset of functionality it implements, it has fully-compatible
|
||||
template and stash API. All templates used with *Template::Tiny* should be
|
||||
able to be transparently upgraded to full Template Toolkit.
|
||||
|
||||
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
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%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}
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user