perl-util.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. ##
  2. ## perl-util.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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_perl 5.8.3
  27. %define V_alias 2.32
  28. %define V_attribute_handlers 0.78
  29. %define V_class_container 0.11
  30. %define V_class_data_inheritable 0.02
  31. %define V_class_factory 1.00
  32. %define V_class_factory_util 1.6
  33. %define V_class_loader 2.02
  34. %define V_class_makemethods 1.009
  35. %define V_class_methodmaker 2.00
  36. %define V_class_returnvalue 0.52
  37. %define V_class_xpath 1.4
  38. %define V_data_locations 5.2-fixed
  39. %define V_devel_stacktrace 1.05
  40. %define V_exception_class 1.19
  41. %define V_geography_countries 1.4
  42. %define V_object_realize_later 0.15
  43. %define V_params_validate 0.72
  44. %define V_startup 0.103
  45. %define V_string_divert 0.93
  46. %define V_test 1.24
  47. %define V_test_harness 2.40
  48. %define V_test_inline 0.16
  49. %define V_test_manifest 0.93
  50. %define V_test_simple 0.47
  51. # package information
  52. Name: perl-util
  53. Summary: Perl Modules for general utility usage
  54. URL: http://www.cpan.org/
  55. Vendor: Perl Community
  56. Packager: The OpenPKG Project
  57. Distribution: OpenPKG
  58. Class: BASE
  59. Group: Language
  60. License: GPL/Artistic
  61. Version: %{V_perl}
  62. Release: 20040311
  63. # list of sources
  64. Source0: http://www.cpan.org/modules/by-module/Test/Test-%{V_test}.tar.gz
  65. Source1: http://www.cpan.org/modules/by-module/Test/Test-Inline-%{V_test_inline}.tar.gz
  66. Source2: http://www.cpan.org/modules/by-module/Test/Test-Harness-%{V_test_harness}.tar.gz
  67. Source3: http://www.cpan.org/modules/by-module/Alias/Alias-%{V_alias}.tar.gz
  68. Source4: http://www.cpan.org/modules/by-module/Attribute/Attribute-Handlers-%{V_attribute_handlers}.tar.gz
  69. Source5: http://www.cpan.org/modules/by-module/Attribute/Params-Validate-%{V_params_validate}.tar.gz
  70. Source6: http://www.cpan.org/modules/by-module/Class/Class-Container-%{V_class_container}.tar.gz
  71. Source7: http://www.cpan.org/modules/by-module/Class/Class-Data-Inheritable-%{V_class_data_inheritable}.tar.gz
  72. Source8: http://www.cpan.org/modules/by-module/Class/Class-Factory-%{V_class_factory}.tar.gz
  73. Source9: http://www.cpan.org/modules/by-module/Class/Class-Factory-Util-%{V_class_factory_util}.tar.gz
  74. Source10: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
  75. Source11: http://www.cpan.org/modules/by-module/Class/Class-MakeMethods-%{V_class_makemethods}.tar.gz
  76. Source12: http://www.cpan.org/modules/by-module/Class/Class-MethodMaker-%{V_class_methodmaker}.tar.gz
  77. Source13: http://www.cpan.org/modules/by-module/Class/Class-XPath-%{V_class_xpath}.tar.gz
  78. Source14: http://www.cpan.org/modules/by-module/Data/Data-Locations-%{V_data_locations}.tar.gz
  79. Source15: http://www.cpan.org/modules/by-module/Devel/Devel-StackTrace-%{V_devel_stacktrace}.tar.gz
  80. Source16: http://www.cpan.org/modules/by-module/Class/Class-ReturnValue-%{V_class_returnvalue}.tar.gz
  81. Source17: http://www.cpan.org/modules/by-module/Exception/Exception-Class-%{V_exception_class}.tar.gz
  82. Source18: http://www.cpan.org/modules/by-module/Object/Object-Realize-Later-%{V_object_realize_later}.tar.gz
  83. Source19: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Startup-%{V_startup}.tar.gz
  84. Source20: http://www.cpan.org/modules/by-module/String/String-Divert-%{V_string_divert}.tar.gz
  85. Source21: http://www.cpan.org/modules/by-module/Test/Test-Simple-%{V_test_simple}.tar.gz
  86. Source22: http://www.cpan.org/modules/by-module/Test/Test-Manifest-%{V_test_manifest}.tar.gz
  87. Source23: http://www.cpan.org/modules/by-module/Geography/Geography-Countries-%{V_geography_countries}.tar.gz
  88. # build information
  89. Prefix: %{l_prefix}
  90. BuildRoot: %{l_buildroot}
  91. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  92. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  93. AutoReq: no
  94. AutoReqProv: no
  95. %description
  96. Perl modules for general utility usage:
  97. - Alias (%{V_alias})
  98. - Attribute::Handlers (%{V_attribute_handlers})
  99. - Class::Container (%{V_class_container})
  100. - Class::Data::Inheritable (%{V_class_data_inheritable})
  101. - Class::Factory (%{V_class_factory})
  102. - Class::Factory::Util (%{V_class_factory_util})
  103. - Class::Loader (%{V_class_loader})
  104. - Class::MakeMethods (%{V_class_makemethods})
  105. - Class::MethodMaker (%{V_class_methodmaker})
  106. - Class::ReturnValue (%{V_class_returnvalue})
  107. - Class::XPath (%{V_class_xpath})
  108. - Data::Locations (%{V_data_locations})
  109. - Devel::StackTrace (%{V_devel_stacktrace})
  110. - Exception::Class (%{V_exception_class})
  111. - Geography::Countries (%{V_geography_countries})
  112. - Object::Realize::Later (%{V_object_realize_later})
  113. - Params::Validate (%{V_params_validate})
  114. - Startup (%{V_startup})
  115. - String::Divert (%{V_string_divert})
  116. - Test (%{V_test})
  117. - Test::Harness (%{V_test_harness})
  118. - Test::Inline (%{V_test_inline})
  119. - Test::Manifest (%{V_test_manifest})
  120. - Test::Simple (%{V_test_simple})
  121. %track
  122. prog perl-util:Alias = {
  123. version = %{V_alias}
  124. url = http://www.cpan.org/modules/by-module/Alias/
  125. regex = Alias-(__VER__)\.tar\.gz
  126. }
  127. prog perl-util:Attribute-Handlers = {
  128. version = %{V_attribute_handlers}
  129. url = http://www.cpan.org/modules/by-module/Attribute/
  130. regex = Attribute-Handlers-(__VER__)\.tar\.gz
  131. }
  132. prog perl-util:Class-Container = {
  133. version = %{V_class_container}
  134. url = http://www.cpan.org/modules/by-module/Class/
  135. regex = Class-Container-(__VER__)\.tar\.gz
  136. }
  137. prog perl-util:Class-Data-Inheritable = {
  138. version = %{V_class_data_inheritable}
  139. url = http://www.cpan.org/modules/by-module/Class/
  140. regex = Class-Data-Inheritable-(__VER__)\.tar\.gz
  141. }
  142. prog perl-util:Class-Factory = {
  143. version = %{V_class_factory}
  144. url = http://www.cpan.org/modules/by-module/Class/
  145. regex = Class-Factory-(__VER__)\.tar\.gz
  146. }
  147. prog perl-util:Class-Factory-Util = {
  148. version = %{V_class_factory_util}
  149. url = http://www.cpan.org/modules/by-module/Class/
  150. regex = Class-Factory-Util-(__VER__)\.tar\.gz
  151. }
  152. prog perl-util:Class-Loader = {
  153. version = %{V_class_loader}
  154. url = http://www.cpan.org/modules/by-module/Class/
  155. regex = Class-Loader-(__VER__)\.tar\.gz
  156. }
  157. prog perl-util:Class-MakeMethods = {
  158. version = %{V_class_makemethods}
  159. url = http://www.cpan.org/modules/by-module/Class/
  160. regex = Class-MakeMethods-(__VER__)\.tar\.gz
  161. }
  162. prog perl-util:Class-MethodMaker = {
  163. version = %{V_class_methodmaker}
  164. url = http://www.cpan.org/modules/by-module/Class/
  165. regex = Class-MethodMaker-(__VER__)\.tar\.gz
  166. }
  167. prog perl-util:Class-ReturnValue = {
  168. version = %{V_class_returnvalue}
  169. url = http://www.cpan.org/modules/by-module/Class/
  170. regex = Class-ReturnValue-(__VER__)\.tar\.gz
  171. }
  172. prog perl-util:Class-XPath = {
  173. version = %{V_class_xpath}
  174. url = http://www.cpan.org/modules/by-module/Class/
  175. regex = Class-XPath-(__VER__)\.tar\.gz
  176. }
  177. prog perl-util:Data-Locations = {
  178. version = %{V_data_locations}
  179. url = http://www.cpan.org/modules/by-module/Data/
  180. regex = Data-Locations-(__VER__(-fixed)?)\.tar\.gz
  181. }
  182. prog perl-util:Devel-StackTrace = {
  183. comment = "rse: 1.07 already required Module::Build!"
  184. version = %{V_devel_stacktrace}
  185. url = http://www.cpan.org/modules/by-module/Devel/
  186. regex = Devel-StackTrace-(__VER__)\.tar\.gz
  187. }
  188. prog perl-util:Exception-Class = {
  189. version = %{V_exception_class}
  190. url = http://www.cpan.org/modules/by-module/Exception/
  191. regex = Exception-Class-(__VER__)\.tar\.gz
  192. }
  193. prog perl-util:Geography-Countries = {
  194. version = %{V_geography_countries}
  195. url = http://www.cpan.org/modules/by-module/Geography/
  196. regex = Geography-Countries-(__VER__)\.tar\.gz
  197. }
  198. prog perl-util:Object-Realize-Later = {
  199. version = %{V_object_realize_later}
  200. url = http://www.cpan.org/modules/by-module/Object/
  201. regex = Object-Realize-Later-(__VER__)\.tar\.gz
  202. }
  203. prog perl-util:Params-Validate = {
  204. version = %{V_params_validate}
  205. url = http://www.cpan.org/modules/by-module/Attribute/
  206. regex = Params-Validate-(__VER__)\.tar\.gz
  207. }
  208. prog perl-util:Startup = {
  209. version = %{V_startup}
  210. url = http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/
  211. regex = Startup-(__VER__)\.tar\.gz
  212. }
  213. prog perl-util:String-Divert = {
  214. version = %{V_string_divert}
  215. url = http://www.cpan.org/modules/by-module/String/
  216. regex = String-Divert-(__VER__)\.tar\.gz
  217. }
  218. prog perl-util:Test = {
  219. version = %{V_test}
  220. url = http://www.cpan.org/modules/by-module/Test/
  221. regex = Test-(__VER__)\.tar\.gz
  222. }
  223. prog perl-util:Test-Harness = {
  224. version = %{V_test_harness}
  225. url = http://www.cpan.org/modules/by-module/Test/
  226. regex = Test-Harness-(__VER__)\.tar\.gz
  227. }
  228. prog perl-util:Test-Inline = {
  229. version = %{V_test_inline}
  230. url = http://www.cpan.org/modules/by-module/Test/
  231. regex = Test-Inline-(__VER__)\.tar\.gz
  232. }
  233. prog perl-util:Test-Manifest = {
  234. version = %{V_test_manifest}
  235. url = http://www.cpan.org/modules/by-module/Test/
  236. regex = Test-Manifest-(__VER__)\.tar\.gz
  237. }
  238. prog perl-util:Test-Simple = {
  239. version = %{V_test_simple}
  240. url = http://www.cpan.org/modules/by-module/Test/
  241. regex = Test-Simple-(__VER__)\.tar\.gz
  242. }
  243. %prep
  244. %setup -q -c
  245. %setup -q -T -D -a 1
  246. %setup -q -T -D -a 2
  247. %setup -q -T -D -a 3
  248. %setup -q -T -D -a 4
  249. %setup -q -T -D -a 5
  250. %setup -q -T -D -a 6
  251. %setup -q -T -D -a 7
  252. %setup -q -T -D -a 8
  253. %setup -q -T -D -a 9
  254. %setup -q -T -D -a 10
  255. %setup -q -T -D -a 11
  256. %setup -q -T -D -a 12
  257. %setup -q -T -D -a 13
  258. %setup -q -T -D -a 14
  259. %setup -q -T -D -a 15
  260. %setup -q -T -D -a 16
  261. %setup -q -T -D -a 17
  262. %setup -q -T -D -a 18
  263. %setup -q -T -D -a 19
  264. %setup -q -T -D -a 20
  265. %setup -q -T -D -a 21
  266. %setup -q -T -D -a 22
  267. %setup -q -T -D -a 23
  268. %build
  269. %install
  270. %{l_prefix}/bin/perl-openpkg prepare
  271. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  272. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  273. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  274. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  275. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  276. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  277. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  278. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  279. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  280. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  281. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  282. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  283. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  284. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  285. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  286. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  287. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  288. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  289. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  290. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  291. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  292. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  293. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  294. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  295. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/replace
  296. rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/prove
  297. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  298. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  299. %files -f files
  300. %clean
  301. rm -rf $RPM_BUILD_ROOT