perl-ds.spec 11 KB

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