perl-ds.spec 11 KB

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