File perl-Template-Toolkit.spec of Package perl-Template-Toolkit

# spec file for package perl-Template-Toolkit
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-Template-Toolkit
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary:        Template Processing System
Version:        2.22
Release:        10.<RELEASE2>
License:        Artistic License ..
Group:          Development/Libraries/Perl
Source:         %{cpan_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#BuildRequires:  perl-AppConfig perl-DBI perl-Date-Calc perl-XML-DOM perl-XML-Parser
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Date::Calc)
BuildRequires:  perl(DBI)
BuildRequires:  perl(Image::Size)
BuildRequires:  perl(Pod::POM)
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
BuildRequires:  perl(Text::Autoformat)
BuildRequires:  perl(XML::DOM)
BuildRequires:  perl(AppConfig) >= 1.56
BuildRequires:  perl(File::Spec) >= 0.8
BuildRequires:  perl(File::Temp) >= 0.12
BuildRequires:  perl(Scalar::Util)
Requires:       perl(AppConfig) >= 1.56
Requires:       perl(File::Spec) >= 0.8
Requires:       perl(Scalar::Util)
# not defined but needed
Requires:       perl(Data::Dumper)
Requires:       perl(Pod::POM)
# should normally provide perl(Template::Toolkit) but it doesn't
Provides:       perl(Template::Toolkit) = %{version}

The Template Toolkit is a collection of modules which implement a
fast, flexible, powerful and extensible template processing system.
It was originally designed and remains primarily useful for generating
dynamic web content, but it can be used equally well for processing
any other kind of text based documents: HTML, XML, POD, PostScript,
LaTeX, and so on.

It can be used as a stand-alone Perl module or embedded within an
Apache/mod_perl server for generating highly configurable dynamic web
content.  A number of Perl scripts are also provided which can greatly
simplify the process of creating and managing static web content and 
other offline document systems.

  Authors:	Andy Wardley <>
%setup -q -n %{cpan_name}-%{version}

perl Makefile.PL
%{__make} %{?_smp_mflags}

%{__make} test


%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
# normally you only need to check for doc files