perl-ole.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ##
  2. ## perl-ole.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # versions of individual parts
  25. %define V_perl 5.8.6
  26. %define V_ole_storage 0.386
  27. %define V_ole_storage_light 0.14
  28. %define V_spreadsheet_writeexcel 2.13
  29. %define V_spreadsheet_parseexcel 0.2603
  30. %define V_spreadsheet_parseexcel_simple 1.02
  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: OpenPKG
  37. Distribution: OpenPKG
  38. Class: BASE
  39. Group: Language
  40. License: GPL/Artistic
  41. Version: %{V_perl}
  42. Release: 20050421
  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. Source4: http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-ParseExcel-Simple-%{V_spreadsheet_parseexcel_simple}.tar.gz
  49. # build information
  50. Prefix: %{l_prefix}
  51. BuildRoot: %{l_buildroot}
  52. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  53. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  54. BuildPreReq: perl-parse, perl-util
  55. PreReq: perl-parse, perl-util
  56. AutoReq: no
  57. AutoReqProv: no
  58. %description
  59. Perl modules for use with OLE documents:
  60. - OLE::Storage (%{V_ole_storage})
  61. - OLE::Storage::Light (%{V_ole_storage_light})
  62. - Spreadsheet::WriteExcel (%{V_spreadsheet_writeexcel})
  63. - Spreadsheet::ParseExcel (%{V_spreadsheet_parseexcel})
  64. - Spreadsheet::ParseExcel::Simple (%{V_spreadsheet_parseexcel_simple})
  65. %track
  66. prog perl-ole:OLE-Storage = {
  67. version = %{V_ole_storage}
  68. url = http://www.cpan.org/modules/by-module/OLE/
  69. regex = OLE-Storage-(__VER__)\.tar\.gz
  70. }
  71. prog perl-ole:OLE-Storage-Lite = {
  72. version = %{V_ole_storage_light}
  73. url = http://www.cpan.org/modules/by-module/OLE/
  74. regex = OLE-Storage_Lite-(__VER__)\.tar\.gz
  75. }
  76. prog perl-ole:Spreadsheet-ParseExcel = {
  77. version = %{V_spreadsheet_parseexcel}
  78. url = http://www.cpan.org/modules/by-module/Spreadsheet/
  79. regex = Spreadsheet-ParseExcel-(__VER__)\.tar\.gz
  80. }
  81. prog perl-ole:Spreadsheet-ParseExcel-Simple = {
  82. version = %{V_spreadsheet_parseexcel_simple}
  83. url = http://www.cpan.org/modules/by-module/Spreadsheet/
  84. regex = Spreadsheet-ParseExcel-Simple-(__VER__)\.tar\.gz
  85. }
  86. prog perl-ole:Spreadsheet-WriteExcel = {
  87. version = %{V_spreadsheet_writeexcel}
  88. url = http://www.cpan.org/modules/by-module/Spreadsheet/
  89. regex = Spreadsheet-WriteExcel-(__VER__)\.tar\.gz
  90. }
  91. %prep
  92. %setup -q -c
  93. %setup -q -T -D -a 1
  94. %setup -q -T -D -a 2
  95. %setup -q -T -D -a 3
  96. %setup -q -T -D -a 4
  97. %build
  98. %install
  99. rm -rf $RPM_BUILD_ROOT
  100. %{l_prefix}/bin/perl-openpkg prepare
  101. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  102. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  103. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  104. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  105. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  106. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  107. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  108. %files -f files
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT