perl-ds.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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.4
  27. %define V_bit_vector 6.3
  28. %define V_set_scalar 1.19
  29. %define V_io_string 1.05
  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.01
  35. %define V_tree_trie 1.0
  36. %define V_tree_bptree 1.06
  37. %define V_math_bigint 1.70
  38. # package information
  39. Name: perl-ds
  40. Summary: Perl Modules for use with data structures
  41. URL: http://www.cpan.org/
  42. Vendor: Perl Community
  43. Packager: The OpenPKG Project
  44. Distribution: OpenPKG
  45. Class: BASE
  46. Group: Language
  47. License: GPL/Artistic
  48. Version: %{V_perl}
  49. Release: 20040429
  50. # list of sources
  51. Source0: http://www.cpan.org/modules/by-module/Bit/Bit-Vector-%{V_bit_vector}.tar.gz
  52. Source1: http://www.cpan.org/modules/by-module/Set/Set-Scalar-%{V_set_scalar}.tar.gz
  53. Source2: http://www.cpan.org/modules/by-module/IO/IO-String-%{V_io_string}.tar.gz
  54. Source3: http://www.cpan.org/modules/by-module/IO/IO-stringy-%{V_io_stringy}.tar.gz
  55. Source4: http://www.cpan.org/modules/by-module/Tie/Tie-IxHash-%{V_tie_ixhash}.tar.gz
  56. Source5: http://www.cpan.org/modules/by-module/Tree/Tree-DAG_Node-%{V_tree_dag_node}.tar.gz
  57. Source6: http://www.cpan.org/modules/by-module/Tree/Tree-Nary-%{V_tree_nary}.tar.gz
  58. Source7: http://www.cpan.org/modules/by-module/Tree/Tree-Simple-%{V_tree_simple}.tar.gz
  59. Source8: http://www.cpan.org/modules/by-module/Tree/Tree-Trie-%{V_tree_trie}.tar.gz
  60. Source9: http://www.cpan.org/modules/by-module/Tree/Tree-BPTree-%{V_tree_bptree}.tar.gz
  61. Source10: http://www.cpan.org/authors/id/T/TE/TELS/math/Math-BigInt-%{V_math_bigint}.tar.gz
  62. # build information
  63. Prefix: %{l_prefix}
  64. BuildRoot: %{l_buildroot}
  65. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  66. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  67. AutoReq: no
  68. AutoReqProv: no
  69. %description
  70. Perl modules for use with data structures:
  71. - Bit::Vector (%{V_bit_vector})
  72. - Set::Scalar (%{V_set_scalar})
  73. - IO::String (%{V_io_string})
  74. - IO::stringy (%{V_io_stringy})
  75. - Tie::IxHash (%{V_tie_ixhash})
  76. - Tree::DAG_Node (%{V_tree_dag_node})
  77. - Tree::Nary (%{V_tree_nary})
  78. - Tree::Simple (%{V_tree_simple})
  79. - Tree::Trie (%{V_tree_trie})
  80. - Tree::BPTree (%{V_tree_bptree})
  81. - Math::BigInt (%{V_math_bigint})
  82. %track
  83. prog perl-ds:Bit-Vector = {
  84. version = %{V_bit_vector}
  85. url = http://www.cpan.org/modules/by-module/Bit/
  86. regex = Bit-Vector-(__VER__)\.tar\.gz
  87. }
  88. prog perl-ds:IO-String = {
  89. version = %{V_io_string}
  90. url = http://www.cpan.org/modules/by-module/IO/
  91. regex = IO-String-(__VER__)\.tar\.gz
  92. }
  93. prog perl-ds:IO-stringy = {
  94. version = %{V_io_stringy}
  95. url = http://www.cpan.org/modules/by-module/IO/
  96. regex = IO-stringy-(__VER__)\.tar\.gz
  97. }
  98. prog perl-ds:Set-Scalar = {
  99. version = %{V_set_scalar}
  100. url = http://www.cpan.org/modules/by-module/Set/
  101. regex = Set-Scalar-(__VER__)\.tar\.gz
  102. }
  103. prog perl-ds:Tie-IxHash = {
  104. version = %{V_tie_ixhash}
  105. url = http://www.cpan.org/modules/by-module/Tie/
  106. regex = Tie-IxHash-(__VER__)\.tar\.gz
  107. }
  108. prog perl-ds:Tree-DAG_Node = {
  109. version = %{V_tree_dag_node}
  110. url = http://www.cpan.org/modules/by-module/Tree/
  111. regex = Tree-DAG_Node-(__VER__)\.tar\.gz
  112. }
  113. prog perl-ds:Tree-Nary = {
  114. version = %{V_tree_nary}0
  115. url = http://www.cpan.org/modules/by-module/Tree/
  116. regex = Tree-Nary-(__VER__)\.tar\.gz
  117. transform = "s/^(\\d+\\.\\d)$/${1}0/; $_"
  118. }
  119. prog perl-ds:Tree-Simple = {
  120. version = %{V_tree_simple}
  121. url = http://www.cpan.org/modules/by-module/Tree/
  122. regex = Tree-Simple-(__VER__)\.tar\.gz
  123. }
  124. prog perl-ds:Tree-Trie = {
  125. version = %{V_tree_trie}
  126. url = http://www.cpan.org/modules/by-module/Tree/
  127. regex = Tree-Trie-(__VER__)\.tar\.gz
  128. }
  129. prog perl-ds:Tree-BPTree = {
  130. version = %{V_tree_bptree}
  131. url = http://www.cpan.org/modules/by-module/Tree/
  132. regex = Tree-BPTree-(__VER__)\.tar\.gz
  133. }
  134. prog perl-ds:Math-BigInt = {
  135. version = %{V_math_bigint}
  136. url = http://www.cpan.org/authors/id/T/TE/TELS/math/
  137. regex = Math-BigInt-(__VER__)\.tar\.gz
  138. }
  139. %prep
  140. %setup -q -c
  141. %setup -q -T -D -a 1
  142. %setup -q -T -D -a 2
  143. %setup -q -T -D -a 3
  144. %setup -q -T -D -a 4
  145. %setup -q -T -D -a 5
  146. %setup -q -T -D -a 6
  147. %setup -q -T -D -a 7
  148. %setup -q -T -D -a 8
  149. %setup -q -T -D -a 9
  150. %setup -q -T -D -a 10
  151. %build
  152. %install
  153. %{l_prefix}/bin/perl-openpkg prepare
  154. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  155. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  156. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  157. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  158. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  159. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  160. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  161. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  162. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  163. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  164. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  165. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  166. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  167. %files -f files
  168. %clean
  169. rm -rf $RPM_BUILD_ROOT