perl-util.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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.40
  31. %define V_devel_stacktrace 1.03
  32. %define V_attribute_handlers 0.78
  33. %define V_params_validate 0.51
  34. %define V_class_data_inheritable 0.02
  35. %define V_exception_class 1.10
  36. %define V_object_realize_later 0.10
  37. %define V_class_container 0.08
  38. %define V_cache_cache 1.01
  39. %define V_startup 0.103
  40. # package information
  41. Name: perl-util
  42. Summary: Perl Modules for general utility usage
  43. URL: http://www.cpan.org/
  44. Vendor: Perl Community
  45. Packager: The OpenPKG Project
  46. Distribution: OpenPKG [BASE]
  47. Group: Language
  48. License: GPL/Artistic
  49. Version: 20030207
  50. Release: 20030207
  51. # list of sources
  52. Source0: http://www.cpan.org/modules/by-module/Alias/Alias-%{V_alias}.tar.gz
  53. Source1: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
  54. Source2: http://www.cpan.org/modules/by-module/Class/Class-MakeMethods-%{V_class_makemethods}.tar.gz
  55. Source3: http://www.cpan.org/modules/by-module/Class/Class-MethodMaker-%{V_class_methodmaker}.tar.gz
  56. Source4: http://www.cpan.org/modules/by-module/Devel/Devel-StackTrace-%{V_devel_stacktrace}.tar.gz
  57. Source5: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{V_class_returnvalue}.tar.gz
  58. Source6: http://www.cpan.org/modules/by-module/Attribute/Attribute-Handlers-%{V_attribute_handlers}.tar.gz
  59. Source7: http://www.cpan.org/modules/by-module/Attribute/Params-Validate-%{V_params_validate}.tar.gz
  60. Source8: http://www.cpan.org/modules/by-module/Class/Class-Data-Inheritable-%{V_class_data_inheritable}.tar.gz
  61. Source9: http://www.cpan.org/modules/by-module/Exception/Exception-Class-%{V_exception_class}.tar.gz
  62. Source10: http://www.cpan.org/modules/by-module/Object/Object-Realize-Later-%{V_object_realize_later}.tar.gz
  63. Source11: http://www.cpan.org/modules/by-module/Class/Class-Container-%{V_class_container}.tar.gz
  64. Source12: http://www.cpan.org/modules/by-module/Cache/Cache-Cache-%{V_cache_cache}.tar.gz
  65. Source13: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Startup-%{V_startup}.tar.gz
  66. # build information
  67. Prefix: %{l_prefix}
  68. BuildRoot: %{l_buildroot}
  69. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  70. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg
  71. AutoReq: no
  72. AutoReqProv: no
  73. %description
  74. Perl modules for general utility usage:
  75. - Alias (%{V_alias})
  76. - Class::Loader (%{V_class_loader})
  77. - Class::MakeMethods (%{V_class_makemethods})
  78. - Class::MethodMaker (%{V_class_methodmaker})
  79. - Class::ReturnValue (%{V_class_returnvalue})
  80. - Devel::StackTrace (%{V_devel_stacktrace})
  81. - Attribute::Handlers (%{V_attribute_handlers})
  82. - Params::Validate (%{V_params_validate})
  83. - Class::Data::Inheritable (%{V_class_data_inheritable})
  84. - Exception::Class (%{V_exception_class})
  85. - Object::Realize::Later (%{V_object_realize_later})
  86. - Class::Container (%{V_class_container})
  87. - Cache::Cache (%{V_cache_cache})
  88. - Startup (%{V_startup})
  89. %prep
  90. %setup0 -q -c
  91. %setup1 -q -T -D -a 1
  92. %setup2 -q -T -D -a 2
  93. %setup3 -q -T -D -a 3
  94. %setup4 -q -T -D -a 4
  95. %setup5 -q -T -D -a 5
  96. %setup6 -q -T -D -a 6
  97. %setup7 -q -T -D -a 7
  98. %setup8 -q -T -D -a 8
  99. %setup9 -q -T -D -a 9
  100. %setup10 -q -T -D -a 10
  101. %setup11 -q -T -D -a 11
  102. %setup12 -q -T -D -a 12
  103. %setup13 -q -T -D -a 13
  104. %build
  105. %install
  106. # perform common prolog operations
  107. %{l_prefix}/bin/perl-openpkg prolog
  108. # build and install individual modules
  109. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  110. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  111. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  112. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  113. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE4}
  114. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE5}
  115. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE6}
  116. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE7}
  117. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE8}
  118. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE9}
  119. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE10}
  120. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE11}
  121. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE12}
  122. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE13}
  123. # perform common epilog operations
  124. %{l_prefix}/bin/perl-openpkg epilog
  125. %files -f files
  126. %clean
  127. rm -rf $RPM_BUILD_ROOT