auto-import perl-Template-Toolkit-2.14-4 on branch devel from

perl-Template-Toolkit-2.14-4.src.rpm
epel9
Tom Callaway 20 years ago
parent 2e82e66e93
commit 2f196d3699

@ -0,0 +1 @@
Template-Toolkit-2.14.tar.gz

@ -0,0 +1,30 @@
https://rt.cpan.org/NoAuth/Bug.html?id=7864
--- t/gd.t~ 2003-04-30 11:04:32.000000000 +0300
+++ t/gd.t 2005-03-14 02:49:02.956699022 +0200
@@ -84,7 +84,8 @@
-- test --
[% FILTER replace('.');
#
- # This is test3 from GD-1.xx/t/GD.t
+ # This is test4 from GD-2.23/t/GD.t (note *.png-1):
+ # od -vAn -w35 -tx1 test.out.4.png-1 | tr -d ' '
#
USE im = GD.Image(100,50);
black = im.colorAllocate(0, 0, 0);
@@ -96,13 +97,13 @@
END; -%][% im.png | hex -%]
-- expect --
89504e470d0a1a0a0000000d4948445200000064000000320203000000d75b962d0000
-000c504c5445000000ffffffff00000000ff011d334a000000bc49444154789cad94c1
+000c504c5445000000ffffffff00000000ff011d334a000000bc49444154388dad94c1
0d83300c451309ba01cc93117a203d3002d3f4403680037fca8a448526f1b710ea3fe6
c9f9b163db984b6ae4e3ce4755e7d64f88f2cf82787c151c0105eaf0ab708276ca0886
83bc7280d5919033a80c39826c1502a4a4fa1a608d6414c8e6c865e9ba560298894d32
926c9291680338636580b742e4a7ed8f7b10b2dc2272a27baafff5e1f9dca90eafb5f2
3ffc4f791ff0dee1fda6f428ef6b3e0bcafcf09953e694cfb6b20f941da2ec1dbeaba2
-b2fdf60111b64d2854ccf25e0000000049454e44ae426082
+b2fdf60111b64d28a110a5c20000000049454e44ae426082
-- test --
[% FILTER replace('.');
#

@ -0,0 +1,112 @@
Name: perl-Template-Toolkit
Version: 2.14
Release: 4%{?dist}
Summary: Template processing system
Group: Development/Libraries
License: GPL or Artistic
URL: http://www.template-toolkit.org/
Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
#Patch0: https://rt.cpan.org/NoAuth/Bug.html?id=7864
Patch0: %{name}-gdpngtest.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 1:5.6.1, tetex-dvips, tetex-latex
BuildRequires: perl(AppConfig), perl(Text::Autoformat), perl(GD::Graph3d), perl(GD::Graph)
BuildRequires: perl(GD::Text), perl(Image::Info), perl(Image::Size), perl(Pod::POM)
BuildRequires: perl(Tie::DBI), perl(XML::DOM), 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.
%package examples
Summary: Examples of how to use Template Toolkit
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description examples
%{summary}.
%prep
%setup -q -n Template-Toolkit-%{version}
%patch0 -p0
find lib -type f | xargs chmod -c -x
# Filter false positive provides.
cat <<EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} \
| grep -v 'perl(bytes)' \
| grep -v 'perl(CGI)' \
| grep -v 'perl(XML::DOM::' \
| grep -v 'perl(XML::XPath::'
EOF
%define __perl_provides %{_builddir}/Template-Toolkit-%{version}/%{name}-prov
chmod +x %{__perl_provides}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor \
TT_PREFIX=%{_datadir}/tt2 TT_DBI=n TT_ACCEPT=y
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT _docs
# install (+ INSTALLARCHLIB) instead of pure_install to get docs
# and the template library installed too
make install \
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} \
TT_PREFIX=$RPM_BUILD_ROOT%{_datadir}/tt2
find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
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/*
mkdir _docs ; mv $RPM_BUILD_ROOT%{_datadir}/tt2/docs _docs
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes HACKING README TODO _docs/*
%{_bindir}/tpage
%{_bindir}/ttree
%{perl_vendorarch}/Template.pm
%{perl_vendorarch}/auto/Template
%{perl_vendorarch}/Template
%{_datadir}/tt2
# The examples get their own package due to size.
%exclude %{_datadir}/tt2/examples
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%files examples
%defattr(-,root,root,-)
%{_datadir}/tt2/examples
%changelog
* Mon Jul 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-4
- put examples in their own subpackage
* Sat Jul 9 2005 Ville Skyttä <ville.skytta at iki.fi> - 2.14-3
- Filter false positive provides.
- Include template library, switch to %%{_datadir}/tt2.
- Tune build dependencies for full test suite coverage.
- Fix and enable GD tests.
- Include more documentation.
- Fine tune dir ownerships and file permissions.
* Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-2
- cleanups
* Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-1
- Initial package for Fedora Extras

@ -0,0 +1 @@
0eed60763ef2465c50f9b6a33e51cc14 Template-Toolkit-2.14.tar.gz
Loading…
Cancel
Save