perl-util.spec 7.4 KB

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