You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
3.7 KiB
98 lines
3.7 KiB
## |
|
## wine-msov.spec -- OpenPKG RPM Specification |
|
## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/> |
|
## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com> |
|
## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# package information |
|
Name: wine-msov |
|
Summary: Microsoft Office Viewer for WINE |
|
URL: http://www.microsoft.com/ |
|
Vendor: Microsoft |
|
Packager: The OpenPKG Project |
|
Distribution: OpenPKG [EVAL] |
|
Group: XWindow |
|
License: Freeware |
|
Version: 20030814 |
|
Release: 20031128 |
|
|
|
# list of sources |
|
Source0: http://download.microsoft.com/download/excel2000/Xlviewer/2000/WIN98/EN-US/xlViewer.exe |
|
Source1: http://download.microsoft.com/download/word2000/wd97vwr/2000/WIN98/EN-US/wd97vwr32.exe |
|
Source2: http://download.microsoft.com/download/powerpoint2000/ppview97/2000/WIN98/EN-US/ppview97.exe |
|
Source3: wine-msov.sh |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20030103 |
|
PreReq: OpenPKG, openpkg >= 20030103, X11, wine |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
This package contains the freely available viewer applications |
|
from Microsoft Office 2000 for the Word 2000 (.doc), Excel 2000 |
|
(.xls) and PowerPoint 2000 (.ppt) format files. To be used, they |
|
have to be installed into the WINE installation area of each user. |
|
More information about the three applications can be found at the |
|
following URLs: |
|
|
|
http://office.microsoft.com/downloads/2000/wd97vwr32.aspx |
|
http://office.microsoft.com/downloads/2000/xlviewer.aspx |
|
http://office.microsoft.com/downloads/2000/ppview97.aspx |
|
|
|
%prep |
|
%setup -q -c -T |
|
|
|
%build |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/bin |
|
%{l_shtool} install -c -m 755 %{l_value -s -a} \ |
|
%{SOURCE wine-msov.sh} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/bin/msov |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/wine-msov |
|
%{l_shtool} install -c -m 644 \ |
|
%{SOURCE wd97vwr32.exe} \ |
|
%{SOURCE xlViewer.exe} \ |
|
%{SOURCE ppview97.exe} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/share/wine-msov/ |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
%post |
|
if [ $1 -eq 1 ]; then |
|
( echo "In order to use \"msov\", every user has to install local copies" |
|
echo "of the viewer applications into the WINE folder \$HOME/.wine/." |
|
echo "For this each user has to initially run:" |
|
echo "\$ $RPM_INSTALL_PREFIX/bin/msov --setup" |
|
) | %{l_rpmtool} msg -b |
|
fi |
|
|
|
|