#
# TODO:
+# - with new gcc version (it is possible that)
+# - -fvisibility=hiddenn and ac_cv_visibility_pragma=no can be removed
+# - with new firefox version (it is possible that)
+# - -fno-strict-aliasing can be removed (needs to be tested carefuly,
+# not to be fixed soon, imho)
# - handle locales differently (runtime, since it's possible to do)
# - see ftp://ftp.debian.org/debian/pool/main/m/mozilla-firefox/*diff*
# for hints how to make locales and other stuff like extensions working
# - rpm upgrade is broken. First you need uninstall Firefox 1.0.x.
+#
# Conditional build:
%bcond_with tests # enable tests (whatever they check)
%bcond_without gnome # disable all GNOME components (gnomevfs, gnome, gnomeui)
Patch2: %{name}-nss-system-nspr.patch
Patch3: %{name}-nopangoxft.patch
Patch4: %{name}-name.patch
+Patch5: %{name}-dumpstack.patch
+Patch6: %{name}-pango-typo.patch
# UPDATE or DROP?
#PatchX: %{name}-searchplugins.patch
URL: http://www.mozilla.org/projects/firefox/
Requires: %{name}-lang-resources = %{version}
Requires: nspr >= 1:4.6.1
Requires: nss >= 3.10.2
-# for /etc/ld.so.conf.d
-Requires: glibc >= 6:2.3.5-7.6
-Requires(post,postun): /sbin/ldconfig
Provides: wwwbrowser
Obsoletes: mozilla-firebird
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p0
+%patch6 -p0
sed -i 's/\(-lgss\)\(\W\)/\1disable\2/' configure
ac_add_options --with-system-nspr
ac_add_options --with-system-png
ac_add_options --with-system-zlib
+ac_cv_visibility_pragma=no
EOF
%{__make} -j1 -f client.mk build \
- CC="%{__cc}" \
+ CC="%{__cc} -fno-strict-aliasing -fvisibility=hidden" \
CXX="%{__cxx}"
%install
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/ldconfig
%{_sbindir}/firefox-chrome+xpcom-generate
%banner %{name} -e <<EOF
###################################################################
EOF
%postun
-/sbin/ldconfig
if [ "$1" != "0" ]; then
%{_sbindir}/firefox-chrome+xpcom-generate
fi