1 Summary: Mozilla Firefox web browser
2 Summary(pl): Mozilla Firefox - przegl±darka WWW
7 Group: X11/Applications/Networking
8 Source0: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/firefox-source-%{version}.tar.bz2
9 # Source0-md5: cdc85152f4219bf3e3f1a8dc46e04654
10 Source1: %{name}.desktop
11 Patch0: %{name}-alpha-gcc3.patch
12 URL: http://www.mozilla.org/projects/firefox/
13 BuildRequires: gtk+2-devel >= 2.0.0
14 BuildRequires: libIDL-devel >= 0.8.0
15 BuildRequires: libjpeg-devel >= 6b
16 BuildRequires: libpng-devel >= 1.2.0
17 BuildRequires: libstdc++-devel
18 BuildRequires: pango-devel >= 1.1.0
20 Obsoletes: mozilla-firebird
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Mozilla Firefox is an open-source web browser, designed for standards
25 compliance, performance and portability.
28 Mozilla Firefox jest open sourcow± przegl±dark± sieci www, stworzon± z
29 my¶l± o zgodno¶ci ze standartami, wydajno¶ci± i przeno¶no¶ci±.
35 ### FIXME: Shouldn't the default firefox config be part of original source ?
37 export MOZ_PHOENIX="1"
38 mk_add_options MOZ_PHOENIX="1"
39 ac_add_options --with-system-jpeg
40 ac_add_options --with-system-zlib
41 ac_add_options --with-system-png
42 ac_add_options --with-system-mng
43 ac_add_options --with-pthreads
44 ac_add_options --disable-tests
45 ac_add_options --disable-debug
46 ac_add_options --disable-debug-modules
47 ac_add_options --disable-xprint
48 ac_add_options --disable-mailnews
49 ac_add_options --disable-composer
50 ac_add_options --disable-ldap
51 ac_add_options --disable-jsd
52 ac_add_options --disable-dtd-debug
53 ac_add_options --disable-gtktest
54 ac_add_options --disable-freetypetest
55 ac_add_options --disable-installer
56 ac_add_options --enable-plaintext-editor-only
57 ac_add_options --enable-optimize="%{optflags}"
58 ac_add_options --enable-crypto
59 ac_add_options --enable-strip
60 ac_add_options --enable-strip-libs
61 ac_add_options --enable-reorder
62 ac_add_options --enable-mathml
63 ac_add_options --enable-xinerama
64 ac_add_options --enable-extensions="pref,cookie,wallet"
65 ac_add_options --enable-freetype2
66 ac_add_options --enable-xft
67 ac_add_options --enable-default-toolkit="gtk2"
71 #export MOZ_PHOENIX="1"
73 #{__make} %{?_smp_mflags}
75 export CFLAGS="%{optflags}"
76 export CXXFLAGS="%{optflags}"
77 export MOZ_PHOENIX="1"
79 %{__make} -f client.mk build
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}}
85 %{__make} -C xpinstall/packager \
86 MOZ_PKG_APPNAME="mozilla-firefox" \
87 MOZILLA_BIN="\$(DIST)/bin/firefox-bin"
89 #install -m0755 %{name}.sh $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox
90 ln -sf %{_libdir}/mozilla-firefox/firefox $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox
92 tar -xvz -C $RPM_BUILD_ROOT%{_libdir} -f dist/mozilla-firefox-*-linux-gnu.tar.gz
94 install browser/base/skin/Throbber.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox.png
95 #install -m0644 bookmarks.html $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/defaults/profile/
96 #install -m0644 bookmarks.html $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/defaults/profile/US/
98 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_bindir}/*
106 %dir %{_libdir}/mozilla-firefox
107 %{_libdir}/mozilla-firefox/res
108 %{_libdir}/mozilla-firefox/chrome
109 %{_libdir}/mozilla-firefox/components
110 %{_libdir}/mozilla-firefox/plugins
111 %{_libdir}/mozilla-firefox/searchplugins
112 %{_libdir}/mozilla-firefox/icons
113 %{_libdir}/mozilla-firefox/defaults
114 %{_libdir}/mozilla-firefox/ipc
115 %attr(755,root,root) %{_libdir}/mozilla-firefox/*.so
116 %attr(755,root,root) %{_libdir}/mozilla-firefox/*.sh
117 %attr(755,root,root) %{_libdir}/mozilla-firefox/m*
118 %attr(755,root,root) %{_libdir}/mozilla-firefox/f*
119 %attr(755,root,root) %{_libdir}/mozilla-firefox/reg*
120 %attr(755,root,root) %{_libdir}/mozilla-firefox/x*
121 %attr(755,root,root) %{_libdir}/mozilla-firefox/T*
123 %attr(755,root,root) %{_libdir}/mozilla-firefox/elf-dynstr-gc
125 %attr(755,root,root) %{_libdir}/mozilla-firefox/libsoftokn3.chk
126 %attr(755,root,root) %{_libdir}/mozilla-firefox/shlibsign
127 %{_libdir}/mozilla-firefox/bloaturls.txt