File perl-Any-Renderer.spec of Package perl-Any-Renderer
#
# spec file for package perl-Any-Renderer
#
# 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-Renderer
Version: 1.014
Release: 0
%define cpan_name Any-Renderer
Summary: Common API for modules that convert data structures into strings
License: (c) BBC 2006. 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-Renderer/
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
A renderer in this context is something that turns a data structure into a
string. This includes templating engines, serialisers etc.
This module provides a consistent API to these services so that your
application can generate output in an extensible variety of formats.
Formats currently supported include:
- XML (via XML::Simple)
- XML+XSLT
- Data::Dumper
- Javascript, Javascript::Anon & JSON
- UrlEncoded
- The formats supported by Data::Serializer (e.g. Config::General and Config::Wrest)
- Any templating language supported by Any::Template
The module will discover any backend modules and offer up their formats.
Once loaded, Any::Renderer will look for a module to handle any new formats
it doesn't know about, so adding new formats in a persistent environment
won't require the module to be reloaded. However if you CHANGE which module
provides a format you will need to reload Any::Renderer (e.g. send a SIGHUP
to modperl).
%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