perl-util.spec 8.4 KB

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