wine-msov.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## wine-msov.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2003 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 information
  26. Name: wine-msov
  27. Summary: Microsoft Office Viewer for WINE
  28. URL: http://www.microsoft.com/
  29. Vendor: Microsoft
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: XWindow
  33. License: Freeware
  34. Version: 20030814
  35. Release: 20031128
  36. # list of sources
  37. Source0: http://download.microsoft.com/download/excel2000/Xlviewer/2000/WIN98/EN-US/xlViewer.exe
  38. Source1: http://download.microsoft.com/download/word2000/wd97vwr/2000/WIN98/EN-US/wd97vwr32.exe
  39. Source2: http://download.microsoft.com/download/powerpoint2000/ppview97/2000/WIN98/EN-US/ppview97.exe
  40. Source3: wine-msov.sh
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20030103
  45. PreReq: OpenPKG, openpkg >= 20030103, X11, wine
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. This package contains the freely available viewer applications
  50. from Microsoft Office 2000 for the Word 2000 (.doc), Excel 2000
  51. (.xls) and PowerPoint 2000 (.ppt) format files. To be used, they
  52. have to be installed into the WINE installation area of each user.
  53. More information about the three applications can be found at the
  54. following URLs:
  55. http://office.microsoft.com/downloads/2000/wd97vwr32.aspx
  56. http://office.microsoft.com/downloads/2000/xlviewer.aspx
  57. http://office.microsoft.com/downloads/2000/ppview97.aspx
  58. %prep
  59. %setup -q -c -T
  60. %build
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin
  65. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  66. %{SOURCE wine-msov.sh} \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin/msov
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/share/wine-msov
  70. %{l_shtool} install -c -m 644 \
  71. %{SOURCE wd97vwr32.exe} \
  72. %{SOURCE xlViewer.exe} \
  73. %{SOURCE ppview97.exe} \
  74. $RPM_BUILD_ROOT%{l_prefix}/share/wine-msov/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT
  79. %post
  80. if [ $1 -eq 1 ]; then
  81. ( echo "In order to use \"msov\", every user has to install local copies"
  82. echo "of the viewer applications into the WINE folder \$HOME/.wine/."
  83. echo "For this each user has to initially run:"
  84. echo "\$ $RPM_INSTALL_PREFIX/bin/msov --setup"
  85. ) | %{l_rpmtool} msg -b
  86. fi