2013-06-04 12:10:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Template-Tiny
|
|
|
|
#
|
2021-02-03 10:42:59 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-06-04 12:10:55 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-02-03 10:42:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-04 12:10:55 +00:00
|
|
|
#
|
|
|
|
|
2010-12-27 12:14:00 +00:00
|
|
|
|
2021-02-03 10:42:59 +00:00
|
|
|
%define cpan_name Template-Tiny
|
2010-12-27 12:14:00 +00:00
|
|
|
Name: perl-Template-Tiny
|
2021-05-04 14:39:39 +00:00
|
|
|
Version: 1.14
|
2010-12-27 12:14:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Template Toolkit reimplemented in as little code as possible
|
2021-02-03 10:42:59 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-06-04 12:10:55 +00:00
|
|
|
BuildArch: noarch
|
2010-12-27 12:14:00 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-04 12:10:55 +00:00
|
|
|
%{perl_requires}
|
2010-12-27 12:14:00 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-04 12:10:55 +00:00
|
|
|
*Template::Tiny* is a reimplementation of a subset of the functionality
|
2021-02-03 10:42:59 +00:00
|
|
|
from Template Toolkit in as few lines of code as possible.
|
2013-06-04 12:10:55 +00:00
|
|
|
|
2010-12-27 12:14:00 +00:00
|
|
|
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
|
2013-06-04 12:10:55 +00:00
|
|
|
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.
|
2010-12-27 12:14:00 +00:00
|
|
|
|
|
|
|
%prep
|
2021-02-03 10:42:59 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2010-12-27 12:14:00 +00:00
|
|
|
|
|
|
|
%build
|
2021-02-03 10:42:59 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2013-06-04 12:10:55 +00:00
|
|
|
|
|
|
|
%check
|
2021-02-03 10:42:59 +00:00
|
|
|
make test
|
2010-12-27 12:14:00 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-06-04 12:10:55 +00:00
|
|
|
%perl_gen_filelist
|
2010-12-27 12:14:00 +00:00
|
|
|
|
2013-06-04 12:10:55 +00:00
|
|
|
%files -f %{name}.files
|
2021-02-03 10:42:59 +00:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENSE
|
2010-12-27 12:14:00 +00:00
|
|
|
|
2013-06-04 12:10:55 +00:00
|
|
|
%changelog
|