perl-ds.spec 17 KB

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