perl-ole.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ##
  2. ## perl-ole.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. # versions of individual parts
  26. %define V_perl 5.8.4
  27. %define V_ole_storage 0.386
  28. %define V_ole_storage_light 0.11
  29. %define V_spreadsheet_writeexcel 0.43
  30. %define V_spreadsheet_parseexcel 0.2602
  31. # package information
  32. Name: perl-ole
  33. Summary: Perl Modules for use with OLE Documents
  34. URL: http://www.cpan.org/
  35. Vendor: Perl Community
  36. Packager: The OpenPKG Project
  37. Distribution: OpenPKG
  38. Class: BASE
  39. Group: Language
  40. License: GPL/Artistic
  41. Version: %{V_perl}
  42. Release: 20040508
  43. # list of sources
  44. Source0: http://www.cpan.org/modules/by-module/OLE/OLE-Storage-%{V_ole_storage}.tar.gz
  45. Source1: http://www.cpan.org/modules/by-module/OLE/OLE-Storage_Lite-%{V_ole_storage_light}.tar.gz
  46. Source2: http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-WriteExcel-%{V_spreadsheet_writeexcel}.tar.gz
  47. Source3: http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-ParseExcel-%{V_spreadsheet_parseexcel}.tar.gz
  48. # build information
  49. Prefix: %{l_prefix}
  50. BuildRoot: %{l_buildroot}
  51. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  52. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  53. BuildPreReq: perl-parse, perl-util
  54. PreReq: perl-parse, perl-util
  55. AutoReq: no
  56. AutoReqProv: no
  57. %description
  58. Perl modules for use with OLE documents:
  59. - OLE::Storage (%{V_ole_storage})
  60. - OLE::Storage::Light (%{V_ole_storage_light})
  61. - Spreadsheet::WriteExcel (%{V_spreadsheet_writeexcel})
  62. - Spreadsheet::ParseExcel (%{V_spreadsheet_parseexcel})
  63. %track
  64. prog perl-ole:OLE-Storage = {
  65. version = %{V_ole_storage}
  66. url = http://www.cpan.org/modules/by-module/OLE/
  67. regex = OLE-Storage-(__VER__)\.tar\.gz
  68. }
  69. prog perl-ole:OLE-Storage-Lite = {
  70. version = %{V_ole_storage_light}
  71. url = http://www.cpan.org/modules/by-module/OLE/
  72. regex = OLE-Storage_Lite-(__VER__)\.tar\.gz
  73. }
  74. prog perl-ole:Spreadsheet-ParseExcel = {
  75. version = %{V_spreadsheet_parseexcel}
  76. url = http://www.cpan.org/modules/by-module/Spreadsheet/
  77. regex = Spreadsheet-ParseExcel-(__VER__)\.tar\.gz
  78. }
  79. prog perl-ole:Spreadsheet-WriteExcel = {
  80. version = %{V_spreadsheet_writeexcel}
  81. url = http://www.cpan.org/modules/by-module/Spreadsheet/
  82. regex = Spreadsheet-WriteExcel-(__VER__)\.tar\.gz
  83. }
  84. %prep
  85. %setup -q -c
  86. %setup -q -T -D -a 1
  87. %setup -q -T -D -a 2
  88. %setup -q -T -D -a 3
  89. %build
  90. %install
  91. rm -rf $RPM_BUILD_ROOT
  92. %{l_prefix}/bin/perl-openpkg prepare
  93. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  94. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  95. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  96. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  97. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  98. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  99. %files -f files
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT