Looking for a sponsor (perl-Template-Toolkit)

Matthew Miller mattdm at mattdm.org
Tue Mar 22 16:42:31 UTC 2005


On Sun, Mar 20, 2005 at 10:39:22PM -0000, Jose Pedro Oliveira wrote:
> There are least two other perl-Template-toolkit packagers:
>   * Ville Skyttä
>     http://cachalot.mine.nu/3/SRPMS.extras/
>   * Dennis Gregorovic
>     http://gregorovic.net/fc3-autobuild-rpms/

Also, me. (Spec file follows; there's some BU-isms in it but nothing
spectacularly non-Fedoraish.)


> The problem with the GD test has already been located and there is
> already a patch for it (check the Ville Skyttä's SRPM).

(The patch in my spec file is basically the same as Ville Skyttä's, except
made by guesswork -- see <https://rt.cpan.org/NoAuth/Bug.html?id=7864> as
per the changelog in Ville's rpm. This is good, because hey, at least we're
not *completely* duplicating effort.)

Name: perl-Template-Toolkit
Version: 2.14
Release: %{bu_tag}1
Summary: Powerful and extensible template processing system for Perl

Group: Development/Libraries
License: GPL or Artistic
URL: http://search.cpan.org/dist/Template-Toolkit/
Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
#Source9999: <no upstream spec file -- this was locally generated>
# This works around a known bug. 
# See <http://rt.cpan.org/NoAuth/Bug.html?id=7864> for details.
Patch0: perl-Template-Toolkit-2.14-gdtest7kludge.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl >= 2:5.8.0
BuildRequires: tetex-latex, tetex-dvips
# I don't think the following really *need* to be there at build time,
# but they're good to have for the built tests.
BuildRequires: perl-Text-Autoformat, perl-DBI, perl-GD, perl-GDGraph
BuildRequires: perl-GDGraph3d, perl-Image-Info, perl-Image-Size
BuildRequires: perl-Pod-POM, perl-XML-RSS, perl-XML-XPath
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%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.

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.


%prep
%setup -q -n Template-Toolkit-%{version}
%patch0 -p1 -b .fixtest

%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor \
        TT_PREFIX=%{_datadir}/tt2 \
        TT_IMAGES=%{_prefix}/tt2/images \
        TT_DOCS=y \
        TT_SPLASH=y \
        TT_THEME=y \
        TT_EXAMPLES=n \
        TT_EXTRAS=y \
        TT_XS_ENABLE=y \
        TT_XS_DEFAULT=y \
        TT_EXAMPLES=n \
        TT_DBI=n \
        TT_LATEX=y \
        TT_QUIET=y \
        TT_ACCEPT=y

%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check || :
make test


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README TODO HACKING
%{_bindir}/tpage
%{_bindir}/ttree
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Template.pm
%{perl_vendorarch}/Template
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*


%changelog
* Fri Mar 11 2005 Matthew MIller <mattdm at bu.edu> - 2.14-bu45.1
- update for Velouria
- update to 2.14
- get rid of cpanflute filelist silliness
- generally prettify specfile (use Fedora template)
- add the check section

* Mon Apr 28 2003 Dave Heistand <dave at bu.edu> - 2.09-1
- fix /usr/usr/local problem

* Tue Jan 28 2003 David B Heistand <davidbh at bu.edu> - 2.08-8
- Specfile autogenerated.



-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>




More information about the fedora-extras-list mailing list