perl-Template-Toolkit/perl-Template-Toolkit.spec

Name: perl-Template-Toolkit
Summary: Comprehensive template processing system
Version: 2.22
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Template-Toolkit/
Description: 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.

CentOS 7 x86_64

The build could not start because the following file is missing: Template-Toolkit-2.22.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: Template-Toolkit-2.22.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Andy Wardley <abw$wardley,org>

### EL6 ships with perl-Template-Toolkit-2.22-5.el6
%{?el6:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Template-Toolkit

Summary: Comprehensive template processing system
Name: perl-Template-Toolkit
Version: 2.22
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Template-Toolkit/

Source: http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(AppConfig) > 1.56
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.8
BuildRequires: perl(File::Temp) >= 0.12
BuildRequires: perl(Scalar::Util)
%description
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.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" \
    TT_DBI="n" TT_XS_ENABLE="y" TT_ACCEPT="y"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" \
    TT_PREFIX="%{_datadir}/tt2"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install \
    PREFIX="%{buildroot}%{_prefix}" \
    TT_PREFIX="%{buildroot}%{_datadir}/tt2"
#   PERLPREFIX=%{buildroot}/usr \
#   SITEPREFIX=%{buildroot}/usr \
#   VENDORPREFIX=%{buildroot}/usr \

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes HACKING INSTALL MANIFEST META.yml README TODO
%doc %{_mandir}/man1/tpage.1*
%doc %{_mandir}/man1/ttree.1*
%doc %{_mandir}/man3/Template.3pm*
%doc %{_mandir}/man3/Template::*.3pm*
#%{_datadir}/tt2/
%{_bindir}/tpage
%{_bindir}/ttree
%{perl_vendorarch}/Template/
%{perl_vendorarch}/Template.pm
%{perl_vendorarch}/auto/Template/

%changelog
* Thu Aug 20 2009 Christoph Maser <cmr@financial.com> - 2.22-1
- Updated to version 2.22.

* Sun Jul 19 2009 Dag Wieers <dag@wieers.com> - 2.21-1
- Updated to release 2.21.

* Wed Sep 17 2008 Dag Wieers <dag@wieers.com> - 2.20-1
- Updated to release 2.20.

* Fri Oct  5 2007 Dave Miller <justdave@mozilla.com> - 2.19-1
- Updated to release 2.19.

* Fri Jun  2 2006 Dries Verachtert <dries@ulyssis.org> - 2.15-1
- Updated to release 2.15.

* Thu Nov 04 2004 Dries Verachtert <dries@ulyssis.org> - 2.14-1
- Initial package.