perl-util.spec 15 KB

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