]> git.pld-linux.org Git - packages/firefox.git/blobdiff - mozilla-firefox.spec
- force disabled visibility
[packages/firefox.git] / mozilla-firefox.spec
index 9c6802007189b19ad03fe4db6b74fcf36ffdf631..b214cdc88b6ff8336f266c553f432f9be35672c6 100644 (file)
@@ -1,9 +1,15 @@
 #
 # 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)
@@ -12,7 +18,7 @@ Summary:      Mozilla Firefox web browser
 Summary(pl):   Mozilla Firefox - przeglĀ±darka WWW
 Name:          mozilla-firefox
 Version:       1.5.0.1
-Release:       2
+Release:       4
 License:       MPL/LGPL
 Group:         X11/Applications/Networking
 Source0:       ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}-source.tar.bz2
@@ -24,6 +30,8 @@ Patch1:               %{name}-lib_path.patch
 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/
@@ -48,9 +56,6 @@ BuildRequires:        zip
 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)
@@ -104,6 +109,8 @@ Angloj
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p0
+%patch6 -p0
 
 sed -i 's/\(-lgss\)\(\W\)/\1disable\2/' configure
 
@@ -180,10 +187,11 @@ ac_add_options --with-system-jpeg
 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" \
        CXX="%{__cxx}"
 
 %install
@@ -194,6 +202,8 @@ install -d \
        $RPM_BUILD_ROOT{%{_includedir}/%{name}/idl,%{_pkgconfigdir}}
 # extensions dir is needed (it can be empty)
 
+ln -s mozilla-firefox $RPM_BUILD_ROOT%{_bindir}/firefox
+
 %{__make} -C xpinstall/packager \
        MOZ_PKG_APPNAME="mozilla-firefox" \
        MOZILLA_BIN="\$(DIST)/bin/firefox-bin" \
@@ -268,7 +278,6 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
 %{_sbindir}/firefox-chrome+xpcom-generate
 %banner %{name} -e <<EOF
 ###################################################################
@@ -281,7 +290,6 @@ rm -rf $RPM_BUILD_ROOT
 EOF
 
 %postun
-/sbin/ldconfig
 if [ "$1" != "0" ]; then
        %{_sbindir}/firefox-chrome+xpcom-generate
 fi
@@ -297,6 +305,7 @@ fi
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/mozilla*
+%attr(755,root,root) %{_bindir}/firefox
 %attr(755,root,root) %{_sbindir}/*
 %dir %{_firefoxdir}
 %{_firefoxdir}/res
@@ -326,11 +335,13 @@ fi
 # -chat subpackage?
 #%{_firefoxdir}/chrome/chatzilla.jar
 #%{_firefoxdir}/chrome/content-packs.jar
-# -dom-inspector subpackage?
-#%{_firefoxdir}/chrome/inspector.jar
 %dir %{_firefoxdir}/chrome/icons
 %{_firefoxdir}/chrome/icons/default
 
+# -dom-inspector subpackage?
+%dir %{_firefoxdir}/extensions/inspector@mozilla.org
+%{_firefoxdir}/extensions/inspector@mozilla.org/*
+
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/regxpcom
This page took 0.061078 seconds and 4 git commands to generate.