perl-ds.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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.8.8
  26. %define V_bit_vector 6.4
  27. %define V_set_scalar 1.20
  28. %define V_set_intspan 1.09
  29. %define V_set_array 0.11
  30. %define V_set_object 1.21
  31. %define V_io_string 1.08
  32. %define V_io_stringy 2.110
  33. %define V_tie_ixhash 1.21
  34. %define V_tree 1.00
  35. %define V_tree_xpathengine 0.05
  36. %define V_tree_dag_node 1.05
  37. %define V_tree_dag_node_xpath 0.07
  38. %define V_tree_nary 1.3
  39. %define V_tree_simple 1.17
  40. %define V_tree_simple_view 0.14
  41. %define V_tree_simple_visitorfactory 0.10
  42. %define V_tree_trie 1.2
  43. %define V_tree_bptree 1.07
  44. %define V_array_window 0.4
  45. %define V_array_each 0.02
  46. %define V_scalar_list_utils 1.19
  47. %define V_list_moreutils 0.21
  48. %define V_heap 0.71
  49. %define V_graph 0.81
  50. # package information
  51. Name: perl-ds
  52. Summary: Perl Modules for use with data structures
  53. URL: http://www.cpan.org/
  54. Vendor: Perl Community
  55. Packager: OpenPKG Foundation e.V.
  56. Distribution: OpenPKG Community
  57. Class: BASE
  58. Group: Perl
  59. License: GPL/Artistic
  60. Version: %{V_perl}
  61. Release: 20070217
  62. # list of sources
  63. Source0: http://www.cpan.org/modules/by-module/Bit/Bit-Vector-%{V_bit_vector}.tar.gz
  64. Source1: http://www.cpan.org/modules/by-module/Set/Set-Scalar-%{V_set_scalar}.tar.gz
  65. Source2: http://www.cpan.org/modules/by-module/Set/Set-IntSpan-%{V_set_intspan}.tar.gz
  66. Source3: http://www.cpan.org/modules/by-module/Set/Set-Array-%{V_set_array}.tar.gz
  67. Source4: http://www.cpan.org/modules/by-module/Set/Set-Object-%{V_set_object}.tar.gz
  68. Source5: http://www.cpan.org/modules/by-module/IO/IO-String-%{V_io_string}.tar.gz
  69. Source6: http://www.cpan.org/modules/by-module/IO/IO-stringy-%{V_io_stringy}.tar.gz
  70. Source7: http://www.cpan.org/modules/by-module/Tie/Tie-IxHash-%{V_tie_ixhash}.tar.gz
  71. Source8: http://www.cpan.org/modules/by-module/Tree/Tree-XPathEngine-%{V_tree_xpathengine}.tar.gz
  72. Source9: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-%{V_tree_dag_node}.tar.gz
  73. Source10: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-XPath-%{V_tree_dag_node_xpath}.tar.gz
  74. Source11: http://www.cpan.org/modules/by-module/Tree/Tree-Nary-%{V_tree_nary}.tar.gz
  75. Source12: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-%{V_tree_simple}.tar.gz
  76. Source13: http://www.cpan.org/modules/by-module/Tree/Tree-Trie-%{V_tree_trie}.tar.gz
  77. Source14: http://www.cpan.org/modules/by-module/Tree/Tree-BPTree-%{V_tree_bptree}.tar.gz
  78. Source15: http://www.cpan.org/modules/by-module/Array/Array-Window-%{V_array_window}.tar.gz
  79. Source16: http://www.cpan.org/modules/by-module/Array/Array-Each-%{V_array_each}.tar.gz
  80. Source17: http://www.cpan.org/modules/by-module/Scalar/Scalar-List-Utils-%{V_scalar_list_utils}.tar.gz
  81. Source18: http://www.cpan.org/modules/by-module/List/List-MoreUtils-%{V_list_moreutils}.tar.gz
  82. Source19: http://www.cpan.org/modules/by-module/Heap/Heap-%{V_heap}.tar.gz
  83. Source20: http://www.cpan.org/modules/by-module/Graph/Graph-%{V_graph}.tar.gz
  84. Source21: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-View-%{V_tree_simple_view}.tar.gz
  85. Source22: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-VisitorFactory-%{V_tree_simple_visitorfactory}.tar.gz
  86. Source23: http://www.cpan.org/modules/by-module/Tree/Tree-%{V_tree}.tar.gz
  87. # build information
  88. Prefix: %{l_prefix}
  89. BuildRoot: %{l_buildroot}
  90. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  91. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  92. BuildPreReq: perl-module
  93. PreReq: perl-module
  94. AutoReq: no
  95. AutoReqProv: no
  96. %description
  97. Perl modules for use with data structures:
  98. - Bit::Vector (%{V_bit_vector})
  99. - Set::Scalar (%{V_set_scalar})
  100. - Set::IntSpan (%{V_set_intspan})
  101. - Set::Array (%{V_set_array})
  102. - Set::Object (%{V_set_object})
  103. - IO::String (%{V_io_string})
  104. - IO::stringy (%{V_io_stringy})
  105. - Tie::IxHash (%{V_tie_ixhash})
  106. - Tree (%{V_tree})
  107. - Tree::XPathEngine (%{V_tree_xpathengine})
  108. - Tree::DAG_Node (%{V_tree_dag_node})
  109. - Tree::DAG_Node::XPath (%{V_tree_dag_node_xpath})
  110. - Tree::Nary (%{V_tree_nary})
  111. - Tree::Simple (%{V_tree_simple})
  112. - Tree::Simple::View (%{V_tree_simple_view})
  113. - Tree::Simple::VisitorFactory (%{V_tree_simple_visitorfactory})
  114. - Tree::Trie (%{V_tree_trie})
  115. - Tree::BPTree (%{V_tree_bptree})
  116. - Array::Window (%{V_array_window})
  117. - Array::Each (%{V_array_each})
  118. - Scalar::Utils (%{V_scalar_list_utils})
  119. - List::Utils (%{V_scalar_list_utils})
  120. - List::MoreUtils (%{V_list_moreutils})
  121. - Heap::Heap (%{V_heap})
  122. - Graph::Graph (%{V_graph})
  123. %track
  124. prog perl-ds:Bit-Vector = {
  125. version = %{V_bit_vector}
  126. url = http://www.cpan.org/modules/by-module/Bit/
  127. regex = Bit-Vector-(__VER__)\.tar\.gz
  128. }
  129. prog perl-ds:IO-String = {
  130. version = %{V_io_string}
  131. url = http://www.cpan.org/modules/by-module/IO/
  132. regex = IO-String-(__VER__)\.tar\.gz
  133. }
  134. prog perl-ds:IO-stringy = {
  135. version = %{V_io_stringy}
  136. url = http://www.cpan.org/modules/by-module/IO/
  137. regex = IO-stringy-(__VER__)\.tar\.gz
  138. }
  139. prog perl-ds:Set-Scalar = {
  140. version = %{V_set_scalar}
  141. url = http://www.cpan.org/modules/by-module/Set/
  142. regex = Set-Scalar-(__VER__)\.tar\.gz
  143. }
  144. prog perl-ds:Set-IntSpan = {
  145. version = %{V_set_intspan}
  146. url = http://www.cpan.org/modules/by-module/Set/
  147. regex = Set-IntSpan-(__VER__)\.tar\.gz
  148. }
  149. prog perl-ds:Set-Array = {
  150. version = %{V_set_array}
  151. url = http://www.cpan.org/modules/by-module/Set/
  152. regex = Set-Array-(__VER__)\.tar\.gz
  153. }
  154. prog perl-ds:Set-Object = {
  155. version = %{V_set_object}
  156. url = http://www.cpan.org/modules/by-module/Set/
  157. regex = Set-Object-(__VER__)\.tar\.gz
  158. }
  159. prog perl-ds:Tie-IxHash = {
  160. version = %{V_tie_ixhash}
  161. url = http://www.cpan.org/modules/by-module/Tie/
  162. regex = Tie-IxHash-(__VER__)\.tar\.gz
  163. }
  164. prog perl-ds:Tree = {
  165. version = %{V_tree}
  166. url = http://www.cpan.org/modules/by-module/Tree/
  167. regex = \bTree-(__VER__)\.tar\.gz
  168. }
  169. prog perl-ds:Tree-XPathEngine = {
  170. version = %{V_tree_xpathengine}
  171. url = http://www.cpan.org/modules/by-module/Tree/
  172. regex = Tree-XPathEngine-(__VER__)\.tar\.gz
  173. }
  174. prog perl-ds:Tree-DAG_Node = {
  175. version = %{V_tree_dag_node}
  176. url = http://www.cpan.org/modules/by-module/Tree/
  177. regex = Tree-DAG_Node-(__VER__)\.tar\.gz
  178. }
  179. prog perl-ds:Tree-DAG_Node-XPath = {
  180. version = %{V_tree_dag_node_xpath}
  181. url = http://www.cpan.org/modules/by-module/Tree/
  182. regex = Tree-DAG_Node-XPath-(__VER__)\.tar\.gz
  183. }
  184. prog perl-ds:Tree-Nary = {
  185. version = %{V_tree_nary}0
  186. url = http://www.cpan.org/modules/by-module/Tree/
  187. regex = Tree-Nary-(__VER__)\.tar\.gz
  188. transform = "s/^(\\d+\\.\\d)$/${1}0/; $_"
  189. }
  190. prog perl-ds:Tree-Simple = {
  191. version = %{V_tree_simple}
  192. url = http://www.cpan.org/modules/by-module/Tree/
  193. regex = Tree-Simple-(__VER__)\.tar\.gz
  194. }
  195. prog perl-ds:Tree-Simple-View = {
  196. version = %{V_tree_simple_view}
  197. url = http://www.cpan.org/modules/by-module/Tree/
  198. regex = Tree-Simple-View-(__VER__)\.tar\.gz
  199. }
  200. prog perl-ds:Tree-Simple-VisitorFactory = {
  201. version = %{V_tree_simple_visitorfactory}
  202. url = http://www.cpan.org/modules/by-module/Tree/
  203. regex = Tree-Simple-VisitorFactory-(__VER__)\.tar\.gz
  204. }
  205. prog perl-ds:Tree-Trie = {
  206. version = %{V_tree_trie}
  207. url = http://www.cpan.org/modules/by-module/Tree/
  208. regex = Tree-Trie-(__VER__)\.tar\.gz
  209. }
  210. prog perl-ds:Tree-BPTree = {
  211. version = %{V_tree_bptree}
  212. url = http://www.cpan.org/modules/by-module/Tree/
  213. regex = Tree-BPTree-(__VER__)\.tar\.gz
  214. }
  215. prog perl-ds:Array-Window = {
  216. version = %{V_array_window}
  217. url = http://www.cpan.org/modules/by-module/Array/
  218. regex = Array-Window-(__VER__)\.tar\.gz
  219. }
  220. prog perl-ds:Array-Each = {
  221. version = %{V_array_each}
  222. url = http://www.cpan.org/modules/by-module/Array/
  223. regex = Array-Each-(__VER__)\.tar\.gz
  224. }
  225. prog perl-ds:Scalar-List-Utils = {
  226. version = %{V_scalar_list_utils}
  227. url = http://www.cpan.org/modules/by-module/Scalar/
  228. regex = Scalar-List-Utils-(__VER__)\.tar\.gz
  229. }
  230. prog perl-ds:List-MoreUtils = {
  231. version = %{V_list_moreutils}
  232. url = http://www.cpan.org/modules/by-module/List/
  233. regex = List-MoreUtils-(__VER__)\.tar\.gz
  234. }
  235. prog perl-ds:Heap = {
  236. version = %{V_heap}
  237. url = http://www.cpan.org/modules/by-module/Heap/
  238. regex = Heap-(__VER__)\.tar\.gz
  239. }
  240. prog perl-ds:Graph = {
  241. version = %{V_graph}
  242. url = http://www.cpan.org/modules/by-module/Graph/
  243. regex = Graph-(\d+\.\d{2})\.tar\.gz
  244. }
  245. %prep
  246. %setup -q -c
  247. %setup -q -T -D -a 1
  248. %setup -q -T -D -a 2
  249. %setup -q -T -D -a 3
  250. %setup -q -T -D -a 4
  251. %setup -q -T -D -a 5
  252. %setup -q -T -D -a 6
  253. %setup -q -T -D -a 7
  254. %setup -q -T -D -a 8
  255. %setup -q -T -D -a 9
  256. %setup -q -T -D -a 10
  257. %setup -q -T -D -a 11
  258. %setup -q -T -D -a 12
  259. %setup -q -T -D -a 13
  260. %setup -q -T -D -a 14
  261. %setup -q -T -D -a 15
  262. %setup -q -T -D -a 16
  263. %setup -q -T -D -a 17
  264. %setup -q -T -D -a 18
  265. %setup -q -T -D -a 19
  266. %setup -q -T -D -a 20
  267. %setup -q -T -D -a 21
  268. %setup -q -T -D -a 22
  269. %setup -q -T -D -a 23
  270. %build
  271. %install
  272. rm -rf $RPM_BUILD_ROOT
  273. %{l_prefix}/bin/perl-openpkg prepare
  274. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  275. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  276. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  277. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  278. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  279. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  280. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  281. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  282. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  283. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  284. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  285. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  286. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  287. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  288. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  289. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  290. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  291. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  292. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  293. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  294. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  295. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  296. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  297. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  298. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  299. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  300. %files -f files
  301. %clean
  302. rm -rf $RPM_BUILD_ROOT