10 |
# This also means only STABLE upstream releases, NO betas. |
# This also means only STABLE upstream releases, NO betas. |
11 |
# This is a discussed topic. Please, do not flame it again. |
# This is a discussed topic. Please, do not flame it again. |
12 |
|
|
13 |
%define major 5.0 |
%define major 6.0 |
14 |
%define ff_epoch 0 |
%define ff_epoch 0 |
15 |
# (tpg) set version HERE !!! |
# (tpg) set version HERE !!! |
16 |
%define realver %{major}.1 |
%define realver %{major} |
17 |
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} |
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} |
18 |
|
|
19 |
# (tpg) MOZILLA_FIVE_HOME |
# (tpg) MOZILLA_FIVE_HOME |
30 |
|
|
31 |
%define _use_syshunspell 1 |
%define _use_syshunspell 1 |
32 |
|
|
33 |
#define prel 0 |
%define subrel 1 |
|
%define subrel 3 |
|
|
%if 0%{?prel} |
|
|
%define release %mkrel -c %prel 1 |
|
|
%else |
|
|
%define release %mkrel 1 |
|
|
%endif |
|
34 |
|
|
35 |
Summary: Next generation web browser |
Summary: Next generation web browser |
36 |
Name: firefox |
Name: firefox |
37 |
Version: %{realver} |
Version: %{realver} |
38 |
Epoch: %{ff_epoch} |
Epoch: %{ff_epoch} |
39 |
Release: %{release} |
Release: %mkrel 1 |
40 |
License: MPLv1+ |
License: MPLv1+ |
41 |
Group: Networking/WWW |
Group: Networking/WWW |
42 |
Url: http://www.mozilla.com/firefox/ |
Url: http://www.mozilla.com/firefox/ |
50 |
Source4: %{name}.desktop |
Source4: %{name}.desktop |
51 |
Source9: kde.js |
Source9: kde.js |
52 |
|
|
53 |
Patch1: mozilla-firefox-3.0.5-lang.patch |
Patch1: firefox-6.0-lang.patch |
54 |
Patch2: firefox-vendor.patch |
Patch2: firefox-vendor.patch |
55 |
Patch3: mozilla-firefox-1.5.0.6-systemproxy.patch |
Patch3: mozilla-firefox-1.5.0.6-systemproxy.patch |
56 |
# (OpenSuse) add patch to make firefox always use /usr/bin/firefox when "make firefox |
# (OpenSuse) add patch to make firefox always use /usr/bin/firefox when "make firefox |
57 |
# the default web browser" is used fix mdv bug#58784 |
# the default web browser" is used fix mdv bug#58784 |
58 |
Patch5: firefox-3.6.3-appname.patch |
Patch5: firefox-6.0-appname.patch |
59 |
Patch7: mozilla-firefox-run-mozilla.patch |
Patch7: mozilla-firefox-run-mozilla.patch |
60 |
Patch8: firefox-disable-check-default-browser.patch |
Patch8: firefox-disable-check-default-browser.patch |
61 |
Patch10: firefox-3.5.3-default-mail-handler.patch |
Patch10: firefox-3.5.3-default-mail-handler.patch |
85 |
BuildRequires: gtk+2-devel |
BuildRequires: gtk+2-devel |
86 |
BuildRequires: unzip |
BuildRequires: unzip |
87 |
BuildRequires: zip |
BuildRequires: zip |
88 |
|
BuildRequires: libxinerama-devel |
89 |
BuildRequires: libjpeg-devel |
BuildRequires: libjpeg-devel |
90 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
91 |
BuildRequires: glib2-devel |
BuildRequires: glib2-devel |
112 |
BuildRequires: hunspell-devel |
BuildRequires: hunspell-devel |
113 |
%endif |
%endif |
114 |
BuildRequires: doxygen |
BuildRequires: doxygen |
|
BuildRequires: libgnome2-devel |
|
|
BuildRequires: libgnomeui2-devel |
|
115 |
# BuildRequires: xulrunner-devel >= %xulrunner_version%{?prel:-0.%prel} |
# BuildRequires: xulrunner-devel >= %xulrunner_version%{?prel:-0.%prel} |
116 |
BuildRequires: pkgconfig(libproxy-1.0) |
BuildRequires: pkgconfig(libproxy-1.0) |
117 |
BuildRequires: pkgconfig(alsa) |
BuildRequires: pkgconfig(alsa) |
143 |
Suggests: nspluginwrapper |
Suggests: nspluginwrapper |
144 |
%endif |
%endif |
145 |
|
|
|
Requires(post): desktop-file-utils |
|
|
Requires(postun): desktop-file-utils |
|
|
|
|
146 |
Obsoletes: firefox-ext-weave-sync |
Obsoletes: firefox-ext-weave-sync |
147 |
|
|
148 |
%description |
%description |
186 |
install -m 644 %{SOURCE9} browser/app/profile/kde.js |
install -m 644 %{SOURCE9} browser/app/profile/kde.js |
187 |
|
|
188 |
%patch32 -p1 |
%patch32 -p1 |
189 |
%patch33 -p1 |
#patch33 -p1 |
190 |
%ifarch %arm |
%ifarch %arm |
191 |
%if "%{_target_cpu}" != "armv7l" |
%if "%{_target_cpu}" != "armv7l" |
192 |
%patch34 -p1 |
%patch34 -p1 |
210 |
mk_add_options BUILD_OFFICIAL=1 |
mk_add_options BUILD_OFFICIAL=1 |
211 |
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}" |
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}" |
212 |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj |
213 |
|
ac_add_options --host=%{_host} |
214 |
|
ac_add_options --target=%{_target_platform} |
215 |
|
ac_add_options --enable-optimize="%{optflags}" |
216 |
ac_add_options --prefix="%{_prefix}" |
ac_add_options --prefix="%{_prefix}" |
217 |
ac_add_options --libdir="%{_libdir}" |
ac_add_options --libdir="%{_libdir}" |
218 |
ac_add_options --sysconfdir="%{_sysconfdir}" |
ac_add_options --sysconfdir="%{_sysconfdir}" |
222 |
ac_add_options --with-system-nspr |
ac_add_options --with-system-nspr |
223 |
ac_add_options --with-system-nss |
ac_add_options --with-system-nss |
224 |
ac_add_options --with-system-zlib |
ac_add_options --with-system-zlib |
225 |
|
ac_add_options --with-system-libvpx |
226 |
|
ac_add_options --enable-webm |
227 |
ac_add_options --enable-gio |
ac_add_options --enable-gio |
228 |
ac_add_options --disable-gnomevfs |
ac_add_options --disable-gnomevfs |
229 |
ac_add_options --disable-installer |
ac_add_options --disable-installer |
234 |
#ac_add_options --enable-update-channel=beta |
#ac_add_options --enable-update-channel=beta |
235 |
ac_add_options --enable-official-branding |
ac_add_options --enable-official-branding |
236 |
ac_add_options --enable-libproxy |
ac_add_options --enable-libproxy |
|
%if %mgaversion > 2 |
|
|
ac_add_options --with-system-png |
|
|
%else |
|
237 |
ac_add_options --without-system-png |
ac_add_options --without-system-png |
|
%endif |
|
238 |
ac_add_options --with-system-jpeg |
ac_add_options --with-system-jpeg |
239 |
ac_add_options --enable-system-cairo |
ac_add_options --enable-system-cairo |
240 |
ac_add_options --enable-system-sqlite |
ac_add_options --enable-system-sqlite |
241 |
ac_add_options --enable-startup-notification |
ac_add_options --enable-startup-notification |
242 |
|
ac_add_options --enable-xinerama |
243 |
ac_add_options --with-distribution-id=org.mageia |
ac_add_options --with-distribution-id=org.mageia |
244 |
ac_add_options --disable-crashreporter |
ac_add_options --disable-crashreporter |
245 |
%ifarch %arm |
%ifarch %arm |
259 |
|
|
260 |
%__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl |
%__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl |
261 |
|
|
262 |
|
export LDFLAGS="%ldflags" |
263 |
make -f client.mk build |
make -f client.mk build |
264 |
|
|
265 |
%install |
%install |
290 |
%{__cp} %{buildroot}%{mozillalibdir}/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/icons/ |
%{__cp} %{buildroot}%{mozillalibdir}/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/icons/ |
291 |
for i in 16 22 24 32 48 256; do |
for i in 16 22 24 32 48 256; do |
292 |
# (cg) Not all icon sizes are installed with make install, so just redo it here. |
# (cg) Not all icon sizes are installed with make install, so just redo it here. |
293 |
%{__install} -m 644 other-licenses/branding/firefox/default$i.png %{buildroot}%{mozillalibdir}/chrome/icons/default/default$i.png |
%{__install} -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/chrome/icons/default/default$i.png |
294 |
%{__mkdir_p} %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps |
%{__mkdir_p} %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps |
295 |
ln -sf %{mozillalibdir}/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ; |
ln -sf %{mozillalibdir}/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ; |
296 |
done |
done |