123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- ##
- ## mozilla.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
- ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.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: mozilla
- Summary: Graphical Web-Browser
- URL: http://www.mozilla.org/
- Vendor: Netscape
- Packager: The OpenPKG Project
- Distribution: OpenPKG [EXP]
- Group: Web
- License: MPL
- Version: 0.9.7
- Release: 20011222
- # list of sources
- Source0: ftp://ftp.mozilla.org/pub/mozilla/releases/mozilla%{version}/src/mozilla-source-%{version}.tar.bz2
- Source1: mozilla.sh
- Patch0: mozilla.patch.freebsd
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20011227, make, gcc, glib, gtk, orbit
- PreReq: OpenPKG, openpkg >= 20011227, make, gcc, glib, gtk, orbit
- AutoReq: no
- AutoReqProv: no
- %description
- Mozilla is a full-featured open-source web browser derived
- from Netscape Communicator, designed for standards compliance,
- performance and portability.
- %prep
- %setup -q -n mozilla
- #%patch -p0
- %build
- PATH="%{l_prefix}/bin:$PATH"; export PATH
- LD_LIBRARY_PATH="%{l_prefix}/lib:/usr/lib:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH
- CC="%{l_cc}" \
- CXX="%{l_cxx}" \
- CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
- CXXFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \
- LDFLAGS="-L%{l_prefix}/lib" \
- GLIB_CONFIG="%{l_prefix}/bin/glib-config" \
- GTK_CONFIG="%{l_prefix}/bin/gtk-config" \
- LIBIDL_CONFIG="%{l_prefix}/bin/libIDL-config" \
- ./configure \
- --prefix=%{l_prefix} \
- --with-jpeg=%{l_prefix} \
- --with-png=%{l_prefix} \
- --with-zlib=%{l_prefix} \
- --enable-toolkit=gtk \
- --with-gtk \
- --with-gtk-prefix=%{l_prefix} \
- --with-glib-prefix=%{l_prefix} \
- --with-libIDL-prefix=%{l_prefix} \
- --enable-shared \
- --enable-double-buffer \
- --enable-x11-shm \
- --disable-dtd-debug \
- --disable-cpp-exceptions \
- --disable-cpp-rtti \
- --disable-md \
- --disable-pedantic \
- --disable-xterm-updates \
- --enable-editor \
- --enable-mailnews \
- --enable-crypto \
- --disable-ldap \
- --disable-debug \
- --disable-tests \
- --with-pthreads
- %{l_make} %{l_mflags}
- ( cd dist/bin
- LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
- MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
- ./regxpcom
- echo "skin,install,select,classic/1.0" >>chrome/installed-chrome.txt
- echo "locale,install,select,en-US" >>chrome/installed-chrome.txt
- ./regchrome
- find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
- )
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin \
- $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla
- (cd dist/bin && %{l_tar} -chf - . ) |\
- (cd $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla && %{l_tar} -xf -)
- strip $RPM_BUILD_ROOT%{l_prefix}/lib/mozilla/* >/dev/null 2>&1 || true
- %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
- %{SOURCE mozilla.sh} \
- $RPM_BUILD_ROOT%{l_prefix}/bin/mozilla
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|