perl-util.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. ##
  2. ## perl-util.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.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_attribute_handlers 0.78
  28. %define V_class_container 0.10
  29. %define V_class_data_inheritable 0.02
  30. %define V_class_factory 1.00
  31. %define V_class_factory_util 1.6
  32. %define V_class_loader 2.02
  33. %define V_class_makemethods 1.009
  34. %define V_class_methodmaker 2.00
  35. %define V_class_returnvalue 0.52
  36. %define V_class_xpath 1.3
  37. %define V_data_locations 5.2-fixed
  38. %define V_devel_stacktrace 1.04
  39. %define V_exception_class 1.16
  40. %define V_geography_countries 1.4
  41. %define V_object_realize_later 0.15
  42. %define V_params_validate 0.72
  43. %define V_startup 0.103
  44. %define V_string_divert 0.93
  45. %define V_test 1.24
  46. %define V_test_harness 2.40
  47. %define V_test_inline 0.16
  48. %define V_test_manifest 0.92
  49. %define V_test_simple 0.47
  50. # package information
  51. Name: perl-util
  52. Summary: Perl Modules for general utility usage
  53. URL: http://www.cpan.org/
  54. Vendor: Perl Community
  55. Packager: The OpenPKG Project
  56. Distribution: OpenPKG [BASE]
  57. Group: Language
  58. License: GPL/Artistic
  59. Version: 20040110
  60. Release: 20040110
  61. # list of sources
  62. Source0: http://www.cpan.org/modules/by-module/Test/Test-%{V_test}.tar.gz
  63. Source1: http://www.cpan.org/modules/by-module/Test/Test-Inline-%{V_test_inline}.tar.gz
  64. Source2: http://www.cpan.org/modules/by-module/Test/Test-Harness-%{V_test_harness}.tar.gz
  65. Source3: http://www.cpan.org/modules/by-module/Alias/Alias-%{V_alias}.tar.gz
  66. Source4: http://www.cpan.org/modules/by-module/Attribute/Attribute-Handlers-%{V_attribute_handlers}.tar.gz
  67. Source5: http://www.cpan.org/modules/by-module/Attribute/Params-Validate-%{V_params_validate}.tar.gz
  68. Source6: http://www.cpan.org/modules/by-module/Class/Class-Container-%{V_class_container}.tar.gz
  69. Source7: http://www.cpan.org/modules/by-module/Class/Class-Data-Inheritable-%{V_class_data_inheritable}.tar.gz
  70. Source8: http://www.cpan.org/modules/by-module/Class/Class-Factory-%{V_class_factory}.tar.gz
  71. Source9: http://www.cpan.org/modules/by-module/Class/Class-Factory-Util-%{V_class_factory_util}.tar.gz
  72. Source10: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
  73. Source11: http://www.cpan.org/modules/by-module/Class/Class-MakeMethods-%{V_class_makemethods}.tar.gz
  74. Source12: http://www.cpan.org/modules/by-module/Class/Class-MethodMaker-%{V_class_methodmaker}.tar.gz
  75. Source13: http://www.cpan.org/modules/by-module/Class/Class-XPath-%{V_class_xpath}.tar.gz
  76. Source14: http://www.cpan.org/modules/by-module/Data/Data-Locations-%{V_data_locations}.tar.gz
  77. Source15: http://www.cpan.org/modules/by-module/Devel/Devel-StackTrace-%{V_devel_stacktrace}.tar.gz
  78. Source16: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{V_class_returnvalue}.tar.gz
  79. Source17: http://www.cpan.org/modules/by-module/Exception/Exception-Class-%{V_exception_class}.tar.gz
  80. Source18: http://www.cpan.org/modules/by-module/Object/Object-Realize-Later-%{V_object_realize_later}.tar.gz
  81. Source19: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Startup-%{V_startup}.tar.gz
  82. Source20: http://www.cpan.org/modules/by-module/String/String-Divert-%{V_string_divert}.tar.gz
  83. Source21: http://www.cpan.org/modules/by-module/Test/Test-Simple-%{V_test_simple}.tar.gz
  84. Source22: http://www.cpan.org/modules/by-module/Test/Test-Manifest-%{V_test_manifest}.tar.gz
  85. Source23: http://www.cpan.org/modules/by-module/Geography/Geography-Countries-%{V_geography_countries}.tar.gz
  86. # build information
  87. Prefix: %{l_prefix}
  88. BuildRoot: %{l_buildroot}
  89. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  90. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  91. AutoReq: no
  92. AutoReqProv: no
  93. %description
  94. Perl modules for general utility usage:
  95. - Alias (%{V_alias})
  96. - Attribute::Handlers (%{V_attribute_handlers})
  97. - Class::Container (%{V_class_container})
  98. - Class::Data::Inheritable (%{V_class_data_inheritable})
  99. - Class::Factory (%{V_class_factory})
  100. - Class::Factory::Util (%{V_class_factory_util})
  101. - Class::Loader (%{V_class_loader})
  102. - Class::MakeMethods (%{V_class_makemethods})
  103. - Class::MethodMaker (%{V_class_methodmaker})
  104. - Class::ReturnValue (%{V_class_returnvalue})
  105. - Class::XPath (%{V_class_xpath})
  106. - Data::Locations (%{V_data_locations})
  107. - Devel::StackTrace (%{V_devel_stacktrace})
  108. - Exception::Class (%{V_exception_class})
  109. - Geography::Countries (%{V_geography_countries})
  110. - Object::Realize::Later (%{V_object_realize_later})
  111. - Params::Validate (%{V_params_validate})
  112. - Startup (%{V_startup})
  113. - String::Divert (%{V_string_divert})
  114. - Test (%{V_test})
  115. - Test::Harness (%{V_test_harness})
  116. - Test::Inline (%{V_test_inline})
  117. - Test::Manifest (%{V_test_manifest})
  118. - Test::Simple (%{V_test_simple})
  119. %prep
  120. %setup0 -q -c
  121. %setup1 -q -T -D -a 1
  122. %setup2 -q -T -D -a 2
  123. %setup3 -q -T -D -a 3
  124. %setup4 -q -T -D -a 4
  125. %setup5 -q -T -D -a 5
  126. %setup6 -q -T -D -a 6
  127. %setup7 -q -T -D -a 7
  128. %setup8 -q -T -D -a 8
  129. %setup9 -q -T -D -a 9
  130. %setup10 -q -T -D -a 10
  131. %setup11 -q -T -D -a 11
  132. %setup12 -q -T -D -a 12
  133. %setup13 -q -T -D -a 13
  134. %setup14 -q -T -D -a 14
  135. %setup15 -q -T -D -a 15
  136. %setup16 -q -T -D -a 16
  137. %setup17 -q -T -D -a 17
  138. %setup18 -q -T -D -a 18
  139. %setup19 -q -T -D -a 19
  140. %setup20 -q -T -D -a 20
  141. %setup21 -q -T -D -a 21
  142. %setup22 -q -T -D -a 22
  143. %setup23 -q -T -D -a 23
  144. %build
  145. %install
  146. # perform common prolog operations
  147. %{l_prefix}/bin/perl-openpkg prolog
  148. # build and install individual modules
  149. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  150. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  151. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  152. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  153. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  154. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  155. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  156. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  157. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  158. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  159. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  160. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  161. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  162. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  163. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE14}
  164. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE15}
  165. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE16}
  166. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE17}
  167. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE18}
  168. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE19}
  169. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE20}
  170. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE21}
  171. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE22}
  172. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE23}
  173. # cleanup installation files
  174. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/replace # demo from "Startup" module
  175. # perform common epilog operations
  176. %{l_prefix}/bin/perl-openpkg epilog
  177. %files -f files
  178. %clean
  179. rm -rf $RPM_BUILD_ROOT