perl-Template-Toolkit-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. Name: perl-Template-Toolkit
  2. Version: 2.22
  3. Release: 1%{?_dist_release}
  4. Summary: Template processing system
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://www.template-toolkit.org/
  8. Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
  9. Source1: http://tt2.org/download/TT_v222_html_docs.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: perl(Test::More)
  12. BuildRequires: perl(AppConfig), perl(Text::Autoformat), perl(GD::Graph3d), perl(GD::Graph)
  13. BuildRequires: perl(GD::Text), perl(Image::Info), perl(Image::Size), perl(Pod::POM)
  14. BuildRequires: perl(XML::DOM), perl(XML::RSS), perl(XML::XPath)
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  16. Provides: perl-Template-Toolkit-examples = %{version}-%{release}
  17. Obsoletes: perl-Template-Toolkit-examples < 2.22-1
  18. %if "%{_dist_release}" > "vl6"
  19. %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(bytes\\)
  20. %else
  21. %global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl[(](bytes)[)]'"
  22. %define __perl_provides %{provfilt}
  23. %endif
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. %description
  27. The Template Toolkit is a collection of modules which implement a
  28. fast, flexible, powerful and extensible template processing system.
  29. It was originally designed and remains primarily useful for generating
  30. dynamic web content, but it can be used equally well for processing
  31. any other kind of text based documents: HTML, XML, POD, PostScript,
  32. LaTeX, and so on.
  33. %prep
  34. %setup -q -n Template-Toolkit-%{version} -a 1
  35. find lib -type f | xargs chmod -c -x
  36. find TT_v*_html_docs -depth -name .svn -type d -exec rm -rf {} \;
  37. # Convert file to UTF-8
  38. iconv -f iso-8859-1 -t utf-8 -o Changes{.utf8,}
  39. mv Changes{.utf8,}
  40. %build
  41. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor \
  42. TT_DBI=n TT_ACCEPT=y
  43. make %{?_smp_mflags} OPTIMIZE="%{optflags}"
  44. %install
  45. rm -rf %{buildroot}
  46. # install (+ INSTALLARCHLIB) instead of pure_install to get docs
  47. # and the template library installed too
  48. make install \
  49. PERL_INSTALL_ROOT=%{buildroot} \
  50. INSTALLARCHLIB=%{buildroot}%{perl_archlib} \
  51. TT_PREFIX=%{buildroot}%{_datadir}/tt2
  52. find %{buildroot} -type f \( -name perllocal.pod -o \
  53. -name .packlist -o -name '*.bs' -size 0 \) -exec rm -f {} ';'
  54. find %{buildroot} -depth -type d -empty -exec rmdir {} ';'
  55. chmod -R u+w %{buildroot}/*
  56. # Nuke buildroot where it hides
  57. sed -i "s|%{buildroot}||g" %{buildroot}%{perl_vendorarch}/Template/Config.pm
  58. %check
  59. make test
  60. %clean
  61. rm -rf %{buildroot}
  62. %files
  63. %defattr(-,root,root,-)
  64. %doc Changes HACKING README TODO TT_v*_html_docs/*
  65. %{_bindir}/tpage
  66. %{_bindir}/ttree
  67. %{perl_vendorarch}/Template.pm
  68. %{perl_vendorarch}/auto/Template
  69. %{perl_vendorarch}/Template
  70. %{_mandir}/man1/*.1*
  71. %{_mandir}/man3/*.3*
  72. %changelog
  73. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.22-1
  74. - initial build for Vine Linux
  75. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-11
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  77. * Mon Jul 25 2011 Iain Arnell <iarnell@gmail.com> 2.22-10
  78. - update filtering for rpm 4.9
  79. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 2.22-9
  80. - Perl mass rebuild
  81. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-8
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  83. * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.22-7
  84. - 661697 rebuild for fixing problems with vendorach/lib
  85. * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.22-6
  86. - Mass rebuild with perl-5.12.0
  87. * Tue Feb 9 2010 Stepan Kasal <skasal@redhat.com> - 2.22-5
  88. - delete the buildroot before install
  89. * Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.22-4
  90. - use filtering macros
  91. * Fri Jan 15 2010 Stepan Kasal <skasal@redhat.com> - 2.22-3
  92. - drop build requirements for TeX; LaTeX support has been removed in 2.14a
  93. - fix the Obsoletes tag
  94. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.22-2
  95. - rebuild against perl 5.10.1
  96. * Sat Jul 25 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.22-1
  97. - update to 2.22
  98. - obsolete examples package, upstream got rid of them
  99. * Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.20-1
  100. - update to 2.20
  101. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.19-5
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  103. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-4
  104. - Rebuild for perl 5.10 (again)
  105. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.19-3
  106. - Autorebuild for GCC 4.3
  107. * Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-2
  108. - rebuild for new perl
  109. * Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.19-1
  110. - 2.19
  111. - license tag fix
  112. - rebuild for BuildID
  113. * Wed Feb 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.18-1
  114. - go to 2.18
  115. * Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.15-2
  116. - bump for fc6
  117. * Mon May 29 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.15-1
  118. - bump to 2.15
  119. - gd test is gone, don't need to patch anything
  120. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-8
  121. - really resolve bug 173756
  122. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-7
  123. - use proper TT_PREFIX setting everywhere, resolve bug 173756
  124. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-6
  125. - bump for FC-5
  126. * Mon Jul 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-5
  127. - don't need Tie::DBI as a BuildRequires, since we're not running
  128. the tests
  129. * Mon Jul 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> - 2.14-4
  130. - put examples in their own subpackage
  131. * Sat Jul 9 2005 Ville Skyttä <ville.skytta at iki.fi> - 2.14-3
  132. - Filter false positive provides.
  133. - Include template library, switch to %%{_datadir}/tt2.
  134. - Tune build dependencies for full test suite coverage.
  135. - Fix and enable GD tests.
  136. - Include more documentation.
  137. - Fine tune dir ownerships and file permissions.
  138. * Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-2
  139. - cleanups
  140. * Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.14-1
  141. - Initial package for Fedora Extras