perl-ds.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. ##
  2. ## perl-ds.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package versions
  26. %define V_perl 5.8.5
  27. %define V_bit_vector 6.4
  28. %define V_set_scalar 1.19
  29. %define V_io_string 1.06
  30. %define V_io_stringy 2.109
  31. %define V_tie_ixhash 1.21
  32. %define V_tree_dag_node 1.04
  33. %define V_tree_nary 1.3
  34. %define V_tree_simple 1.14
  35. %define V_tree_trie 1.0
  36. %define V_tree_bptree 1.06
  37. %define V_array_window 0.4
  38. %define V_array_each 0.02
  39. # package information
  40. Name: perl-ds
  41. Summary: Perl Modules for use with data structures
  42. URL: http://www.cpan.org/
  43. Vendor: Perl Community
  44. Packager: The OpenPKG Project
  45. Distribution: OpenPKG
  46. Class: BASE
  47. Group: Language
  48. License: GPL/Artistic
  49. Version: %{V_perl}
  50. Release: 20041119
  51. # list of sources
  52. Source0: http://www.cpan.org/modules/by-module/Bit/Bit-Vector-%{V_bit_vector}.tar.gz
  53. Source1: http://www.cpan.org/modules/by-module/Set/Set-Scalar-%{V_set_scalar}.tar.gz
  54. Source2: http://www.cpan.org/modules/by-module/IO/IO-String-%{V_io_string}.tar.gz
  55. Source3: http://www.cpan.org/modules/by-module/IO/IO-stringy-%{V_io_stringy}.tar.gz
  56. Source4: http://www.cpan.org/modules/by-module/Tie/Tie-IxHash-%{V_tie_ixhash}.tar.gz
  57. Source5: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-%{V_tree_dag_node}.tar.gz
  58. Source6: http://www.cpan.org/modules/by-module/Tree/Tree-Nary-%{V_tree_nary}.tar.gz
  59. Source7: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-%{V_tree_simple}.tar.gz
  60. Source8: http://www.cpan.org/modules/by-module/Tree/Tree-Trie-%{V_tree_trie}.tar.gz
  61. Source9: http://www.cpan.org/modules/by-module/Tree/Tree-BPTree-%{V_tree_bptree}.tar.gz
  62. Source10: http://www.cpan.org/modules/by-module/Array/Array-Window-%{V_array_window}.tar.gz
  63. Source11: http://www.cpan.org/modules/by-module/Array/Array-Each-%{V_array_each}.tar.gz
  64. # build information
  65. Prefix: %{l_prefix}
  66. BuildRoot: %{l_buildroot}
  67. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  68. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  69. AutoReq: no
  70. AutoReqProv: no
  71. %description
  72. Perl modules for use with data structures:
  73. - Bit::Vector (%{V_bit_vector})
  74. - Set::Scalar (%{V_set_scalar})
  75. - IO::String (%{V_io_string})
  76. - IO::stringy (%{V_io_stringy})
  77. - Tie::IxHash (%{V_tie_ixhash})
  78. - Tree::DAG_Node (%{V_tree_dag_node})
  79. - Tree::Nary (%{V_tree_nary})
  80. - Tree::Simple (%{V_tree_simple})
  81. - Tree::Trie (%{V_tree_trie})
  82. - Tree::BPTree (%{V_tree_bptree})
  83. - Array::Window (%{V_array_window})
  84. - Array::Each (%{V_array_each})
  85. %track
  86. prog perl-ds:Bit-Vector = {
  87. version = %{V_bit_vector}
  88. url = http://www.cpan.org/modules/by-module/Bit/
  89. regex = Bit-Vector-(__VER__)\.tar\.gz
  90. }
  91. prog perl-ds:IO-String = {
  92. version = %{V_io_string}
  93. url = http://www.cpan.org/modules/by-module/IO/
  94. regex = IO-String-(__VER__)\.tar\.gz
  95. }
  96. prog perl-ds:IO-stringy = {
  97. version = %{V_io_stringy}
  98. url = http://www.cpan.org/modules/by-module/IO/
  99. regex = IO-stringy-(__VER__)\.tar\.gz
  100. }
  101. prog perl-ds:Set-Scalar = {
  102. version = %{V_set_scalar}
  103. url = http://www.cpan.org/modules/by-module/Set/
  104. regex = Set-Scalar-(__VER__)\.tar\.gz
  105. }
  106. prog perl-ds:Tie-IxHash = {
  107. version = %{V_tie_ixhash}
  108. url = http://www.cpan.org/modules/by-module/Tie/
  109. regex = Tie-IxHash-(__VER__)\.tar\.gz
  110. }
  111. prog perl-ds:Tree-DAG_Node = {
  112. version = %{V_tree_dag_node}
  113. url = http://www.cpan.org/modules/by-module/Tree/
  114. regex = Tree-DAG_Node-(__VER__)\.tar\.gz
  115. }
  116. prog perl-ds:Tree-Nary = {
  117. version = %{V_tree_nary}0
  118. url = http://www.cpan.org/modules/by-module/Tree/
  119. regex = Tree-Nary-(__VER__)\.tar\.gz
  120. transform = "s/^(\\d+\\.\\d)$/${1}0/; $_"
  121. }
  122. prog perl-ds:Tree-Simple = {
  123. version = %{V_tree_simple}
  124. url = http://www.cpan.org/modules/by-module/Tree/
  125. regex = Tree-Simple-(__VER__)\.tar\.gz
  126. }
  127. prog perl-ds:Tree-Trie = {
  128. version = %{V_tree_trie}
  129. url = http://www.cpan.org/modules/by-module/Tree/
  130. regex = Tree-Trie-(__VER__)\.tar\.gz
  131. }
  132. prog perl-ds:Tree-BPTree = {
  133. version = %{V_tree_bptree}
  134. url = http://www.cpan.org/modules/by-module/Tree/
  135. regex = Tree-BPTree-(__VER__)\.tar\.gz
  136. }
  137. prog perl-ds:Array-Window = {
  138. version = %{V_array_window}
  139. url = http://www.cpan.org/modules/by-module/Array/
  140. regex = Array-Window-(__VER__)\.tar\.gz
  141. }
  142. prog perl-ds:Array-Each = {
  143. version = %{V_array_each}
  144. url = http://www.cpan.org/modules/by-module/Array/
  145. regex = Array-Each-(__VER__)\.tar\.gz
  146. }
  147. %prep
  148. %setup -q -c
  149. %setup -q -T -D -a 1
  150. %setup -q -T -D -a 2
  151. %setup -q -T -D -a 3
  152. %setup -q -T -D -a 4
  153. %setup -q -T -D -a 5
  154. %setup -q -T -D -a 6
  155. %setup -q -T -D -a 7
  156. %setup -q -T -D -a 8
  157. %setup -q -T -D -a 9
  158. %setup -q -T -D -a 10
  159. %setup -q -T -D -a 11
  160. %build
  161. %install
  162. rm -rf $RPM_BUILD_ROOT
  163. %{l_prefix}/bin/perl-openpkg prepare
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  165. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  166. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  167. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  168. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  169. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  170. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  171. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  172. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  173. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  174. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  175. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  176. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  177. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  178. %files -f files
  179. %clean
  180. rm -rf $RPM_BUILD_ROOT