1 Summary: Mozilla Firefox web browser
2 Summary(pl): Mozilla Firefox - przegl±darka WWW
7 Group: 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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Mozilla Firefox is an open-source web browser, designed for standards
24 compliance, performance and portability.
27 Mozilla Firefox jest open sourcow± przegl±dark± sieci www, stworzon± z
28 my¶l± o zgodno¶ci ze standartami, wydajno¶ci± i przeno¶no¶ci±.
34 ### FIXME: Shouldn't the default firefox config be part of original source ?
36 export MOZ_PHOENIX="1"
37 mk_add_options MOZ_PHOENIX="1"
38 ac_add_options --with-system-jpeg
39 ac_add_options --with-system-zlib
40 ac_add_options --with-system-png
41 ac_add_options --with-system-mng
42 ac_add_options --with-pthreads
43 ac_add_options --disable-tests
44 ac_add_options --disable-debug
45 ac_add_options --disable-debug-modules
46 ac_add_options --disable-xprint
47 ac_add_options --disable-mailnews
48 ac_add_options --disable-composer
49 ac_add_options --disable-ldap
50 ac_add_options --disable-jsd
51 ac_add_options --disable-dtd-debug
52 ac_add_options --disable-gtktest
53 ac_add_options --disable-freetypetest
54 ac_add_options --disable-installer
55 ac_add_options --enable-plaintext-editor-only
56 ac_add_options --enable-optimize="%{optflags}"
57 ac_add_options --enable-crypto
58 ac_add_options --enable-strip
59 ac_add_options --enable-strip-libs
60 ac_add_options --enable-reorder
61 ac_add_options --enable-mathml
62 ac_add_options --enable-xinerama
63 ac_add_options --enable-extensions="pref,cookie,wallet"
64 ac_add_options --enable-freetype2
65 ac_add_options --enable-xft
66 ac_add_options --enable-default-toolkit="gtk2"
70 #export MOZ_PHOENIX="1"
72 #{__make} %{?_smp_mflags}
74 export CFLAGS="%{optflags}"
75 export CXXFLAGS="%{optflags}"
76 export MOZ_PHOENIX="1"
78 %{__make} -f client.mk build
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}}
84 %{__make} -C xpinstall/packager \
85 MOZ_PKG_APPNAME="mozilla-firefox" \
86 MOZILLA_BIN="\$(DIST)/bin/firefox-bin"
88 #install -m0755 %{name}.sh $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox
89 ln -sf %{_libdir}/mozilla-firefox/firefox $RPM_BUILD_ROOT%{_bindir}/mozilla-firefox
91 tar -xvz -C $RPM_BUILD_ROOT%{_libdir} -f dist/mozilla-firefox-*-linux-gnu.tar.gz
93 install browser/base/skin/Throbber.png $RPM_BUILD_ROOT%{_pixmapsdir}/mozilla-firefox.png
94 #install -m0644 bookmarks.html $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/defaults/profile/
95 #install -m0644 bookmarks.html $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/defaults/profile/US/
97 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
100 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/*
105 %dir %{_libdir}/mozilla-firefox
106 %{_libdir}/mozilla-firefox/res
107 %{_libdir}/mozilla-firefox/chrome
108 %{_libdir}/mozilla-firefox/components
109 %{_libdir}/mozilla-firefox/plugins
110 %{_libdir}/mozilla-firefox/searchplugins
111 %{_libdir}/mozilla-firefox/icons
112 %{_libdir}/mozilla-firefox/defaults
113 %{_libdir}/mozilla-firefox/ipc
114 %attr(755,root,root) %{_libdir}/mozilla-firefox/*.so
115 %attr(755,root,root) %{_libdir}/mozilla-firefox/*.sh
116 %attr(755,root,root) %{_libdir}/mozilla-firefox/m*
117 %attr(755,root,root) %{_libdir}/mozilla-firefox/f*
118 %attr(755,root,root) %{_libdir}/mozilla-firefox/reg*
119 %attr(755,root,root) %{_libdir}/mozilla-firefox/x*
120 %attr(755,root,root) %{_libdir}/mozilla-firefox/T*
122 %attr(755,root,root) %{_libdir}/mozilla-firefox/elf-dynstr-gc
124 %attr(755,root,root) %{_libdir}/mozilla-firefox/libsoftokn3.chk
125 %attr(755,root,root) %{_libdir}/mozilla-firefox/shlibsign
126 %{_libdir}/mozilla-firefox/bloaturls.txt