Stephan Kulow 2013-06-04 12:10:55 +00:00 committed by Git OBS Bridge
parent b5757b73e4
commit 61ce34dfbf
3 changed files with 53 additions and 40 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d2583bb186f8acbba05fcdbf51d52aaa3ef37fa8e0eb5d9dce99d3bed2f62c4
size 16129

View File

@ -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 Mon Dec 27 12:13:43 UTC 2010 - pascal.bleser@opensuse.org

View File

@ -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 Name: perl-Template-Tiny
Version: 0.11 Version: 1.12
Release: 0 Release: 0
%define cpan_name Template-Tiny
Summary: Template Toolkit reimplemented in as little code as possible 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 License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Template-Tiny
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Perl License Url: http://search.cpan.org/dist/Template-Tiny/
BuildRoot: %{_tmppath}/build-%{name}-%{version} Source: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
Requires: perl = %{perl_version} BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: make #BuildRequires: perl(Template::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker) %{perl_requires}
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Capture::Tiny) >= 0.07
Requires: perl(Capture::Tiny) >= 0.07
%description %description
Template::Tiny is a reimplementation of a partial subset of the Template *Template::Tiny* is a reimplementation of a subset of the functionality
Toolkit in as few lines of code as possible. 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 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 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. future, or if you want the retain the familiarity of TT-style templates.
It is intended to have fully-compatible template and stash usage, with a
limited by similar Perl API. For the subset of functionality it implements, it has fully-compatible
Unlike Template Toolkit, Template::Tiny will process templates without a template and stash API. All templates used with *Template::Tiny* should be
compile phase (but despite this is still quicker, owing to heavy use of able to be transparently upgraded to full Template Toolkit.
the Perl regular expression engine.
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 %prep
%setup -q -n "Template-Tiny-%{version}" %setup -q -n %{cpan_name}-%{version}
%__sed -i '/^auto_install/d' Makefile.PL
%build %build
%__perl Makefile.PL PREFIX="%{_prefix}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%__make %{?jobs:-j%{jobs}} %{__make} %{?_smp_mflags}
%check
%{__make} test
%install %install
%perl_make_install %perl_make_install
%perl_process_packlist %perl_process_packlist
%perl_gen_filelist
%check %files -f %{name}.files
%__make test %defattr(-,root,root,755)
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes LICENSE README %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