perl-template.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ##
  2. ## perl-template.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # versions of individual parts
  24. %define V_perl 5.10
  25. %define V_template_toolkit 2.22
  26. %define V_template_plugin_clickable 0.06
  27. %define V_template_plugin_clickable_email 0.01
  28. %define V_template_plugin_number_format 1.02
  29. # package information
  30. Name: perl-template
  31. Summary: Perl Modules for use with template processing
  32. URL: http://www.cpan.org/
  33. Vendor: Perl Community
  34. Packager: OpenPKG Foundation e.V.
  35. Distribution: OpenPKG Community
  36. Class: BASE
  37. Group: Perl
  38. License: GPL/Artistic
  39. Version: %{V_perl}
  40. Release: 20090904
  41. # list of sources
  42. Source0: http://www.cpan.org/modules/by-module/Template/Template-Toolkit-%{V_template_toolkit}.tar.gz
  43. Source1: http://www.cpan.org/modules/by-module/Template/Template-Plugin-Clickable-%{V_template_plugin_clickable}.tar.gz
  44. Source2: http://www.cpan.org/modules/by-module/Template/Template-Plugin-Clickable-Email-%{V_template_plugin_clickable_email}.tar.gz
  45. Source3: http://www.cpan.org/modules/by-module/Template/Template-Plugin-Number-Format-%{V_template_plugin_number_format}.tar.gz
  46. # build information
  47. Prefix: %{l_prefix}
  48. BuildRoot: %{l_buildroot}
  49. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
  50. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  51. BuildPreReq: perl-util, perl-module
  52. PreReq: perl-util, perl-module
  53. AutoReq: no
  54. AutoReqProv: no
  55. %description
  56. Perl modules for use with template processing:
  57. - Template::Toolkit (%{V_template_toolkit})
  58. - Template::Plugin::Clickable (%{V_template_plugin_clickable})
  59. - Template::Plugin::Clickable::Email (%{V_template_plugin_clickable_email})
  60. - Template::Plugin::Number::Format (%{V_template_plugin_number_format})
  61. %track
  62. prog perl-template:Template-Toolkit = {
  63. version = %{V_template_toolkit}
  64. url = http://www.cpan.org/modules/by-module/Template/
  65. regex = Template-Toolkit-(__VER__)\.tar\.gz
  66. }
  67. prog perl-template:Template-Plugin-Clickable = {
  68. version = %{V_template_plugin_clickable}
  69. url = http://www.cpan.org/modules/by-module/Template/
  70. regex = Template-Plugin-Clickable-(__VER__)\.tar\.gz
  71. }
  72. prog perl-template:Template-Plugin-Clickable-Email = {
  73. version = %{V_template_plugin_clickable_email}
  74. url = http://www.cpan.org/modules/by-module/Template/
  75. regex = Template-Plugin-Clickable-Email-(__VER__)\.tar\.gz
  76. }
  77. prog perl-template:Template-Plugin-Number-Format = {
  78. version = %{V_template_plugin_number_format}
  79. url = http://www.cpan.org/modules/by-module/Template/
  80. regex = Template-Plugin-Number-Format-(__VER__)\.tar\.gz
  81. }
  82. %prep
  83. %setup -q -c
  84. %setup -q -T -D -a 1
  85. %setup -q -T -D -a 2
  86. %setup -q -T -D -a 3
  87. %build
  88. %install
  89. rm -rf $RPM_BUILD_ROOT
  90. %{l_prefix}/bin/perl-openpkg prepare
  91. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} \
  92. -A TT_XS_ENABLE=y -A TT_XS_DEFAULT=y -A TT_DBI=n \
  93. -A TT_QUIET=n -A TT_ACCEPT=y \
  94. configure build install
  95. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  96. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  97. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  98. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  99. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  100. %files -f files
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT