|
|
@@ -22,12 +22,6 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
-# FIXME: rse: fails because some .rdf/.jar stuff cannot be built
|
|
|
-
|
|
|
-# package version
|
|
|
-%define V_main 1.0.1
|
|
|
-%define V_subdir 1.0.1
|
|
|
-
|
|
|
# package information
|
|
|
Name: firefox
|
|
|
Summary: Graphical Web Browser
|
|
|
@@ -38,28 +32,27 @@ Distribution: OpenPKG
|
|
|
Class: JUNK
|
|
|
Group: Web
|
|
|
License: MPL
|
|
|
-Version: %{V_subdir}
|
|
|
-Release: 20050309
|
|
|
+Version: 1.0.2
|
|
|
+Release: 20050324
|
|
|
|
|
|
# package options
|
|
|
%option with_optimize yes
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{V_subdir}/source/firefox-%{V_main}-source.tar.bz2
|
|
|
-Source1: ftp://ftp.openpkg.org/sources/CPY/mozilla/mozilla-1.7.2-libart.tar.bz2
|
|
|
-Source2: firefox.sh
|
|
|
-Source3: firefox.pod
|
|
|
+Source0: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}-source.tar.bz2
|
|
|
+Source1: firefox.sh
|
|
|
+Source2: firefox.pod
|
|
|
Patch0: firefox.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, perl
|
|
|
-PreReq: OpenPKG, openpkg >= 20040130, xsel
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, perl, pkgconfig
|
|
|
+PreReq: OpenPKG, openpkg >= 20040130, xsel, wmctrl
|
|
|
BuildPreReq: X11, glib, gtk, png, jpeg, orbit, libiconv
|
|
|
-BuildPreReq: infozip, zlib, openssl, freetype
|
|
|
PreReq: X11, glib, gtk, png, jpeg, orbit, libiconv
|
|
|
-PreReq: infozip, zlib, openssl, freetype
|
|
|
+BuildPreReq: infozip, zlib, openssl, freetype, cairo, cairo::with_x11 = yes
|
|
|
+PreReq: infozip, zlib, openssl, freetype, cairo, cairo::with_x11 = yes
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -70,7 +63,7 @@ AutoReqProv: no
|
|
|
|
|
|
%track
|
|
|
prog firefox = {
|
|
|
- version = %{V_main}
|
|
|
+ version = %{version}
|
|
|
url = ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
|
|
|
regex = (__VER__)
|
|
|
url = ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/__NEWVER__/source/
|
|
|
@@ -79,9 +72,7 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
# extract source distribution
|
|
|
- %setup -q -c
|
|
|
- %setup -q -D -T -a 1
|
|
|
- cd mozilla
|
|
|
+ %setup -q -n mozilla
|
|
|
|
|
|
# patch source distribution
|
|
|
%patch -p0
|
|
|
@@ -95,8 +86,6 @@ AutoReqProv: no
|
|
|
rm -rf build/package
|
|
|
|
|
|
%build
|
|
|
- cd mozilla
|
|
|
-
|
|
|
# determine X11 paths
|
|
|
x11_libdir=`%{l_rc} --query x11_libdir`
|
|
|
x11_incdir=`%{l_rc} --query x11_incdir`
|
|
|
@@ -113,15 +102,19 @@ AutoReqProv: no
|
|
|
GTK_CONFIG="%{l_prefix}/bin/gtk-config"
|
|
|
LIBIDL_CONFIG="%{l_prefix}/bin/libIDL-config"
|
|
|
PERL="%{l_prefix}/bin/perl"
|
|
|
- MOZ_INTERNAL_LIBART_LGPL=1
|
|
|
+ MOZILLA_OFFICIAL=1
|
|
|
+ BUILD_OFFICIAL=1
|
|
|
+ MOZ_PHOENIX=1
|
|
|
export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
|
export GLIB_CONFIG GTK_CONFIG LIBIDL_CONFIG
|
|
|
- export MOZ_INTERNAL_LIBART_LGPL
|
|
|
+ export MOZILLA_OFFICIAL BUILD_OFFICIAL
|
|
|
+ export MOZ_PHOENIX
|
|
|
|
|
|
# configure source
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--libdir=%{l_prefix}/lib/firefox \
|
|
|
+ --with-default-mozilla-five-home=%{l_prefix}/lib/firefox \
|
|
|
--includedir=%{l_prefix}/include/firefox \
|
|
|
--with-x \
|
|
|
--x-includes=`%{l_rc} --query x11_incdir` \
|
|
|
@@ -137,11 +130,14 @@ AutoReqProv: no
|
|
|
--with-system-png=%{l_prefix} \
|
|
|
--with-system-zlib=%{l_prefix} \
|
|
|
--with-ft-prefix=%{l_prefix} \
|
|
|
+ --enable-application=browser \
|
|
|
+ --with-user-appdir=.firefox \
|
|
|
+ --enable-extensions=all,-typeaheadfind \
|
|
|
--enable-jsd \
|
|
|
--enable-crypto \
|
|
|
--enable-chrome-format=jar \
|
|
|
--enable-svg \
|
|
|
- --enable-svg-renderer-libart \
|
|
|
+ --enable-svg-renderer-cairo \
|
|
|
--enable-static \
|
|
|
--enable-strip \
|
|
|
%if "%{with_optimize}" == "yes"
|
|
|
@@ -165,6 +161,8 @@ AutoReqProv: no
|
|
|
--disable-cpp-rtti \
|
|
|
--disable-xterm-updates \
|
|
|
--disable-elf-dynstr-gc \
|
|
|
+ --disable-profilesharing \
|
|
|
+ --enable-single-profile \
|
|
|
--with-pthreads
|
|
|
|
|
|
# build program
|
|
|
@@ -209,7 +207,7 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1
|
|
|
|
|
|
# move files into temporary installation tree
|
|
|
- ( cd mozilla/dist/bin && %{l_tar} -chf - . ) |\
|
|
|
+ ( cd dist/bin && %{l_tar} -chf - . ) |\
|
|
|
( cd $RPM_BUILD_ROOT%{l_prefix}/lib/firefox && %{l_tar} -xf - ) || exit $?
|
|
|
|
|
|
# add startup convenience wrapper
|