perl-util.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. ##
  2. ## perl-util.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_alias 2.32
  27. %define V_class_loader 2.02
  28. %define V_class_makemethods 1.006
  29. %define V_class_methodmaker 1.10
  30. %define V_class_returnvalue 0.51
  31. %define V_devel_stacktrace 1.03
  32. %define V_attribute_handlers 0.78
  33. %define V_params_validate 0.58
  34. %define V_class_data_inheritable 0.02
  35. %define V_exception_class 1.12
  36. %define V_object_realize_later 0.10
  37. %define V_class_container 0.10
  38. %define V_cache_cache 1.02
  39. %define V_startup 0.103
  40. %define V_test 1.24
  41. %define V_test_harness 2.28
  42. %define V_class_xpath 1.1
  43. # package information
  44. Name: perl-util
  45. Summary: Perl Modules for general utility usage
  46. URL: http://www.cpan.org/
  47. Vendor: Perl Community
  48. Packager: The OpenPKG Project
  49. Distribution: OpenPKG [BASE]
  50. Group: Language
  51. License: GPL/Artistic
  52. Version: 20030507
  53. Release: 20030507
  54. # list of sources
  55. Source0: http://www.cpan.org/modules/by-module/Alias/Alias-%{V_alias}.tar.gz
  56. Source1: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
  57. Source2: http://www.cpan.org/modules/by-module/Class/Class-MakeMethods-%{V_class_makemethods}.tar.gz
  58. Source3: http://www.cpan.org/modules/by-module/Class/Class-MethodMaker-%{V_class_methodmaker}.tar.gz
  59. Source4: http://www.cpan.org/modules/by-module/Devel/Devel-StackTrace-%{V_devel_stacktrace}.tar.gz
  60. Source5: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{V_class_returnvalue}.tar.gz
  61. Source6: http://www.cpan.org/modules/by-module/Attribute/Attribute-Handlers-%{V_attribute_handlers}.tar.gz
  62. Source7: http://www.cpan.org/modules/by-module/Attribute/Params-Validate-%{V_params_validate}.tar.gz
  63. Source8: http://www.cpan.org/modules/by-module/Class/Class-Data-Inheritable-%{V_class_data_inheritable}.tar.gz
  64. Source9: http://www.cpan.org/modules/by-module/Exception/Exception-Class-%{V_exception_class}.tar.gz
  65. Source10: http://www.cpan.org/modules/by-module/Object/Object-Realize-Later-%{V_object_realize_later}.tar.gz
  66. Source11: http://www.cpan.org/modules/by-module/Class/Class-Container-%{V_class_container}.tar.gz
  67. Source12: http://www.cpan.org/modules/by-module/Cache/Cache-Cache-%{V_cache_cache}.tar.gz
  68. Source13: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Startup-%{V_startup}.tar.gz
  69. Source14: http://www.cpan.org/modules/by-module/Test/Test-%{V_test}.tar.gz
  70. Source15: http://www.cpan.org/modules/by-module/Test/Test-Harness-%{V_test_harness}.tar.gz
  71. Source16: http://www.cpan.org/modules/by-module/Class/Class-XPath-%{V_class_xpath}.tar.gz
  72. # build information
  73. Prefix: %{l_prefix}
  74. BuildRoot: %{l_buildroot}
  75. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  76. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  77. AutoReq: no
  78. AutoReqProv: no
  79. %description
  80. Perl modules for general utility usage:
  81. - Alias (%{V_alias})
  82. - Class::Loader (%{V_class_loader})
  83. - Class::MakeMethods (%{V_class_makemethods})
  84. - Class::MethodMaker (%{V_class_methodmaker})
  85. - Class::ReturnValue (%{V_class_returnvalue})
  86. - Devel::StackTrace (%{V_devel_stacktrace})
  87. - Attribute::Handlers (%{V_attribute_handlers})
  88. - Params::Validate (%{V_params_validate})
  89. - Class::Data::Inheritable (%{V_class_data_inheritable})
  90. - Exception::Class (%{V_exception_class})
  91. - Object::Realize::Later (%{V_object_realize_later})
  92. - Class::Container (%{V_class_container})
  93. - Cache::Cache (%{V_cache_cache})
  94. - Startup (%{V_startup})
  95. - Test (%{V_test})
  96. - Test::Harness (%{V_test_harness})
  97. - Class::XPath (%{V_class_xpath})
  98. %prep
  99. %setup0 -q -c
  100. %setup1 -q -T -D -a 1
  101. %setup2 -q -T -D -a 2
  102. %setup3 -q -T -D -a 3
  103. %setup4 -q -T -D -a 4
  104. %setup5 -q -T -D -a 5
  105. %setup6 -q -T -D -a 6
  106. %setup7 -q -T -D -a 7
  107. %setup8 -q -T -D -a 8
  108. %setup9 -q -T -D -a 9
  109. %setup10 -q -T -D -a 10
  110. %setup11 -q -T -D -a 11
  111. %setup12 -q -T -D -a 12
  112. %setup13 -q -T -D -a 13
  113. %setup14 -q -T -D -a 14
  114. %setup15 -q -T -D -a 15
  115. %setup16 -q -T -D -a 16
  116. %build
  117. %install
  118. # perform common prolog operations
  119. %{l_prefix}/bin/perl-openpkg prolog
  120. # build and install individual modules
  121. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  122. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  123. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  124. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  125. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  126. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  127. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  128. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  129. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  130. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  131. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  132. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  133. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  134. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  135. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE14}
  136. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE15}
  137. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE16}
  138. # cleanup installation files
  139. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/replace # demo from "Startup" module
  140. # perform common epilog operations
  141. %{l_prefix}/bin/perl-openpkg epilog
  142. %files -f files
  143. %clean
  144. rm -rf $RPM_BUILD_ROOT