1 changed files with 90 additions and 0 deletions
@ -0,0 +1,90 @@
|
||||
## |
||||
## opera.spec -- OpenPKG RPM Specification |
||||
## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/> |
||||
## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com> |
||||
## Copyright (c) 2000-2003 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 version |
||||
%define V_real 7.21 |
||||
%define V_comp 721 |
||||
%define V_date 20031013.1 |
||||
|
||||
# package information |
||||
Name: opera |
||||
Summary: Graphical Web Browser |
||||
URL: http://www.opera.com/ |
||||
Vendor: Opera Software |
||||
Packager: The OpenPKG Project |
||||
Distribution: OpenPKG [EVAL] |
||||
Group: Web |
||||
License: Commercial |
||||
Version: %{V_real} |
||||
Release: 20031019 |
||||
|
||||
# list of sources |
||||
Source0: ftp://ftp.opera.com/pub/opera/unix/freebsd/%{V_comp}/final/en/static/opera-%{V_real}-%{V_date}-static-qt.i386.freebsd.tar.bz2 |
||||
Source1: ftp://ftp.opera.com/pub/opera/unix/solaris/%{V_comp}/final/en/static/opera-%{V_real}-%{V_date}-static-qt-sol8-sparc-local.tar.bz2 |
||||
Source2: ftp://ftp.opera.com/pub/opera/linux/%{V_comp}/final/en/i386/static/opera-%{V_real}-%{V_date}-static-qt.i386.tar.bz2 |
||||
|
||||
# build information |
||||
Prefix: %{l_prefix} |
||||
BuildRoot: %{l_buildroot} |
||||
BuildPreReq: OpenPKG, openpkg >= 20030103 |
||||
PreReq: OpenPKG, openpkg >= 20030103, X11 |
||||
AutoReq: no |
||||
AutoReqProv: no |
||||
|
||||
%description |
||||
Opera is a very fast graphical web browser. |
||||
|
||||
%prep |
||||
%setup -q -c -T |
||||
case "%{l_platform -t}" in |
||||
i?86-freebsd[45]* ) src="%{SOURCE0}" ;; |
||||
sun4?-sunos5* ) src="%{SOURCE1}" ;; |
||||
i?86-linux2* ) src="%{SOURCE2}" ;; |
||||
* ) echo "Platform \"%{l_platform -t}\" not supported" 1>&2; exit 1 ;; |
||||
esac |
||||
%{l_bzip2} -d -c $src | %{l_tar} xf - |
||||
|
||||
%build |
||||
|
||||
%install |
||||
rm -rf $RPM_BUILD_ROOT |
||||
( cd opera-* |
||||
./install.sh \ |
||||
--DESTDIR=$RPM_BUILD_ROOT \ |
||||
--exec_prefix=%{l_prefix}/libexec/opera \ |
||||
--wrapperdir=%{l_prefix}/bin \ |
||||
--docdir=%{l_prefix}/doc/opera \ |
||||
--sharedir=%{l_prefix}/share/opera \ |
||||
--plugindir=%{l_prefix}/libexec/opera \ |
||||
--verbose |
||||
rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc >/dev/null 2>&1 || true |
||||
) || exit $? |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
||||
Loading…
Reference in new issue