perl-ds.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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.3
  27. %define V_bit_vector 6.3
  28. %define V_set_scalar 1.18
  29. %define V_io_string 1.04
  30. %define V_io_stringy 2.109
  31. %define V_tie_ixhash 1.21
  32. # package information
  33. Name: perl-ds
  34. Summary: Perl Modules for use with data structures
  35. URL: http://www.cpan.org/
  36. Vendor: Perl Community
  37. Packager: The OpenPKG Project
  38. Distribution: OpenPKG
  39. Class: BASE
  40. Group: Language
  41. License: GPL/Artistic
  42. Version: %{V_perl}
  43. Release: 20040218
  44. # list of sources
  45. Source0: http://www.cpan.org/modules/by-module/Bit/Bit-Vector-%{V_bit_vector}.tar.gz
  46. Source1: http://www.cpan.org/modules/by-module/Set/Set-Scalar-%{V_set_scalar}.tar.gz
  47. Source2: http://www.cpan.org/modules/by-module/IO/IO-String-%{V_io_string}.tar.gz
  48. Source3: http://www.cpan.org/modules/by-module/IO/IO-stringy-%{V_io_stringy}.tar.gz
  49. Source4: http://www.cpan.org/modules/by-module/Tie/Tie-IxHash-%{V_tie_ixhash}.tar.gz
  50. # build information
  51. Prefix: %{l_prefix}
  52. BuildRoot: %{l_buildroot}
  53. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  54. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  55. AutoReq: no
  56. AutoReqProv: no
  57. %description
  58. Perl modules for use with data structures:
  59. - Bit::Vector (%{V_bit_vector})
  60. - Set::Scalar (%{V_set_scalar})
  61. - IO::String (%{V_io_string})
  62. - IO::stringy (%{V_io_stringy})
  63. - Tie::IxHash (%{V_tie_ixhash})
  64. %track
  65. prog perl-ds:Bit-Vector = {
  66. version = %{V_bit_vector}
  67. url = http://www.cpan.org/modules/by-module/Bit/
  68. regex = Bit-Vector-(__VER__)\.tar\.gz
  69. }
  70. prog perl-ds:IO-String = {
  71. version = %{V_io_string}
  72. url = http://www.cpan.org/modules/by-module/IO/
  73. regex = IO-String-(__VER__)\.tar\.gz
  74. }
  75. prog perl-ds:IO-stringy = {
  76. version = %{V_io_stringy}
  77. url = http://www.cpan.org/modules/by-module/IO/
  78. regex = IO-stringy-(__VER__)\.tar\.gz
  79. }
  80. prog perl-ds:Set-Scalar = {
  81. version = %{V_set_scalar}
  82. url = http://www.cpan.org/modules/by-module/Set/
  83. regex = Set-Scalar-(__VER__)\.tar\.gz
  84. }
  85. prog perl-ds:Tie-IxHash = {
  86. version = %{V_tie_ixhash}
  87. url = http://www.cpan.org/modules/by-module/Tie/
  88. regex = Tie-IxHash-(__VER__)\.tar\.gz
  89. }
  90. %prep
  91. %setup -q -c
  92. %setup -q -T -D -a 1
  93. %setup -q -T -D -a 2
  94. %setup -q -T -D -a 3
  95. %setup -q -T -D -a 4
  96. %build
  97. %install
  98. %{l_prefix}/bin/perl-openpkg prepare
  99. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  100. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  101. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  102. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  103. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  104. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  105. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  106. %files -f files
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT