File perl-Any-Template.spec of Package perl-Any-Template
#
# spec file for package perl-Any-Template
#
# Copyright (c) 2016 SUSE LINUX 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-Any-Template
Version: 1.015
Release: 0
%define cpan_name Any-Template
Summary: Provide a Consistent Interface to a Wide Array of Templating Languages
License: (c) BBC 2005. This program is free software and you can redistribute it and/or modify it under the GNU GPL. See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Any-Template/
Source0: http://www.cpan.org/authors/id/B/BB/BBC/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Log::Trace)
BuildRequires: perl(Test::Assertions)
Requires: perl(Log::Trace)
Requires: perl(Test::Assertions)
%{perl_requires}
%description
This module provides a simple, consistent interface to common templating
engines so you can write code that is agnostic to the template language
used in the presentation layer. This means you can allow your interface
developers to work in the templating language they're happiest in or write
code that works with legacy/in-house templating modules but can also be
released onto CPAN and work with more standard CPAN templating systems.
By its very nature, this interface only exposes pretty much the lowest
common denominator of the template engine APIs. It does however provide a
fairly rich set of input and output mechanisms, using native
implementations where available and providing some default implementations
to extend the default set offered by some templating modules.
If you need the quirky features of a particular templating engine, then
this may not be for you. Having said that, in some cases you may be able to
encapsulate some of your logic in options passed into the adaptor classes
(either rolling your own adaptors, or improving ours) to pull the relevant
strings on the backend module.
Templateing languages supported by backends supplied with this distribution
can be found in the README (remember there may be others out there and you
can always roll your own).
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes COPYING README
%changelog