perl-ds.spec 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. ##
  2. ## perl-ds.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package versions
  25. %define V_perl 5.10.0
  26. %define V_bit_vector 6.4
  27. %define V_set_scalar 1.22
  28. %define V_set_intspan 1.13
  29. %define V_set_array 0.11
  30. %define V_set_object 1.22
  31. %define V_io_string 1.08
  32. %define V_io_stringy 2.110
  33. %define V_tie_ixhash 1.21
  34. %define V_tie_persistent 1.00
  35. %define V_sort_key 1.28
  36. %define V_sort_key_radix 0.13
  37. %define V_sort_naturally 1.02
  38. %define V_sort_tree 1.09
  39. %define V_sort_versions 1.5
  40. %define V_tree 1.01
  41. %define V_tree_xpathengine 0.05
  42. %define V_tree_dag_node 1.06
  43. %define V_tree_dag_node_xpath 0.07
  44. %define V_tree_nary 1.3
  45. %define V_tree_simple 1.18
  46. %define V_tree_simple_view 0.16
  47. %define V_tree_simple_visitorfactory 0.10
  48. %define V_tree_trie 1.5
  49. %define V_tree_bptree 1.07
  50. %define V_array_window 1.01
  51. %define V_array_each 0.02
  52. %define V_array_compare 1.14
  53. %define V_scalar_list_utils 1.19
  54. %define V_list_moreutils 0.21
  55. %define V_heap 0.80
  56. %define V_graph 0.84
  57. # package information
  58. Name: perl-ds
  59. Summary: Perl Modules for use with data structures
  60. URL: http://www.cpan.org/
  61. Vendor: Perl Community
  62. Packager: OpenPKG Foundation e.V.
  63. Distribution: OpenPKG Community
  64. Class: BASE
  65. Group: Perl
  66. License: GPL/Artistic
  67. Version: %{V_perl}
  68. Release: 20071219
  69. # list of sources
  70. Source0: http://www.cpan.org/modules/by-module/Bit/Bit-Vector-%{V_bit_vector}.tar.gz
  71. Source1: http://www.cpan.org/modules/by-module/Set/Set-Scalar-%{V_set_scalar}.tar.gz
  72. Source2: http://www.cpan.org/modules/by-module/Set/Set-IntSpan-%{V_set_intspan}.tar.gz
  73. Source3: http://www.cpan.org/modules/by-module/Set/Set-Array-%{V_set_array}.tar.gz
  74. Source4: http://www.cpan.org/modules/by-module/Set/Set-Object-%{V_set_object}.tar.gz
  75. Source5: http://www.cpan.org/modules/by-module/IO/IO-String-%{V_io_string}.tar.gz
  76. Source6: http://www.cpan.org/modules/by-module/IO/IO-stringy-%{V_io_stringy}.tar.gz
  77. Source7: http://www.cpan.org/modules/by-module/Tie/Tie-IxHash-%{V_tie_ixhash}.tar.gz
  78. Source8: http://www.cpan.org/modules/by-module/Sort/Sort-Key-%{V_sort_key}.tar.gz
  79. Source9: http://www.cpan.org/modules/by-module/Sort/Sort-Key-Radix-%{V_sort_key_radix}.tar.gz
  80. Source10: http://www.cpan.org/modules/by-module/Sort/Sort-Naturally-%{V_sort_naturally}.tar.gz
  81. Source11: http://www.cpan.org/modules/by-module/Sort/Sort-Tree-%{V_sort_tree}.tar.gz
  82. Source12: http://www.cpan.org/modules/by-module/Sort/Sort-Versions-%{V_sort_versions}.tar.gz
  83. Source13: http://www.cpan.org/modules/by-module/Tree/Tree-XPathEngine-%{V_tree_xpathengine}.tar.gz
  84. Source14: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-%{V_tree_dag_node}.tar.gz
  85. Source15: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-XPath-%{V_tree_dag_node_xpath}.tar.gz
  86. Source16: http://www.cpan.org/modules/by-module/Tree/Tree-Nary-%{V_tree_nary}.tar.gz
  87. Source17: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-%{V_tree_simple}.tar.gz
  88. Source18: http://www.cpan.org/modules/by-module/Tree/Tree-Trie-%{V_tree_trie}.tar.gz
  89. Source19: http://www.cpan.org/modules/by-module/Tree/Tree-BPTree-%{V_tree_bptree}.tar.gz
  90. Source20: http://www.cpan.org/modules/by-module/Array/Array-Window-%{V_array_window}.tar.gz
  91. Source21: http://www.cpan.org/modules/by-module/Array/Array-Each-%{V_array_each}.tar.gz
  92. Source22: http://www.cpan.org/modules/by-module/Scalar/Scalar-List-Utils-%{V_scalar_list_utils}.tar.gz
  93. Source23: http://www.cpan.org/modules/by-module/List/List-MoreUtils-%{V_list_moreutils}.tar.gz
  94. Source24: http://www.cpan.org/modules/by-module/Heap/Heap-%{V_heap}.tar.gz
  95. Source25: http://www.cpan.org/modules/by-module/Graph/Graph-%{V_graph}.tar.gz
  96. Source26: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-View-%{V_tree_simple_view}.tar.gz
  97. Source27: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-VisitorFactory-%{V_tree_simple_visitorfactory}.tar.gz
  98. Source28: http://www.cpan.org/modules/by-module/Tree/Tree-%{V_tree}.tar.gz
  99. Source29: http://www.cpan.org/modules/by-module/Tie/Tie-Persistent-%{V_tie_persistent}.tar.gz
  100. Source30: http://www.cpan.org/modules/by-module/Array/Array-Compare-%{V_array_compare}.tar.gz
  101. Patch0: perl-ds.patch
  102. # build information
  103. Prefix: %{l_prefix}
  104. BuildRoot: %{l_buildroot}
  105. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  106. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  107. BuildPreReq: perl-module
  108. PreReq: perl-module
  109. AutoReq: no
  110. AutoReqProv: no
  111. %description
  112. Perl modules for use with data structures:
  113. - Bit::Vector (%{V_bit_vector})
  114. - Set::Scalar (%{V_set_scalar})
  115. - Set::IntSpan (%{V_set_intspan})
  116. - Set::Array (%{V_set_array})
  117. - Set::Object (%{V_set_object})
  118. - IO::String (%{V_io_string})
  119. - IO::stringy (%{V_io_stringy})
  120. - Tie::IxHash (%{V_tie_ixhash})
  121. - Sort::Key (%{V_sort_key})
  122. - Sort::Key::Radix (%{V_sort_key_radix})
  123. - Sort::Naturally (%{V_sort_naturally})
  124. - Sort::Tree (%{V_sort_tree})
  125. - Sort::Versions (%{V_sort_versions})
  126. - Tree (%{V_tree})
  127. - Tree::XPathEngine (%{V_tree_xpathengine})
  128. - Tree::DAG_Node (%{V_tree_dag_node})
  129. - Tree::DAG_Node::XPath (%{V_tree_dag_node_xpath})
  130. - Tree::Nary (%{V_tree_nary})
  131. - Tree::Simple (%{V_tree_simple})
  132. - Tree::Simple::View (%{V_tree_simple_view})
  133. - Tree::Simple::VisitorFactory (%{V_tree_simple_visitorfactory})
  134. - Tree::Trie (%{V_tree_trie})
  135. - Tree::BPTree (%{V_tree_bptree})
  136. - Array::Window (%{V_array_window})
  137. - Array::Each (%{V_array_each})
  138. - Array::Compare (%{V_array_compare})
  139. - Scalar::Utils (%{V_scalar_list_utils})
  140. - List::Utils (%{V_scalar_list_utils})
  141. - List::MoreUtils (%{V_list_moreutils})
  142. - Heap::Heap (%{V_heap})
  143. - Graph::Graph (%{V_graph})
  144. - Tie::Persistent (%{V_tie_persistent})
  145. %track
  146. prog perl-ds:Bit-Vector = {
  147. version = %{V_bit_vector}
  148. url = http://www.cpan.org/modules/by-module/Bit/
  149. regex = Bit-Vector-(__VER__)\.tar\.gz
  150. }
  151. prog perl-ds:IO-String = {
  152. version = %{V_io_string}
  153. url = http://www.cpan.org/modules/by-module/IO/
  154. regex = IO-String-(__VER__)\.tar\.gz
  155. }
  156. prog perl-ds:IO-stringy = {
  157. version = %{V_io_stringy}
  158. url = http://www.cpan.org/modules/by-module/IO/
  159. regex = IO-stringy-(__VER__)\.tar\.gz
  160. }
  161. prog perl-ds:Set-Scalar = {
  162. version = %{V_set_scalar}
  163. url = http://www.cpan.org/modules/by-module/Set/
  164. regex = Set-Scalar-(__VER__)\.tar\.gz
  165. }
  166. prog perl-ds:Set-IntSpan = {
  167. version = %{V_set_intspan}
  168. url = http://www.cpan.org/modules/by-module/Set/
  169. regex = Set-IntSpan-(__VER__)\.tar\.gz
  170. }
  171. prog perl-ds:Set-Array = {
  172. version = %{V_set_array}
  173. url = http://www.cpan.org/modules/by-module/Set/
  174. regex = Set-Array-(__VER__)\.tar\.gz
  175. }
  176. prog perl-ds:Set-Object = {
  177. version = %{V_set_object}
  178. url = http://www.cpan.org/modules/by-module/Set/
  179. regex = Set-Object-(__VER__)\.tar\.gz
  180. }
  181. prog perl-ds:Tie-IxHash = {
  182. version = %{V_tie_ixhash}
  183. url = http://www.cpan.org/modules/by-module/Tie/
  184. regex = Tie-IxHash-(__VER__)\.tar\.gz
  185. }
  186. prog perl-ds:Sort-Key = {
  187. version = %{V_sort_key}
  188. url = http://www.cpan.org/modules/by-module/Sort/
  189. regex = Sort-Key-(__VER__)\.tar\.gz
  190. }
  191. prog perl-ds:Sort-Key-Radix = {
  192. version = %{V_sort_key_radix}
  193. url = http://www.cpan.org/modules/by-module/Sort/
  194. regex = Sort-Key-Radix-(__VER__)\.tar\.gz
  195. }
  196. prog perl-ds:Sort-Naturally = {
  197. version = %{V_sort_naturally}
  198. url = http://www.cpan.org/modules/by-module/Sort/
  199. regex = Sort-Naturally-(__VER__)\.tar\.gz
  200. }
  201. prog perl-ds:Sort-Tree = {
  202. version = %{V_sort_tree}
  203. url = http://www.cpan.org/modules/by-module/Sort/
  204. regex = Sort-Tree-(__VER__)\.tar\.gz
  205. }
  206. prog perl-ds:Sort-Versions = {
  207. version = %{V_sort_versions}
  208. url = http://www.cpan.org/modules/by-module/Sort/
  209. regex = Sort-Versions-(__VER__)\.tar\.gz
  210. }
  211. prog perl-ds:Tree = {
  212. version = %{V_tree}
  213. url = http://www.cpan.org/modules/by-module/Tree/
  214. regex = \bTree-(__VER__)\.tar\.gz
  215. }
  216. prog perl-ds:Tree-XPathEngine = {
  217. version = %{V_tree_xpathengine}
  218. url = http://www.cpan.org/modules/by-module/Tree/
  219. regex = Tree-XPathEngine-(__VER__)\.tar\.gz
  220. }
  221. prog perl-ds:Tree-DAG_Node = {
  222. version = %{V_tree_dag_node}
  223. url = http://www.cpan.org/modules/by-module/Tree/
  224. regex = Tree-DAG_Node-(__VER__)\.tar\.gz
  225. }
  226. prog perl-ds:Tree-DAG_Node-XPath = {
  227. version = %{V_tree_dag_node_xpath}
  228. url = http://www.cpan.org/modules/by-module/Tree/
  229. regex = Tree-DAG_Node-XPath-(__VER__)\.tar\.gz
  230. }
  231. prog perl-ds:Tree-Nary = {
  232. version = %{V_tree_nary}0
  233. url = http://www.cpan.org/modules/by-module/Tree/
  234. regex = Tree-Nary-(__VER__)\.tar\.gz
  235. transform = "s/^(\\d+\\.\\d)$/${1}0/; $_"
  236. }
  237. prog perl-ds:Tree-Simple = {
  238. version = %{V_tree_simple}
  239. url = http://www.cpan.org/modules/by-module/Tree/
  240. regex = Tree-Simple-(__VER__)\.tar\.gz
  241. }
  242. prog perl-ds:Tree-Simple-View = {
  243. version = %{V_tree_simple_view}
  244. url = http://www.cpan.org/modules/by-module/Tree/
  245. regex = Tree-Simple-View-(__VER__)\.tar\.gz
  246. }
  247. prog perl-ds:Tree-Simple-VisitorFactory = {
  248. version = %{V_tree_simple_visitorfactory}
  249. url = http://www.cpan.org/modules/by-module/Tree/
  250. regex = Tree-Simple-VisitorFactory-(__VER__)\.tar\.gz
  251. }
  252. prog perl-ds:Tree-Trie = {
  253. version = %{V_tree_trie}
  254. url = http://www.cpan.org/modules/by-module/Tree/
  255. regex = Tree-Trie-(__VER__)\.tar\.gz
  256. }
  257. prog perl-ds:Tree-BPTree = {
  258. version = %{V_tree_bptree}
  259. url = http://www.cpan.org/modules/by-module/Tree/
  260. regex = Tree-BPTree-(__VER__)\.tar\.gz
  261. }
  262. prog perl-ds:Array-Window = {
  263. version = %{V_array_window}
  264. url = http://www.cpan.org/modules/by-module/Array/
  265. regex = Array-Window-(__VER__)\.tar\.gz
  266. }
  267. prog perl-ds:Array-Each = {
  268. version = %{V_array_each}
  269. url = http://www.cpan.org/modules/by-module/Array/
  270. regex = Array-Each-(__VER__)\.tar\.gz
  271. }
  272. prog perl-ds:Array-Compare = {
  273. version = %{V_array_compare}
  274. url = http://www.cpan.org/modules/by-module/Array/
  275. regex = Array-Compare-(__VER__)\.tar\.gz
  276. }
  277. prog perl-ds:Scalar-List-Utils = {
  278. version = %{V_scalar_list_utils}
  279. url = http://www.cpan.org/modules/by-module/Scalar/
  280. regex = Scalar-List-Utils-(__VER__)\.tar\.gz
  281. }
  282. prog perl-ds:List-MoreUtils = {
  283. version = %{V_list_moreutils}
  284. url = http://www.cpan.org/modules/by-module/List/
  285. regex = List-MoreUtils-(__VER__)\.tar\.gz
  286. }
  287. prog perl-ds:Heap = {
  288. version = %{V_heap}
  289. url = http://www.cpan.org/modules/by-module/Heap/
  290. regex = Heap-(__VER__)\.tar\.gz
  291. }
  292. prog perl-ds:Graph = {
  293. version = %{V_graph}
  294. url = http://www.cpan.org/modules/by-module/Graph/
  295. regex = Graph-(\d+\.\d{2})\.tar\.gz
  296. }
  297. prog perl-ds:Tie-Persistent = {
  298. version = %{V_tie_persistent}
  299. url = http://www.cpan.org/modules/by-module/Tie/
  300. regex = Tie-Persistent-(\d+\.\d{2})\.tar\.gz
  301. }
  302. %prep
  303. %setup -q -c
  304. %setup -q -T -D -a 1
  305. %setup -q -T -D -a 2
  306. %setup -q -T -D -a 3
  307. %setup -q -T -D -a 4
  308. %setup -q -T -D -a 5
  309. %setup -q -T -D -a 6
  310. %setup -q -T -D -a 7
  311. %setup -q -T -D -a 8
  312. %setup -q -T -D -a 9
  313. %setup -q -T -D -a 10
  314. %setup -q -T -D -a 11
  315. %setup -q -T -D -a 12
  316. %setup -q -T -D -a 13
  317. %setup -q -T -D -a 14
  318. %setup -q -T -D -a 15
  319. %setup -q -T -D -a 16
  320. %setup -q -T -D -a 17
  321. %setup -q -T -D -a 18
  322. %setup -q -T -D -a 19
  323. %setup -q -T -D -a 20
  324. %setup -q -T -D -a 21
  325. %setup -q -T -D -a 22
  326. %setup -q -T -D -a 23
  327. %setup -q -T -D -a 24
  328. %setup -q -T -D -a 25
  329. %setup -q -T -D -a 26
  330. %setup -q -T -D -a 27
  331. %setup -q -T -D -a 28
  332. %setup -q -T -D -a 29
  333. %setup -q -T -D -a 30
  334. %patch -p0
  335. %build
  336. %install
  337. rm -rf $RPM_BUILD_ROOT
  338. %{l_prefix}/bin/perl-openpkg prepare
  339. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  340. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  341. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  342. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  343. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  344. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  345. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  346. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  347. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  348. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  349. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  350. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  351. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  352. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  353. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  354. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  355. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  356. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  357. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  358. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  359. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  360. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  361. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  362. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  363. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  364. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  365. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  366. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  367. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  368. %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
  369. %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
  370. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  371. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  372. %files -f files
  373. %clean
  374. rm -rf $RPM_BUILD_ROOT