perl-ole.spec 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## perl-ole.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.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_ole_storage 0.386
  27. %define V_ole_storage_light 0.11
  28. %define V_spreadsheet_writeexcel 0.41
  29. %define V_spreadsheet_parseexcel 0.2602
  30. # package information
  31. Name: perl-ole
  32. Summary: Perl Modules for use with OLE Documents
  33. URL: http://www.cpan.org/
  34. Vendor: Perl Community
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG [BASE]
  37. Group: Language
  38. License: GPL/Artistic
  39. Version: 20030425
  40. Release: 20030425
  41. # list of sources
  42. Source0: http://www.cpan.org/modules/by-module/OLE/OLE-Storage-%{V_ole_storage}.tar.gz
  43. Source1: http://www.cpan.org/modules/by-module/OLE/OLE-Storage_Lite-%{V_ole_storage_light}.tar.gz
  44. Source2: http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-WriteExcel-%{V_spreadsheet_writeexcel}.tar.gz
  45. Source3: http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-ParseExcel-%{V_spreadsheet_parseexcel}.tar.gz
  46. # build information
  47. Prefix: %{l_prefix}
  48. BuildRoot: %{l_buildroot}
  49. BuildPreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-parse, perl-util
  50. PreReq: OpenPKG, openpkg >= 20020206, perl, perl-openpkg, perl-parse, perl-util
  51. AutoReq: no
  52. AutoReqProv: no
  53. %description
  54. Perl modules for use with OLE documents:
  55. - OLE::Storage (%{V_ole_storage})
  56. - OLE::Storage::Light (%{V_ole_storage_light})
  57. - Spreadsheet::WriteExcel (%{V_spreadsheet_writeexcel})
  58. - Spreadsheet::ParseExcel (%{V_spreadsheet_parseexcel})
  59. %prep
  60. %setup0 -q -c
  61. %setup1 -q -T -D -a 1
  62. %setup2 -q -T -D -a 2
  63. %setup3 -q -T -D -a 3
  64. %build
  65. %install
  66. # perform common prolog operations
  67. %{l_prefix}/bin/perl-openpkg prolog
  68. # build and install individual modules
  69. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE0}
  70. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE1}
  71. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE2}
  72. %{l_prefix}/bin/perl-openpkg install -d %{SOURCE3}
  73. # perform common epilog operations
  74. %{l_prefix}/bin/perl-openpkg epilog
  75. %files -f files
  76. %clean
  77. rm -rf $RPM_BUILD_ROOT