|
|
4a782f |
Name: perl-Template-Toolkit
|
|
|
4a782f |
Version: 2.24
|
|
|
4a782f |
Release: 5%{?dist}
|
|
|
4a782f |
Summary: Template processing system
|
|
|
4a782f |
Group: Development/Libraries
|
|
|
4a782f |
License: GPL+ or Artistic
|
|
|
4a782f |
URL: http://www.template-toolkit.org/
|
|
|
4a782f |
Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
|
|
|
4a782f |
Source1: http://tt2.org/download/TT_v224_html_docs.tar.gz
|
|
|
4a782f |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
4a782f |
|
|
|
4a782f |
BuildRequires: perl(AppConfig)
|
|
|
4a782f |
BuildRequires: perl(Cwd)
|
|
|
4a782f |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
4a782f |
BuildRequires: perl(File::Spec::Functions)
|
|
|
4a782f |
BuildRequires: perl(lib)
|
|
|
4a782f |
# Run-time:
|
|
|
4a782f |
BuildRequires: perl(base)
|
|
|
4a782f |
BuildRequires: perl(CGI)
|
|
|
4a782f |
BuildRequires: perl(constant)
|
|
|
4a782f |
BuildRequires: perl(Data::Dumper)
|
|
|
4a782f |
BuildRequires: perl(Encode)
|
|
|
4a782f |
BuildRequires: perl(Exporter)
|
|
|
4a782f |
BuildRequires: perl(File::Path)
|
|
|
4a782f |
BuildRequires: perl(File::Spec)
|
|
|
4a782f |
BuildRequires: perl(File::Temp)
|
|
|
4a782f |
# Prefer Image::Info over Image::Size
|
|
|
4a782f |
BuildRequires: perl(Image::Info)
|
|
|
4a782f |
BuildRequires: perl(Pod::POM)
|
|
|
4a782f |
BuildRequires: perl(Scalar::Util)
|
|
|
4a782f |
BuildRequires: perl(Text::Wrap)
|
|
|
4a782f |
# Tests:
|
|
|
4a782f |
BuildRequires: perl(Carp)
|
|
|
4a782f |
BuildRequires: perl(Test::More)
|
|
|
4a782f |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
4a782f |
Requires: perl(AppConfig)
|
|
|
4a782f |
Requires: perl(Encode)
|
|
|
4a782f |
Requires: perl(File::Temp)
|
|
|
4a782f |
# Prefer Image::Info over Image::Size
|
|
|
4a782f |
Requires: perl(Image::Info)
|
|
|
4a782f |
Provides: perl-Template-Toolkit-examples = %{version}-%{release}
|
|
|
4a782f |
Obsoletes: perl-Template-Toolkit-examples < 2.22-1
|
|
|
4a782f |
|
|
|
4a782f |
%{?filter_setup:
|
|
|
4a782f |
%filter_from_provides /^perl(bytes)$/d
|
|
|
4a782f |
%?perl_default_filter
|
|
|
4a782f |
}
|
|
|
4a782f |
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(bytes\\)
|
|
|
4a782f |
|
|
|
4a782f |
%description
|
|
|
4a782f |
The Template Toolkit is a collection of modules which implement a
|
|
|
4a782f |
fast, flexible, powerful and extensible template processing system.
|
|
|
4a782f |
It was originally designed and remains primarily useful for generating
|
|
|
4a782f |
dynamic web content, but it can be used equally well for processing
|
|
|
4a782f |
any other kind of text based documents: HTML, XML, POD, PostScript,
|
|
|
4a782f |
LaTeX, and so on.
|
|
|
4a782f |
|
|
|
4a782f |
%prep
|
|
|
4a782f |
%setup -q -n Template-Toolkit-%{version} -a 1
|
|
|
4a782f |
find lib -type f | xargs chmod -c -x
|
|
|
4a782f |
find TT_v*_html_docs -depth -name .svn -type d -exec rm -rf {} \;
|
|
|
4a782f |
find TT_v*_html_docs -type f -exec chmod -x {} +;
|
|
|
4a782f |
|
|
|
4a782f |
# Convert file to UTF-8
|
|
|
4a782f |
iconv -f iso-8859-1 -t utf-8 -o Changes{.utf8,}
|
|
|
4a782f |
mv Changes{.utf8,}
|
|
|
4a782f |
|
|
|
4a782f |
%build
|
|
|
4a782f |
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor \
|
|
|
4a782f |
TT_DBI=n TT_ACCEPT=y
|
|
|
4a782f |
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
4a782f |
|
|
|
4a782f |
%install
|
|
|
4a782f |
rm -rf $RPM_BUILD_ROOT
|
|
|
4a782f |
# install (+ INSTALLARCHLIB) instead of pure_install to get docs
|
|
|
4a782f |
# and the template library installed too
|
|
|
4a782f |
make install \
|
|
|
4a782f |
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
|
|
|
4a782f |
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} \
|
|
|
4a782f |
TT_PREFIX=$RPM_BUILD_ROOT%{_datadir}/tt2
|
|
|
4a782f |
find $RPM_BUILD_ROOT -type f \( -name perllocal.pod -o \
|
|
|
4a782f |
-name .packlist -o -name '*.bs' -size 0 \) -exec rm -f {} ';'
|
|
|
4a782f |
find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir -f {} ';'
|
|
|
4a782f |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
4a782f |
# Nuke buildroot where it hides
|
|
|
4a782f |
sed -i "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{perl_vendorarch}/Template/Config.pm
|
|
|
4a782f |
|
|
|
4a782f |
%check
|
|
|
4a782f |
make test
|
|
|
4a782f |
|
|
|
4a782f |
%clean
|
|
|
4a782f |
rm -rf $RPM_BUILD_ROOT
|
|
|
4a782f |
|
|
|
4a782f |
%files
|
|
|
4a782f |
%defattr(-,root,root,-)
|
|
|
4a782f |
%doc Changes HACKING README TODO TT_v*_html_docs/*
|
|
|
4a782f |
%{_bindir}/tpage
|
|
|
4a782f |
%{_bindir}/ttree
|
|
|
4a782f |
%{perl_vendorarch}/Template.pm
|
|
|
4a782f |
%{perl_vendorarch}/auto/Template
|
|
|
4a782f |
%{perl_vendorarch}/Template
|
|
|
4a782f |
%{_mandir}/man1/*.1*
|
|
|
4a782f |
%{_mandir}/man3/*.3*
|
|
|
4a782f |
|
|
|
4a782f |
%changelog
|
|
|
4a782f |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.24-5
|
|
|
4a782f |
- Mass rebuild 2014-01-24
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.24-4
|
|
|
4a782f |
- Mass rebuild 2013-12-27
|
|
|
4a782f |
|
|
|
4a782f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24-3
|
|
|
4a782f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Nov 09 2012 Petr Pisar <ppisar@redhat.com> - 2.24-2
|
|
|
4a782f |
- Remove executable bit from documentation
|
|
|
4a782f |
|
|
|
4a782f |
* Thu Aug 23 2012 Tom Callaway <spot@fedoraproject.org> - 2.24-1
|
|
|
4a782f |
- update to 2.24
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Aug 21 2012 Petr Pisar <ppisar@redhat.com> - 2.22-14
|
|
|
4a782f |
- Correct dependencies
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-13
|
|
|
4a782f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 2.22-12
|
|
|
4a782f |
- Perl 5.16 rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-11
|
|
|
4a782f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Mon Jul 25 2011 Iain Arnell <iarnell@gmail.com> 2.22-10
|
|
|
4a782f |
- update filtering for rpm 4.9
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 2.22-9
|
|
|
4a782f |
- Perl mass rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-8
|
|
|
4a782f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.22-7
|
|
|
4a782f |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
4a782f |
|
|
|
4a782f |
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.22-6
|
|
|
4a782f |
- Mass rebuild with perl-5.12.0
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Feb 9 2010 Stepan Kasal <skasal@redhat.com> - 2.22-5
|
|
|
4a782f |
- delete the buildroot before install
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.22-4
|
|
|
4a782f |
- use filtering macros
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.22-3
|
|
|
4a782f |
- drop build requirements for TeX; LaTeX support has been removed in 2.14a
|
|
|
4a782f |
- fix the Obsoletes tag
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.22-2
|
|
|
4a782f |
- rebuild against perl 5.10.1
|
|
|
4a782f |
|
|
|
4a782f |
* Sat Jul 25 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.22-1
|
|
|
4a782f |
- update to 2.22
|
|
|
4a782f |
- obsolete examples package, upstream got rid of them
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.20-1
|
|
|
4a782f |
- update to 2.20
|
|
|
4a782f |
|
|
|
4a782f |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-5
|
|
|
4a782f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-4
|
|
|
4a782f |
- Rebuild for perl 5.10 (again)
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.19-3
|
|
|
4a782f |
- Autorebuild for GCC 4.3
|
|
|
4a782f |
|
|
|
4a782f |
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-2
|
|
|
4a782f |
- rebuild for new perl
|
|
|
4a782f |
|
|
|
4a782f |
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-1
|
|
|
4a782f |
- 2.19
|
|
|
4a782f |
- license tag fix
|
|
|
4a782f |
- rebuild for BuildID
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Feb 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.18-1
|
|
|
4a782f |
- go to 2.18
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.15-2
|
|
|
4a782f |
- bump for fc6
|
|
|
4a782f |
|
|
|
4a782f |
* Mon May 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.15-1
|
|
|
4a782f |
- bump to 2.15
|
|
|
4a782f |
- gd test is gone, don't need to patch anything
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-8
|
|
|
4a782f |
- really resolve bug 173756
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-7
|
|
|
4a782f |
- use proper TT_PREFIX setting everywhere, resolve bug 173756
|
|
|
4a782f |
|
|
|
4a782f |
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-6
|
|
|
4a782f |
- bump for FC-5
|
|
|
4a782f |
|
|
|
4a782f |
* Mon Jul 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-5
|
|
|
4a782f |
- don't need Tie::DBI as a BuildRequires, since we're not running
|
|
|
4a782f |
the tests
|
|
|
4a782f |
|
|
|
4a782f |
* Mon Jul 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-4
|
|
|
4a782f |
- put examples in their own subpackage
|
|
|
4a782f |
|
|
|
4a782f |
* Sat Jul 9 2005 Ville Skyttä <ville.skytta at iki.fi> - 2.14-3
|
|
|
4a782f |
- Filter false positive provides.
|
|
|
4a782f |
- Include template library, switch to %%{_datadir}/tt2.
|
|
|
4a782f |
- Tune build dependencies for full test suite coverage.
|
|
|
4a782f |
- Fix and enable GD tests.
|
|
|
4a782f |
- Include more documentation.
|
|
|
4a782f |
- Fine tune dir ownerships and file permissions.
|
|
|
4a782f |
|
|
|
4a782f |
* Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-2
|
|
|
4a782f |
- cleanups
|
|
|
4a782f |
|
|
|
4a782f |
* Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-1
|
|
|
4a782f |
- Initial package for Fedora Extras
|